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_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_cpp_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_cpp_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.001534/0.001534, allocations: 185.5 kB / 16.41 MB, free: 5.727 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.91/1.91, allocations: 205.4 MB / 222.5 MB, free: 9.137 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.001129/0.001128, allocations: 96.36 kB / 270.9 MB, free: 8.387 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000398/0.0003981, allocations: 12 kB / 327.1 MB, free: 112 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.33/0.3304, allocations: 47.56 MB / 374.6 MB, free: 45.29 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1857/0.5162, allocations: 114.7 MB / 489.4 MB, free: 13.85 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003249/0.5165, allocations: 87.95 kB / 489.5 MB, free: 13.77 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.336/1.853, allocations: 220.1 MB / 0.693 GB, free: 31.34 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.723e-06/1.853, allocations: 0 / 0.693 GB, free: 31.34 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.001148/1.854, allocations: 245.2 kB / 0.6932 GB, free: 31.31 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.04719/1.901, allocations: 10.54 MB / 0.7035 GB, free: 27.57 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.797e-05/1.902, allocations: 11.19 kB / 0.7035 GB, free: 27.57 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006175/1.908, allocations: 1.39 MB / 0.7049 GB, free: 27.47 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01711/1.925, allocations: 2.137 MB / 0.707 GB, free: 26.87 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03258/1.957, allocations: 8.955 MB / 0.7157 GB, free: 25.56 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0011/1.959, allocations: 0.7502 MB / 0.7164 GB, free: 25.54 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004711/1.963, allocations: 0.9848 MB / 0.7174 GB, free: 25.53 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04907/2.013, allocations: 14.07 MB / 0.7311 GB, free: 24.36 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006248/2.013, allocations: 9.969 kB / 0.7311 GB, free: 24.36 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003991/2.017, allocations: 427 kB / 0.7316 GB, free: 24.36 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005509/2.018, allocations: 460.7 kB / 0.732 GB, free: 24.33 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03949/2.057, allocations: 11.85 MB / 0.7436 GB, free: 19.66 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1222/2.18, allocations: 44.14 MB / 0.7867 GB, free: 2.914 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3854/2.565, allocations: 24.77 MB / 0.8109 GB, free: 39.02 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03084/2.596, allocations: 10.1 MB / 0.8207 GB, free: 38.23 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.877e-05/2.596, allocations: 85.77 kB / 0.8208 GB, free: 38.18 MB / 442.7 MB Notification: Performance of pre-optimization done (n=455): time 7.634e-06/2.596, allocations: 0 / 0.8208 GB, free: 38.18 MB / 442.7 MB Notification: Performance of matching and sorting (n=463): time 0.0977/2.694, allocations: 23.21 MB / 0.8435 GB, free: 34.97 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.269e-05/2.694, allocations: 99.08 kB / 0.8436 GB, free: 34.9 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01271/2.707, allocations: 4.699 MB / 0.8482 GB, free: 34.59 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001058/2.708, allocations: 108.3 kB / 0.8483 GB, free: 34.56 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003631/2.711, allocations: 4.012 MB / 0.8522 GB, free: 32.89 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002429/2.714, allocations: 1.532 MB / 0.8537 GB, free: 31.91 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006369/2.715, allocations: 100.8 kB / 0.8538 GB, free: 31.91 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003427/2.715, allocations: 0.4997 MB / 0.8543 GB, free: 31.59 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006953/2.722, allocations: 2.523 MB / 0.8567 GB, free: 31.58 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008181/2.73, allocations: 3.613 MB / 0.8602 GB, free: 30.41 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008234/2.738, allocations: 3.061 MB / 0.8632 GB, free: 30.37 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.405e-05/2.738, allocations: 17.67 kB / 0.8633 GB, free: 30.37 MB / 442.7 MB Notification: Performance of matching and sorting (n=638) (initialization): time 0.02361/2.762, allocations: 7.971 MB / 0.871 GB, free: 29.48 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.982e-05/2.762, allocations: 16.94 kB / 0.8711 GB, free: 29.48 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.119e-05/2.762, allocations: 31.56 kB / 0.8711 GB, free: 29.48 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006061/2.768, allocations: 1.52 MB / 0.8726 GB, free: 28.96 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008437/2.777, allocations: 1.037 MB / 0.8736 GB, free: 28.92 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03365/2.81, allocations: 27.57 MB / 0.9005 GB, free: 6.363 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007007/2.818, allocations: 245 kB / 0.9007 GB, free: 6.27 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001226/2.819, allocations: 196.2 kB / 0.9009 GB, free: 6.227 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.009165/2.828, allocations: 3.289 MB / 0.9041 GB, free: 4.656 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001831/2.83, allocations: 0.5891 MB / 0.9047 GB, free: 4.352 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0264/2.856, allocations: 8.363 MB / 0.9129 GB, free: 0.7148 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.661e-05/2.856, allocations: 42.78 kB / 0.9129 GB, free: 0.7148 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001148/2.856, allocations: 31.84 kB / 0.9129 GB, free: 0.7148 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001283/2.857, allocations: 20.39 kB / 0.913 GB, free: 0.7148 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05901/2.916, allocations: 17.91 MB / 0.9305 GB, free: 9.406 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.385e-05/2.916, allocations: 5.75 kB / 0.9305 GB, free: 9.406 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004992/2.921, allocations: 0.5163 MB / 0.931 GB, free: 9.387 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009715/2.931, allocations: 2.276 MB / 0.9332 GB, free: 8.664 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001085/2.932, allocations: 100.6 kB / 0.9333 GB, free: 8.602 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06699/2.999, allocations: 35.65 MB / 0.9681 GB, free: 9.426 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.027e-06/2.999, allocations: 7.094 kB / 0.9681 GB, free: 9.422 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4004/3.399, allocations: 13.15 MB / 0.9809 GB, free: 92.37 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004869/3.404, allocations: 1.239 MB / 0.9822 GB, free: 92.27 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002301/3.406, allocations: 90.56 kB / 0.9822 GB, free: 92.27 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006763/3.413, allocations: 263.1 kB / 0.9825 GB, free: 92.27 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002113/3.415, allocations: 471.7 kB / 0.9829 GB, free: 92.27 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006069/3.416, allocations: 122.1 kB / 0.9831 GB, free: 92.27 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.009351/3.425, allocations: 3.608 MB / 0.9866 GB, free: 92.09 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.533e-06/3.425, allocations: 3.719 kB / 0.9866 GB, free: 92.09 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01068/3.436, allocations: 1.934 MB / 0.9885 GB, free: 92.09 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.03536/3.472, allocations: 14.43 MB / 1.003 GB, free: 89.11 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0216/3.493, allocations: 8.279 MB / 1.011 GB, free: 87.23 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.402e-05/3.493, allocations: 2.531 kB / 1.011 GB, free: 87.23 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01594/3.509, allocations: 6.019 MB / 1.017 GB, free: 85.61 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01255/3.522, allocations: 1.602 MB / 1.018 GB, free: 85.59 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1762/3.698, allocations: 81.81 MB / 1.098 GB, free: 38.24 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01448/3.713, allocations: 6.404 MB / 1.104 GB, free: 36.16 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01041/3.723, allocations: 3.908 MB / 1.108 GB, free: 32.86 MB / 490.7 MB Notification: Performance of SimCode: time 1.272e-06/3.723, allocations: 0 / 1.108 GB, free: 32.86 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.962/12.69, allocations: 0.8794 GB / 1.987 GB, free: 68.13 MB / 0.5105 GB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start_MultiPhase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start_MultiPhase.fmu > Modelica_3.2.3_cpp_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_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase_res.mat does not exist to compare? outputFormat=mat