Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000961/0.0009613, allocations: 181.2 kB / 17.01 MB, free: 5.121 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.261/1.261, allocations: 205.4 MB / 223.1 MB, free: 9.121 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008375/0.0008375, allocations: 96.16 kB / 271.5 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002353/0.0002352, allocations: 8 kB / 328.3 MB, free: 15.42 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2195/0.2197, allocations: 47.57 MB / 375.9 MB, free: 45.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.126/0.3458, allocations: 114.7 MB / 490.6 MB, free: 13.84 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000231/0.3461, allocations: 91.95 kB / 490.7 MB, free: 13.75 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8295/1.176, allocations: 220.1 MB / 0.6942 GB, free: 31.06 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.495e-06/1.176, allocations: 0 / 0.6942 GB, free: 31.06 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0007545/1.176, allocations: 253.4 kB / 0.6944 GB, free: 31.04 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2681 * Number of variables: 2681 Notification: Performance of Generate backend data structure: time 0.02827/1.205, allocations: 10.54 MB / 0.7047 GB, free: 27.29 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.855e-05/1.205, allocations: 11.06 kB / 0.7047 GB, free: 27.29 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004731/1.209, allocations: 1.398 MB / 0.7061 GB, free: 27.19 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01079/1.22, allocations: 2.133 MB / 0.7082 GB, free: 26.59 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01856/1.239, allocations: 8.953 MB / 0.7169 GB, free: 25.29 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006224/1.239, allocations: 0.7462 MB / 0.7177 GB, free: 25.26 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003124/1.243, allocations: 0.9855 MB / 0.7186 GB, free: 25.25 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03214/1.275, allocations: 14.07 MB / 0.7324 GB, free: 24.08 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005288/1.275, allocations: 8.406 kB / 0.7324 GB, free: 24.08 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003278/1.279, allocations: 427.5 kB / 0.7328 GB, free: 24.08 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003578/1.279, allocations: 454.1 kB / 0.7332 GB, free: 24.05 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02378/1.303, allocations: 11.85 MB / 0.7448 GB, free: 19.55 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08551/1.388, allocations: 44.15 MB / 0.7879 GB, free: 2.887 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.27/1.658, allocations: 24.79 MB / 0.8121 GB, free: 38.79 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01979/1.678, allocations: 10.09 MB / 0.822 GB, free: 37.99 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.051e-05/1.678, allocations: 84.08 kB / 0.8221 GB, free: 37.95 MB / 442.7 MB Notification: Performance of pre-optimization done (n=455): time 5.61e-06/1.678, allocations: 0 / 0.8221 GB, free: 37.95 MB / 442.7 MB Notification: Performance of matching and sorting (n=463): time 0.04869/1.727, allocations: 23.21 MB / 0.8447 GB, free: 34.73 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.327e-05/1.727, allocations: 99.3 kB / 0.8448 GB, free: 34.67 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007763/1.735, allocations: 4.703 MB / 0.8494 GB, free: 34.36 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009728/1.736, allocations: 102.4 kB / 0.8495 GB, free: 34.33 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002617/1.738, allocations: 4.373 MB / 0.8538 GB, free: 32.71 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001596/1.74, allocations: 1.534 MB / 0.8553 GB, free: 31.73 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002878/1.74, allocations: 107.4 kB / 0.8554 GB, free: 31.73 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002463/1.741, allocations: 0.4967 MB / 0.8559 GB, free: 31.41 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003616/1.744, allocations: 2.523 MB / 0.8583 GB, free: 31.4 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00374/1.748, allocations: 3.612 MB / 0.8618 GB, free: 30.23 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003891/1.752, allocations: 3.064 MB / 0.8648 GB, free: 30.19 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.62e-05/1.752, allocations: 11.58 kB / 0.8649 GB, free: 30.19 MB / 442.7 MB Notification: Performance of matching and sorting (n=638) (initialization): time 0.01255/1.764, allocations: 8.35 MB / 0.873 GB, free: 29.15 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.136e-05/1.765, allocations: 15.78 kB / 0.873 GB, free: 29.15 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.961e-05/1.765, allocations: 29.88 kB / 0.873 GB, free: 29.15 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003249/1.768, allocations: 1.518 MB / 0.8745 GB, free: 28.63 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004401/1.772, allocations: 1.038 MB / 0.8755 GB, free: 28.6 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01905/1.791, allocations: 27.56 MB / 0.9025 GB, free: 6.039 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004902/1.796, allocations: 241.3 kB / 0.9027 GB, free: 5.945 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008637/1.797, allocations: 197.3 kB / 0.9029 GB, free: 5.902 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 138 * Number of states: 0 () * Number of discrete variables: 16 (rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatM.booleanStep[4].y,rheostatM.booleanStep[5].y,rheostat3.booleanStep[1].y,rheostat3.booleanStep[2].y,rheostat3.booleanStep[3].y,booleanStepM[1].y,booleanStepM[2].y,booleanStepM[3].y,booleanStepM[4].y,booleanStepM[5].y,booleanStep3[1].y,booleanStep3[2].y,booleanStep3[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (547): * Single equations (assignments): 531 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 14 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 14 {(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,(4,68.8%) 25,(2,100.0%) 6,(2,100.0%) 6,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006863/1.804, allocations: 3.299 MB / 0.9061 GB, free: 4.328 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001411/1.806, allocations: 0.5815 MB / 0.9067 GB, free: 4.027 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01274/1.818, allocations: 8.361 MB / 0.9148 GB, free: 404 kB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.689e-05/1.818, allocations: 47.67 kB / 0.9149 GB, free: 404 kB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.882e-05/1.818, allocations: 26.66 kB / 0.9149 GB, free: 404 kB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.349e-05/1.818, allocations: 21.98 kB / 0.9149 GB, free: 404 kB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03641/1.855, allocations: 18 MB / 0.9325 GB, free: 9.406 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.506e-05/1.855, allocations: 3.875 kB / 0.9325 GB, free: 9.406 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002255/1.857, allocations: 0.5153 MB / 0.933 GB, free: 9.387 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004944/1.862, allocations: 2.269 MB / 0.9352 GB, free: 8.668 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006098/1.863, allocations: 100.6 kB / 0.9353 GB, free: 8.605 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03627/1.899, allocations: 35.56 MB / 0.9701 GB, free: 8.832 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.472e-06/1.899, allocations: 7.5 kB / 0.9701 GB, free: 8.828 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2691/2.168, allocations: 13.36 MB / 0.9831 GB, free: 93.34 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00502/2.173, allocations: 1.242 MB / 0.9843 GB, free: 93.25 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00133/2.175, allocations: 97.45 kB / 0.9844 GB, free: 93.25 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002869/2.177, allocations: 265.5 kB / 0.9847 GB, free: 93.25 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001222/2.179, allocations: 459.7 kB / 0.9851 GB, free: 93.24 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002848/2.179, allocations: 125.8 kB / 0.9852 GB, free: 93.24 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.005521/2.185, allocations: 3.608 MB / 0.9887 GB, free: 93.06 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.41e-07/2.185, allocations: 0 / 0.9887 GB, free: 93.06 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.006822/2.191, allocations: 1.936 MB / 0.9906 GB, free: 93.06 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 14 (aimsM.stator.core.Phi.re,aimsM.stator.core.Phi.im,aimsM.rotor.core.Phi.re,aimsM.rotor.core.Phi.im,aimsM.rotor.zeroInductor.i0,aims3.stator.core.Phi.re,aims3.stator.core.Phi.im,aims3.rotor.core.Phi.re,aims3.rotor.core.Phi.im,aims3.rotor.zeroInductor.i0,loadInertiaM.w,loadInertia3.w,quadraticLoadTorqueM.phi,quadraticLoadTorque3.phi) * Number of discrete variables: 16 (rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatM.booleanStep[4].y,rheostatM.booleanStep[5].y,rheostat3.booleanStep[1].y,rheostat3.booleanStep[2].y,rheostat3.booleanStep[3].y,booleanStepM[1].y,booleanStepM[2].y,booleanStepM[3].y,booleanStepM[4].y,booleanStepM[5].y,booleanStep3[1].y,booleanStep3[2].y,booleanStep3[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (277): * Single equations (assignments): 264 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 13 {(11,49.6%) 56,(1,100.0%) 1,(6,72.2%) 46,(2,100.0%) 12,(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.0167/2.208, allocations: 14.42 MB / 1.005 GB, free: 90.09 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01227/2.22, allocations: 8.282 MB / 1.013 GB, free: 88.21 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.236e-05/2.22, allocations: 2.562 kB / 1.013 GB, free: 88.21 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00806/2.229, allocations: 6.024 MB / 1.019 GB, free: 86.59 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007326/2.236, allocations: 1.6 MB / 1.02 GB, free: 86.57 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.108/2.344, allocations: 82.05 MB / 1.1 GB, free: 39.25 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005437/2.349, allocations: 6.564 MB / 1.107 GB, free: 37.11 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.004405/2.354, allocations: 1.302 MB / 1.108 GB, free: 36.97 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003731/2.358, allocations: 3.873 MB / 1.112 GB, free: 33.67 MB / 490.7 MB Notification: Performance of SimCode: time 7.62e-07/2.358, allocations: 0 / 1.112 GB, free: 33.67 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4366/2.794, allocations: 166.4 MB / 1.274 GB, free: 47.23 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000145/2.794, allocations: 232.9 kB / 1.275 GB, free: 46.98 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.703/9.497, allocations: 0 / 1.275 GB, free: 46.98 MB / 490.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start_MultiPhase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start_MultiPhase.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase_res.mat does not exist to compare? outputFormat=mat