Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001049/0.001049, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.42/1.42, allocations: 221.5 MB / 230.3 MB, free: 7.559 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00088/0.0008801, allocations: 87.48 kB / 281.2 MB, free: 5.316 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.228e-05/2.23e-05, allocations: 4 kB / 337.2 MB, free: 9.891 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.113, allocations: 50.42 MB / 387.6 MB, free: 7.43 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4578/0.5708, allocations: 153.1 MB / 0.528 GB, free: 5.5 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002625/0.5711, allocations: 99.92 kB / 0.5281 GB, free: 5.402 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.752/2.324, allocations: 451.9 MB / 0.9694 GB, free: 39.21 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.964e-06/2.324, allocations: 3.75 kB / 0.9694 GB, free: 39.21 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.001618/2.325, allocations: 333.5 kB / 0.9697 GB, free: 39.16 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3921 * Number of variables: 3921 Notification: Performance of Generate backend data structure: time 0.05486/2.38, allocations: 13.19 MB / 0.9826 GB, free: 35.09 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.985e-05/2.38, allocations: 13.33 kB / 0.9826 GB, free: 35.08 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03618/2.416, allocations: 5.811 MB / 0.9883 GB, free: 34.29 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03137/2.448, allocations: 11.67 MB / 0.9997 GB, free: 30.28 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001079/2.449, allocations: 455 kB / 1 GB, free: 30.28 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007193/2.456, allocations: 0.7989 MB / 1.001 GB, free: 30.27 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03989/2.496, allocations: 17.54 MB / 1.018 GB, free: 15.82 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07164/2.568, allocations: 19.98 MB / 1.038 GB, free: 14.13 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001039/2.569, allocations: 27.33 kB / 1.038 GB, free: 14.11 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006922/2.576, allocations: 8 kB / 1.038 GB, free: 14.1 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001703/2.578, allocations: 0.9785 MB / 1.039 GB, free: 13.23 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5073/3.085, allocations: 71.35 MB / 1.108 GB, free: 48.34 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02825/3.113, allocations: 41.9 MB / 1.149 GB, free: 12.02 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007873/3.121, allocations: 5.07 MB / 1.154 GB, free: 10.05 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02518/3.146, allocations: 13.08 MB / 1.167 GB, free: 4.125 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.098e-05/3.147, allocations: 86.06 kB / 1.167 GB, free: 4.051 MB / 474.7 MB Notification: Performance of pre-optimization done (n=502): time 7.304e-06/3.147, allocations: 2.25 kB / 1.167 GB, free: 4.051 MB / 474.7 MB Notification: Performance of matching and sorting (n=510): time 0.05196/3.198, allocations: 22.18 MB / 1.189 GB, free: 11.49 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.437e-05/3.199, allocations: 136.6 kB / 1.189 GB, free: 11.39 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00874/3.207, allocations: 4.361 MB / 1.193 GB, free: 9.676 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001154/3.209, allocations: 25.7 kB / 1.193 GB, free: 9.645 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005003/3.214, allocations: 6.131 MB / 1.199 GB, free: 5.031 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003245/3.217, allocations: 1.673 MB / 1.201 GB, free: 3.723 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009414/3.218, allocations: 0 / 1.201 GB, free: 3.723 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0005744/3.218, allocations: 0.6076 MB / 1.201 GB, free: 3.285 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005545/3.224, allocations: 3.578 MB / 1.205 GB, free: 1.82 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008228/3.232, allocations: 6.317 MB / 1.211 GB, free: 12.76 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01158/3.244, allocations: 6.031 MB / 1.217 GB, free: 8.25 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001163/3.244, allocations: 28 kB / 1.217 GB, free: 8.223 MB / 0.4948 GB Notification: Performance of matching and sorting (n=960) (initialization): time 0.03149/3.275, allocations: 12.76 MB / 1.229 GB, free: 15.09 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001262/3.276, allocations: 48.25 kB / 1.229 GB, free: 15.04 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002769/3.276, allocations: 92 kB / 1.229 GB, free: 14.95 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004639/3.281, allocations: 1.481 MB / 1.231 GB, free: 13.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007801/3.288, allocations: 1.695 MB / 1.232 GB, free: 12.37 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4025/3.691, allocations: 17.21 MB / 1.249 GB, free: 93.72 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008141/3.699, allocations: 339.7 kB / 1.25 GB, free: 93.72 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002421/3.702, allocations: 365.8 kB / 1.25 GB, free: 93.72 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 417 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep[1].y,booleanStep[2].y,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 (860): * Single equations (assignments): 850 * 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: 5 * 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: 5 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 1,(12,53.5%) 64} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001766/3.703, allocations: 356.9 kB / 1.25 GB, free: 93.62 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02055/3.724, allocations: 9.135 MB / 1.259 GB, free: 93.21 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002939/3.727, allocations: 0.5607 MB / 1.26 GB, free: 93.21 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02496/3.752, allocations: 10.07 MB / 1.27 GB, free: 92.71 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01452/3.766, allocations: 6.744 MB / 1.276 GB, free: 92.53 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.906e-05/3.767, allocations: 23.59 kB / 1.276 GB, free: 92.53 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001835/3.767, allocations: 30.67 kB / 1.276 GB, free: 92.52 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05549/3.822, allocations: 20.16 MB / 1.296 GB, free: 91.37 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.158e-05/3.822, allocations: 10.27 kB / 1.296 GB, free: 91.37 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004713/3.827, allocations: 0.9098 MB / 1.297 GB, free: 91.37 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004953/3.832, allocations: 1.515 MB / 1.298 GB, free: 91.3 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001295/3.833, allocations: 48.44 kB / 1.298 GB, free: 91.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02521/3.859, allocations: 20.35 MB / 1.318 GB, free: 82.57 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-05/3.859, allocations: 8.406 kB / 1.318 GB, free: 82.57 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02844/3.887, allocations: 15.5 MB / 1.333 GB, free: 76.84 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004575/3.892, allocations: 1.366 MB / 1.335 GB, free: 76.05 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002587/3.894, allocations: 20.23 kB / 1.335 GB, free: 76.04 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005456/3.9, allocations: 270.7 kB / 1.335 GB, free: 76.04 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001955/3.902, allocations: 410.8 kB / 1.335 GB, free: 75.98 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001072/3.903, allocations: 155 kB / 1.336 GB, free: 75.95 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.007454/3.91, allocations: 3.194 MB / 1.339 GB, free: 74.68 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.9e-07/3.91, allocations: 2.078 kB / 1.339 GB, free: 74.68 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01422/3.925, allocations: 2.122 MB / 1.341 GB, free: 74.66 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 10 (loadInertiaQS.w,quadraticLoadTorqueQS.phi,imcQS.rotorCage.port_p.reference.gamma,imc.inertiaRotor.w,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.zeroInductor.i0,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque.phi) * Number of discrete variables: 6 (booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (439): * Single equations (assignments): 428 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 1,(12,50.7%) 64,(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 5,(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.03421/3.959, allocations: 17.73 MB / 1.358 GB, free: 65.51 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01715/3.976, allocations: 9.583 MB / 1.367 GB, free: 60.61 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.647e-05/3.976, allocations: 4 kB / 1.367 GB, free: 60.61 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01001/3.986, allocations: 5.382 MB / 1.373 GB, free: 55.82 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009105/3.995, allocations: 1.188 MB / 1.374 GB, free: 54.95 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06589/4.061, allocations: 24.97 MB / 1.398 GB, free: 33.38 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01575/4.077, allocations: 9.089 MB / 1.407 GB, free: 26.59 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.009552/4.087, allocations: 2.494 MB / 1.41 GB, free: 24.96 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009794/4.097, allocations: 5.131 MB / 1.415 GB, free: 20.18 MB / 0.5105 GB Notification: Performance of SimCode: time 1.383e-06/4.097, allocations: 0 / 1.415 GB, free: 20.18 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6486/4.745, allocations: 172.2 MB / 1.583 GB, free: 17.38 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001755/4.745, allocations: 195.9 kB / 1.583 GB, free: 17.18 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.261/12.01, allocations: 3.266 kB / 1.583 GB, free: 17.18 MB / 0.5105 GB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL_res.mat does not exist to compare? outputFormat=mat