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.001208/0.001208, allocations: 175.5 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.511/1.511, allocations: 221.3 MB / 235.5 MB, free: 2.926 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.0008987/0.0008982, allocations: 94 kB / 286.5 MB, free: 184 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.342e-05/3.344e-05, allocations: 4 kB / 344 MB, free: 4.191 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1262/0.1263, allocations: 50.41 MB / 394.4 MB, free: 1.738 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4767/0.603, allocations: 153.8 MB / 0.5353 GB, free: 13.58 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003931/0.6035, allocations: 105.5 kB / 0.5354 GB, free: 13.48 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.854/2.458, allocations: 456.9 MB / 0.9815 GB, free: 35.96 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.795e-06/2.458, allocations: 0 / 0.9815 GB, free: 35.96 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.00104/2.459, allocations: 329.5 kB / 0.9819 GB, free: 35.91 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.04803/2.507, allocations: 13.18 MB / 0.9947 GB, free: 30.43 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.395e-05/2.507, allocations: 10.75 kB / 0.9947 GB, free: 30.43 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0105/2.518, allocations: 2.274 MB / 0.997 GB, free: 29.35 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03354/2.551, allocations: 5.829 MB / 1.003 GB, free: 26.47 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02796/2.579, allocations: 11.69 MB / 1.014 GB, free: 14.87 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00133/2.581, allocations: 1.033 MB / 1.015 GB, free: 13.85 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006351/2.587, allocations: 1.351 MB / 1.016 GB, free: 12.51 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06383/2.651, allocations: 22.17 MB / 1.038 GB, free: 5.898 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007105/2.652, allocations: 19.8 kB / 1.038 GB, free: 5.879 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005325/2.657, allocations: 0.5826 MB / 1.039 GB, free: 5.309 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001288/2.658, allocations: 0.9745 MB / 1.04 GB, free: 4.332 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4047/3.063, allocations: 19.17 MB / 1.058 GB, free: 50.55 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1447/3.208, allocations: 72.72 MB / 1.129 GB, free: 28.64 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03197/3.24, allocations: 42.13 MB / 1.17 GB, free: 5.906 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009754/3.25, allocations: 5.072 MB / 1.175 GB, free: 3.941 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03463/3.284, allocations: 13 MB / 1.188 GB, free: 14.95 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.18e-05/3.284, allocations: 94.34 kB / 1.188 GB, free: 14.87 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=502): time 6.963e-06/3.284, allocations: 2.406 kB / 1.188 GB, free: 14.87 MB / 0.4948 GB Notification: Performance of matching and sorting (n=510): time 0.04167/3.326, allocations: 18.83 MB / 1.207 GB, free: 5.352 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.683e-05/3.326, allocations: 134.9 kB / 1.207 GB, free: 5.246 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01241/3.339, allocations: 5.003 MB / 1.212 GB, free: 1.891 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001449/3.34, allocations: 109.4 kB / 1.212 GB, free: 1.781 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.006562/3.347, allocations: 6.142 MB / 1.218 GB, free: 12.34 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.003212/3.35, allocations: 1.735 MB / 1.219 GB, free: 10.78 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001301/3.351, allocations: 148 kB / 1.22 GB, free: 10.64 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0007265/3.352, allocations: 0.6099 MB / 1.22 GB, free: 10.12 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007413/3.359, allocations: 3.513 MB / 1.224 GB, free: 6.973 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.424/3.784, allocations: 6.292 MB / 1.23 GB, free: 91.76 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01113/3.795, allocations: 4.924 MB / 1.235 GB, free: 91.7 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001086/3.795, allocations: 23.22 kB / 1.235 GB, free: 91.7 MB / 0.5105 GB Notification: Performance of matching and sorting (n=960) (initialization): time 0.03065/3.826, allocations: 11.79 MB / 1.246 GB, free: 91.39 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001492/3.826, allocations: 43.09 kB / 1.246 GB, free: 91.39 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002779/3.826, allocations: 95.73 kB / 1.246 GB, free: 91.39 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005528/3.832, allocations: 1.502 MB / 1.248 GB, free: 91.34 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00829/3.84, allocations: 1.644 MB / 1.249 GB, free: 91.34 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02371/3.864, allocations: 17.82 MB / 1.267 GB, free: 84.77 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009793/3.873, allocations: 437.1 kB / 1.267 GB, free: 84.77 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002314/3.876, allocations: 363 kB / 1.267 GB, free: 84.77 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 (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 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%) 1,(12,52.8%) 64,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002477/3.878, allocations: 0.5717 MB / 1.268 GB, free: 84.66 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001935/3.88, allocations: 0.5922 MB / 1.269 GB, free: 84.66 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01876/3.899, allocations: 9.174 MB / 1.278 GB, free: 84.12 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01129/3.91, allocations: 5.763 MB / 1.283 GB, free: 83.94 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001044/3.911, allocations: 21.22 kB / 1.283 GB, free: 83.94 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001862/3.911, allocations: 25.97 kB / 1.283 GB, free: 83.94 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05707/3.968, allocations: 20.86 MB / 1.304 GB, free: 82.38 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.986e-05/3.968, allocations: 7.125 kB / 1.304 GB, free: 82.38 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004321/3.972, allocations: 0.8557 MB / 1.304 GB, free: 82.35 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004805/3.977, allocations: 1.533 MB / 1.306 GB, free: 81.94 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001185/3.978, allocations: 130.4 kB / 1.306 GB, free: 81.86 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02743/4.006, allocations: 21 MB / 1.327 GB, free: 67.14 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.736e-05/4.006, allocations: 14.34 kB / 1.327 GB, free: 67.14 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03121/4.037, allocations: 14.28 MB / 1.34 GB, free: 60.14 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005591/4.043, allocations: 1.364 MB / 1.342 GB, free: 59.34 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003105/4.046, allocations: 104.5 kB / 1.342 GB, free: 59.27 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005655/4.052, allocations: 305.4 kB / 1.342 GB, free: 59.19 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001907/4.054, allocations: 403 kB / 1.343 GB, free: 59.13 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001157/4.055, allocations: 155.1 kB / 1.343 GB, free: 59.1 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01028/4.065, allocations: 3.755 MB / 1.346 GB, free: 57.68 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.51e-07/4.065, allocations: 0 / 1.346 GB, free: 57.68 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01725/4.082, allocations: 2.375 MB / 1.349 GB, free: 57.45 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 10 (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,loadInertiaQS.w,quadraticLoadTorqueQS.phi,imcQS.rotorCage.port_p.reference.gamma) * 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 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,(1,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8,(2,100.0%) 12,(1,100.0%) 1,(12,52.1%) 64} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02872/4.111, allocations: 16.71 MB / 1.365 GB, free: 42.55 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01862/4.13, allocations: 9.602 MB / 1.374 GB, free: 33.71 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-05/4.13, allocations: 4 kB / 1.374 GB, free: 33.71 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01096/4.141, allocations: 5.355 MB / 1.38 GB, free: 28.8 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01062/4.152, allocations: 1.483 MB / 1.381 GB, free: 27.66 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08165/4.233, allocations: 25.23 MB / 1.406 GB, free: 5.723 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02935/4.263, allocations: 9.513 MB / 1.415 GB, free: 15.96 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.01357/4.276, allocations: 3.085 MB / 1.418 GB, free: 15.46 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.4437/4.72, allocations: 5.802 MB / 1.424 GB, free: 99.45 MB / 0.5261 GB Notification: Performance of SimCode: time 3.026e-06/4.72, allocations: 1.406 kB / 1.424 GB, free: 99.45 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3099/5.03, allocations: 188 MB / 1.607 GB, free: 14.67 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001962/5.03, allocations: 235.9 kB / 1.608 GB, free: 14.44 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.589/13.62, allocations: 3.375 kB / 1.608 GB, free: 14.44 MB / 0.5417 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