Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001666/0.001666, allocations: 198.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.419/1.419, allocations: 225.6 MB / 234.8 MB, free: 3.199 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009993/0.0009992, allocations: 93.44 kB / 286.7 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.463e-05/2.486e-05, allocations: 4 kB / 343.8 MB, free: 8.137 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/0.119, allocations: 51.48 MB / 395.3 MB, free: 4.613 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4898/0.6088, allocations: 163 MB / 0.5452 GB, free: 11.21 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002937/0.6092, allocations: 100.4 kB / 0.5453 GB, free: 11.15 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.398/3.007, allocations: 0.593 GB / 1.138 GB, free: 42.88 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.114e-06/3.007, allocations: 0 / 1.138 GB, free: 42.88 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.002422/3.01, allocations: 423.9 kB / 1.139 GB, free: 42.83 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5030 * Number of variables: 5030 Notification: Performance of Generate backend data structure: time 0.07793/3.088, allocations: 16.96 MB / 1.155 GB, free: 37.79 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 6.44e-05/3.088, allocations: 12.41 kB / 1.155 GB, free: 37.79 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04968/3.137, allocations: 7.852 MB / 1.163 GB, free: 36.77 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04506/3.183, allocations: 14.85 MB / 1.177 GB, free: 35.04 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001552/3.184, allocations: 0.5665 MB / 1.178 GB, free: 35.04 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009816/3.194, allocations: 1.017 MB / 1.179 GB, free: 35.03 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.05546/3.249, allocations: 22.77 MB / 1.201 GB, free: 34.95 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08664/3.336, allocations: 26.03 MB / 1.227 GB, free: 31.34 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001028/3.337, allocations: 31.7 kB / 1.227 GB, free: 31.33 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006614/3.344, allocations: 15.66 kB / 1.227 GB, free: 31.32 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001346/3.345, allocations: 1.268 MB / 1.228 GB, free: 31.04 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6551/4, allocations: 93.19 MB / 1.319 GB, free: 38.02 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04777/4.048, allocations: 51.73 MB / 1.369 GB, free: 29.2 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01548/4.064, allocations: 7.324 MB / 1.377 GB, free: 29.11 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04398/4.108, allocations: 19.97 MB / 1.396 GB, free: 27.95 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001018/4.108, allocations: 109.1 kB / 1.396 GB, free: 27.91 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=685): time 8.797e-06/4.108, allocations: 3 kB / 1.396 GB, free: 27.91 MB / 0.5417 GB Notification: Performance of matching and sorting (n=693): time 0.08726/4.195, allocations: 31.78 MB / 1.427 GB, free: 22.37 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001128/4.195, allocations: 148.8 kB / 1.427 GB, free: 22.26 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01143/4.207, allocations: 5.314 MB / 1.433 GB, free: 21.77 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.001864/4.209, allocations: 25.7 kB / 1.433 GB, free: 21.74 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.004991/4.214, allocations: 7.745 MB / 1.44 GB, free: 17.64 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.003618/4.217, allocations: 2.25 MB / 1.442 GB, free: 16.17 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001068/4.218, allocations: 0 / 1.442 GB, free: 16.17 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0006355/4.219, allocations: 0.6891 MB / 1.443 GB, free: 15.84 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00658/4.226, allocations: 4.816 MB / 1.448 GB, free: 14.16 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01002/4.236, allocations: 8.024 MB / 1.456 GB, free: 8.105 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02117/4.257, allocations: 8.565 MB / 1.464 GB, free: 5.324 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002212/4.257, allocations: 34.92 kB / 1.464 GB, free: 5.32 MB / 0.5417 GB Notification: Performance of matching and sorting (n=1213) (initialization): time 0.04579/4.303, allocations: 17.21 MB / 1.481 GB, free: 15.87 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001161/4.303, allocations: 56.23 kB / 1.481 GB, free: 15.87 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002343/4.303, allocations: 107 kB / 1.481 GB, free: 15.87 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006545/4.31, allocations: 2.38 MB / 1.483 GB, free: 15.21 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01068/4.321, allocations: 2.107 MB / 1.485 GB, free: 15.14 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5479/4.869, allocations: 27.24 MB / 1.512 GB, free: 86.64 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01188/4.881, allocations: 431.8 kB / 1.512 GB, free: 86.64 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003788/4.884, allocations: 443.6 kB / 1.513 GB, free: 86.64 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 481 * Number of states: 0 () * Number of discrete variables: 12 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatQS.booleanStep[1].y,rheostatQS.booleanStep[2].y,rheostatQS.booleanStep[3].y,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1064): * Single equations (assignments): 1051 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 1,(18,41.7%) 100} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00533/4.89, allocations: 413.1 kB / 1.513 GB, free: 86.54 MB / 0.5573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.03657/4.926, allocations: 13.47 MB / 1.526 GB, free: 85.75 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004146/4.931, allocations: 0.7154 MB / 1.527 GB, free: 85.75 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04846/4.979, allocations: 14.71 MB / 1.541 GB, free: 84.85 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02685/5.006, allocations: 9.993 MB / 1.551 GB, free: 84.56 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001507/5.006, allocations: 27.62 kB / 1.551 GB, free: 84.56 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002677/5.006, allocations: 36.2 kB / 1.551 GB, free: 84.56 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07726/5.084, allocations: 27.76 MB / 1.578 GB, free: 83.03 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.957e-05/5.084, allocations: 3.938 kB / 1.578 GB, free: 83.03 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006352/5.09, allocations: 1.175 MB / 1.579 GB, free: 83.03 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007071/5.097, allocations: 2.45 MB / 1.582 GB, free: 82.93 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002104/5.099, allocations: 58.77 kB / 1.582 GB, free: 82.93 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03364/5.133, allocations: 31.54 MB / 1.613 GB, free: 68.67 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.885e-06/5.133, allocations: 5.344 kB / 1.613 GB, free: 68.67 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05005/5.183, allocations: 21.35 MB / 1.634 GB, free: 59.52 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006662/5.19, allocations: 1.787 MB / 1.635 GB, free: 58.52 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003268/5.193, allocations: 13.41 kB / 1.635 GB, free: 58.52 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006535/5.2, allocations: 386.8 kB / 1.636 GB, free: 58.52 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002321/5.202, allocations: 0.538 MB / 1.636 GB, free: 58.43 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009886/5.203, allocations: 190.2 kB / 1.636 GB, free: 58.39 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.008462/5.212, allocations: 3.913 MB / 1.64 GB, free: 56.85 MB / 0.5573 GB Notification: Performance of sort global known variables: time 8.51e-07/5.212, allocations: 0 / 1.64 GB, free: 56.85 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01839/5.23, allocations: 2.772 MB / 1.643 GB, free: 56.82 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 11 (imsQS.rotor.resistor.plug_p.reference.gamma,loadInertiaQS.w,quadraticLoadTorqueQS.phi,ims.stator.core.Phi.re,ims.stator.core.Phi.im,ims.stator.zeroInductor.i0,ims.rotor.core.Phi.re,ims.rotor.core.Phi.im,ims.rotor.zeroInductor.i0,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 12 (rheostatQS.booleanStep[1].y,rheostatQS.booleanStep[2].y,rheostatQS.booleanStep[3].y,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (565): * Single equations (assignments): 550 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 11 {(1,100.0%) 1,(18,41.7%) 100,(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.04095/5.271, allocations: 22.99 MB / 1.665 GB, free: 42.71 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.02056/5.292, allocations: 13.03 MB / 1.678 GB, free: 31.11 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.081e-05/5.292, allocations: 1.75 kB / 1.678 GB, free: 31.11 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.01141/5.303, allocations: 7.439 MB / 1.685 GB, free: 24.4 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01127/5.315, allocations: 1.585 MB / 1.687 GB, free: 23.21 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5503/5.865, allocations: 32.5 MB / 1.719 GB, free: 83.49 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0332/5.898, allocations: 11.66 MB / 1.73 GB, free: 82.38 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.01519/5.913, allocations: 3.24 MB / 1.733 GB, free: 82.3 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0178/5.931, allocations: 6.634 MB / 1.74 GB, free: 82.3 MB / 0.5573 GB Notification: Performance of SimCode: time 2.004e-06/5.931, allocations: 0 / 1.74 GB, free: 82.3 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8498/6.781, allocations: 226.3 MB / 1.961 GB, free: 65.76 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002539/6.781, allocations: 198.6 kB / 1.961 GB, free: 65.5 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.2/16.98, allocations: 2.938 kB / 1.961 GB, free: 65.5 MB / 0.5573 GB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start_res.mat does not exist to compare? outputFormat=mat