Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.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,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start",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.001524/0.001529, allocations: 185.5 kB / 16.4 MB, free: 5.746 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.914/1.914, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001108/0.001108, allocations: 98.84 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003774/0.0003774, allocations: 15.98 kB / 327.1 MB, free: 92 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3489/0.3493, allocations: 47.56 MB / 374.6 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4985/0.8478, allocations: 128.9 MB / 0.4917 GB, free: 60.97 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003946/0.8483, allocations: 90.88 kB / 0.4918 GB, free: 60.97 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5661/1.414, allocations: 150.1 MB / 0.6384 GB, free: 14.29 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.865e-06/1.415, allocations: 4 kB / 0.6384 GB, free: 14.29 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0008654/1.415, allocations: 175.8 kB / 0.6386 GB, free: 14.12 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1778 * Number of variables: 1778 Notification: Performance of Generate backend data structure: time 0.03335/1.449, allocations: 7.278 MB / 0.6457 GB, free: 6.75 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.516e-05/1.449, allocations: 8.031 kB / 0.6457 GB, free: 6.742 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004706/1.454, allocations: 0.9333 MB / 0.6466 GB, free: 5.801 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0101/1.464, allocations: 1.244 MB / 0.6478 GB, free: 4.547 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.6235/2.087, allocations: 6.272 MB / 0.6539 GB, free: 40.4 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006647/2.088, allocations: 0.5014 MB / 0.6544 GB, free: 40.38 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00292/2.091, allocations: 0.6622 MB / 0.6551 GB, free: 40.38 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03156/2.123, allocations: 9.347 MB / 0.6642 GB, free: 39.45 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004371/2.123, allocations: 11.06 kB / 0.6642 GB, free: 39.45 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002566/2.126, allocations: 291.4 kB / 0.6645 GB, free: 39.45 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003471/2.126, allocations: 298 kB / 0.6648 GB, free: 39.43 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02531/2.151, allocations: 7.676 MB / 0.6723 GB, free: 39.37 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08023/2.232, allocations: 29.48 MB / 0.7011 GB, free: 33.52 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01795/2.25, allocations: 11.88 MB / 0.7127 GB, free: 26.02 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02248/2.272, allocations: 6.997 MB / 0.7195 GB, free: 23.23 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.452e-05/2.272, allocations: 71.75 kB / 0.7196 GB, free: 23.17 MB / 426.8 MB Notification: Performance of pre-optimization done (n=323): time 6.632e-06/2.272, allocations: 0 / 0.7196 GB, free: 23.17 MB / 426.8 MB Notification: Performance of matching and sorting (n=342): time 0.05708/2.329, allocations: 16.32 MB / 0.7355 GB, free: 15.63 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.882e-05/2.329, allocations: 89.66 kB / 0.7356 GB, free: 15.57 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009459/2.339, allocations: 3.478 MB / 0.739 GB, free: 14.3 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007876/2.34, allocations: 91.23 kB / 0.7391 GB, free: 14.23 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002335/2.342, allocations: 2.807 MB / 0.7418 GB, free: 12.16 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001579/2.344, allocations: 1.143 MB / 0.7429 GB, free: 11.27 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004895/2.344, allocations: 77.45 kB / 0.743 GB, free: 11.21 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.0002642/2.345, allocations: 463.5 kB / 0.7434 GB, free: 10.83 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004951/2.35, allocations: 1.938 MB / 0.7453 GB, free: 10.12 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005508/2.355, allocations: 2.827 MB / 0.7481 GB, free: 8.367 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006072/2.361, allocations: 2.35 MB / 0.7504 GB, free: 7.383 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.33e-05/2.361, allocations: 7.094 kB / 0.7504 GB, free: 7.383 MB / 426.8 MB Notification: Performance of matching and sorting (n=492) (initialization): time 0.01676/2.378, allocations: 6.231 MB / 0.7565 GB, free: 4.934 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.562e-05/2.378, allocations: 17.44 kB / 0.7565 GB, free: 4.934 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.969e-05/2.378, allocations: 24.81 kB / 0.7565 GB, free: 4.934 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004705/2.383, allocations: 1.268 MB / 0.7578 GB, free: 4.496 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006562/2.39, allocations: 0.8427 MB / 0.7586 GB, free: 4.473 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02836/2.418, allocations: 21.11 MB / 0.7792 GB, free: 3.113 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00547/2.423, allocations: 200.4 kB / 0.7794 GB, free: 3.047 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009571/2.424, allocations: 149.5 kB / 0.7795 GB, free: 3.02 MB / 442.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 117 * Number of states: 0 () * Number of discrete variables: 9 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatE.booleanStep[1].y,rheostatE.booleanStep[2].y,rheostatE.booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (429): * Single equations (assignments): 415 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(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: 11 {(2,100.0%) 14,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 1,(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.006895/2.431, allocations: 2.187 MB / 0.7817 GB, free: 1.961 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001567/2.433, allocations: 449.1 kB / 0.7821 GB, free: 1.734 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02051/2.453, allocations: 6.339 MB / 0.7883 GB, free: 15.08 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.691e-05/2.454, allocations: 34.12 kB / 0.7883 GB, free: 15.08 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.033e-05/2.454, allocations: 15.94 kB / 0.7883 GB, free: 15.08 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.348e-05/2.454, allocations: 17.11 kB / 0.7883 GB, free: 15.08 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04015/2.494, allocations: 12.76 MB / 0.8008 GB, free: 6.805 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.838e-05/2.494, allocations: 4 kB / 0.8008 GB, free: 6.801 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004749/2.499, allocations: 496.6 kB / 0.8013 GB, free: 6.422 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007246/2.506, allocations: 1.616 MB / 0.8029 GB, free: 5.145 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008554/2.507, allocations: 79.27 kB / 0.8029 GB, free: 5.074 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3811/2.888, allocations: 30.76 MB / 0.833 GB, free: 72.81 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.972e-06/2.888, allocations: 10.98 kB / 0.833 GB, free: 72.81 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02478/2.913, allocations: 9.367 MB / 0.8421 GB, free: 71.45 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003492/2.916, allocations: 0.9407 MB / 0.8431 GB, free: 71.36 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001533/2.918, allocations: 68.62 kB / 0.8431 GB, free: 71.36 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004623/2.923, allocations: 210.7 kB / 0.8433 GB, free: 71.36 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001323/2.924, allocations: 289.4 kB / 0.8436 GB, free: 71.36 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003883/2.924, allocations: 97.62 kB / 0.8437 GB, free: 71.36 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.00653/2.931, allocations: 2.669 MB / 0.8463 GB, free: 71.18 MB / 474.8 MB Notification: Performance of sort global known variables: time 8.41e-07/2.931, allocations: 0 / 0.8463 GB, free: 71.18 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.008068/2.939, allocations: 1.396 MB / 0.8477 GB, free: 71.18 MB / 474.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 16 (aimsM.stator.core.Phi.re,aimsM.stator.core.Phi.im,aimsM.stator.zeroInductor.i0,aimsM.rotor.core.Phi.re,aimsM.rotor.core.Phi.im,aimsM.rotor.zeroInductor.i0,aimsE.i_0_s,aimsE.idq_sr[1],aimsE.idq_sr[2],aimsE.idq_rr[1],aimsE.idq_rr[2],aimsE.i_0_r,loadInertiaM.w,loadInertiaE.w,quadraticLoadTorqueM.phi,quadraticLoadTorqueE.phi) * Number of discrete variables: 9 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatE.booleanStep[1].y,rheostatE.booleanStep[2].y,rheostatE.booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (249): * Single equations (assignments): 232 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 16 * 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: 16 {(2,100.0%) 14,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 8,(2,100.0%) 12,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02617/2.965, allocations: 11.02 MB / 0.8584 GB, free: 68.68 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.01613/2.982, allocations: 6.508 MB / 0.8648 GB, free: 67.05 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 1.067e-05/2.982, allocations: 3.688 kB / 0.8648 GB, free: 67.05 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01118/2.993, allocations: 4.905 MB / 0.8696 GB, free: 65.11 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009741/3.003, allocations: 1.257 MB / 0.8708 GB, free: 65.08 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1167/3.119, allocations: 60.36 MB / 0.9297 GB, free: 30.07 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009404/3.129, allocations: 4.525 MB / 0.9342 GB, free: 29.15 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007059/3.136, allocations: 2.696 MB / 0.9368 GB, free: 28.29 MB / 474.8 MB Notification: Performance of SimCode: time 1.262e-06/3.136, allocations: 4 kB / 0.9368 GB, free: 28.29 MB / 474.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.449/10.59, allocations: 0.6214 GB / 1.558 GB, free: 107.7 MB / 0.4949 GB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_res.mat does not exist to compare? outputFormat=mat