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.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_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_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.002154/0.002154, allocations: 178.4 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.655/1.655, allocations: 205.3 MB / 214.4 MB, free: 1.668 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009361/0.0009361, allocations: 90.7 kB / 262.5 MB, free: 1.609 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.685e-05/1.697e-05, allocations: 4 kB / 315.6 MB, free: 22.6 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08854/0.08858, allocations: 47.59 MB / 363.2 MB, free: 6.957 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3651/0.4537, allocations: 128.4 MB / 491.6 MB, free: 15.98 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002553/0.454, allocations: 83.52 kB / 491.7 MB, free: 15.93 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5238/0.9778, allocations: 148.3 MB / 0.625 GB, free: 61.16 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.9779, allocations: 7.875 kB / 0.625 GB, free: 61.15 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006203/0.9785, allocations: 179.1 kB / 0.6251 GB, free: 60.98 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: 1778 * Number of variables: 1778 Notification: Performance of Generate backend data structure: time 0.01828/0.9968, allocations: 6.565 MB / 0.6315 GB, free: 54.35 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.191e-05/0.9969, allocations: 8.031 kB / 0.6316 GB, free: 54.34 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006698/1.004, allocations: 1.236 MB / 0.6328 GB, free: 53.1 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01616/1.02, allocations: 6.233 MB / 0.6388 GB, free: 46.89 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004462/1.02, allocations: 224 kB / 0.6391 GB, free: 46.68 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0031/1.023, allocations: 403.8 kB / 0.6394 GB, free: 46.28 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01638/1.04, allocations: 7.021 MB / 0.6463 GB, free: 39.25 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0232/1.063, allocations: 8.19 MB / 0.6543 GB, free: 30.77 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003213/1.063, allocations: 19.83 kB / 0.6543 GB, free: 30.75 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002004/1.065, allocations: 8 kB / 0.6543 GB, free: 30.75 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002373/1.066, allocations: 289.4 kB / 0.6546 GB, free: 30.46 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05531/1.121, allocations: 28.17 MB / 0.6821 GB, free: 1.867 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.275/1.396, allocations: 11.57 MB / 0.6934 GB, free: 51.35 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007202/1.403, allocations: 3.154 MB / 0.6965 GB, free: 51.29 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01732/1.421, allocations: 6.592 MB / 0.7029 GB, free: 50.6 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.161e-05/1.421, allocations: 68.66 kB / 0.703 GB, free: 50.56 MB / 410.7 MB Notification: Performance of pre-optimization done (n=306): time 7.294e-06/1.421, allocations: 0 / 0.703 GB, free: 50.56 MB / 410.7 MB Notification: Performance of matching and sorting (n=325): time 0.02751/1.448, allocations: 11.05 MB / 0.7138 GB, free: 48.87 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.346e-05/1.448, allocations: 87.53 kB / 0.7139 GB, free: 48.8 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007034/1.455, allocations: 2.796 MB / 0.7166 GB, free: 48.57 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008214/1.456, allocations: 29.11 kB / 0.7166 GB, free: 48.54 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002721/1.459, allocations: 3.079 MB / 0.7196 GB, free: 47.33 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001773/1.461, allocations: 1.046 MB / 0.7207 GB, free: 46.63 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006902/1.462, allocations: 3.938 kB / 0.7207 GB, free: 46.63 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003515/1.462, allocations: 453.7 kB / 0.7211 GB, free: 46.32 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003176/1.465, allocations: 1.72 MB / 0.7228 GB, free: 46.32 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003295/1.468, allocations: 2.604 MB / 0.7253 GB, free: 45.34 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004236/1.473, allocations: 2.267 MB / 0.7275 GB, free: 45.29 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.202e-05/1.473, allocations: 11.22 kB / 0.7275 GB, free: 45.29 MB / 410.7 MB Notification: Performance of matching and sorting (n=479) (initialization): time 0.01121/1.484, allocations: 5.909 MB / 0.7333 GB, free: 44.64 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.165e-05/1.484, allocations: 18.19 kB / 0.7333 GB, free: 44.64 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.971e-05/1.484, allocations: 25.47 kB / 0.7333 GB, free: 44.64 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002578/1.487, allocations: 1.217 MB / 0.7345 GB, free: 44.53 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00356/1.49, allocations: 0.8126 MB / 0.7353 GB, free: 44.53 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01455/1.505, allocations: 19.84 MB / 0.7547 GB, free: 28.96 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004033/1.509, allocations: 123.9 kB / 0.7548 GB, free: 28.95 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009957/1.51, allocations: 154.3 kB / 0.755 GB, free: 28.92 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 121 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (416): * Single equations (assignments): 402 * 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.001417/1.511, allocations: 208.4 kB / 0.7552 GB, free: 28.79 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.009283/1.521, allocations: 5.438 MB / 0.7605 GB, free: 26.44 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001656/1.523, allocations: 412.4 kB / 0.7609 GB, free: 26.23 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01009/1.533, allocations: 5.762 MB / 0.7665 GB, free: 23.75 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.895e-05/1.533, allocations: 32 kB / 0.7665 GB, free: 23.75 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.569e-05/1.533, allocations: 14.03 kB / 0.7665 GB, free: 23.75 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.436e-05/1.533, allocations: 15.14 kB / 0.7666 GB, free: 23.75 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0275/1.56, allocations: 11.21 MB / 0.7775 GB, free: 19.05 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.04e-05/1.56, allocations: 3.375 kB / 0.7775 GB, free: 19.05 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003539/1.564, allocations: 466.9 kB / 0.778 GB, free: 19.03 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00576/1.57, allocations: 1.566 MB / 0.7795 GB, free: 18.5 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007407/1.571, allocations: 31.34 kB / 0.7795 GB, free: 18.49 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03062/1.601, allocations: 28.96 MB / 0.8078 GB, free: 10.34 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.824e-06/1.601, allocations: 4.562 kB / 0.8078 GB, free: 10.34 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02107/1.622, allocations: 8.648 MB / 0.8162 GB, free: 2.531 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00333/1.626, allocations: 0.8583 MB / 0.8171 GB, free: 1.738 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001732/1.627, allocations: 23 kB / 0.8171 GB, free: 1.719 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00342/1.631, allocations: 145.6 kB / 0.8172 GB, free: 1.625 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001133/1.632, allocations: 282.7 kB / 0.8175 GB, free: 1.461 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005675/1.633, allocations: 89.91 kB / 0.8176 GB, free: 1.379 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005166/1.638, allocations: 2.082 MB / 0.8196 GB, free: 15.55 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.51e-07/1.638, allocations: 3.172 kB / 0.8196 GB, free: 15.55 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.008962/1.647, allocations: 1.207 MB / 0.8208 GB, free: 14.36 MB / 442.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (232): * Single equations (assignments): 215 * 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%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 8,(1,100.0%) 1,(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.01969/1.667, allocations: 10.25 MB / 0.8308 GB, free: 5.039 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01051/1.677, allocations: 5.892 MB / 0.8366 GB, free: 15.46 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.176e-06/1.677, allocations: 256 / 0.8366 GB, free: 15.46 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007337/1.685, allocations: 4.517 MB / 0.841 GB, free: 11.18 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006908/1.692, allocations: 0.9494 MB / 0.8419 GB, free: 10.45 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3101/2.002, allocations: 12.7 MB / 0.8543 GB, free: 98.59 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009164/2.011, allocations: 4.613 MB / 0.8588 GB, free: 97.74 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.004288/2.015, allocations: 0.9757 MB / 0.8598 GB, free: 97.7 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004046/2.019, allocations: 2.655 MB / 0.8624 GB, free: 97.7 MB / 458.7 MB Notification: Performance of SimCode: time 1.202e-06/2.019, allocations: 1.062 kB / 0.8624 GB, free: 97.7 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1661/2.186, allocations: 104.1 MB / 0.9641 GB, free: 51.13 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001768/2.186, allocations: 162.5 kB / 0.9642 GB, free: 50.93 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.292/7.477, allocations: 3.938 kB / 0.9642 GB, free: 50.93 MB / 458.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start.fmu > Modelica_3.2.3_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_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_res.mat does not exist to compare? outputFormat=mat