Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.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.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Steinmetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Steinmetz",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.001573/0.001572, allocations: 174.6 kB / 8.347 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.369/1.369, allocations: 221.5 MB / 230.3 MB, free: 7.582 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.0009257/0.0009257, allocations: 82.16 kB / 281.2 MB, free: 5.348 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.939e-05/1.94e-05, allocations: 7.938 kB / 337.2 MB, free: 9.934 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09658/0.09662, allocations: 50.42 MB / 387.6 MB, free: 7.469 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3919/0.4886, allocations: 110.2 MB / 497.8 MB, free: 472 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002842/0.4889, allocations: 95.94 kB / 497.9 MB, free: 376 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4332/0.9222, allocations: 79.74 MB / 0.5641 GB, free: 95 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.274e-06/0.9222, allocations: 3.172 kB / 0.5641 GB, free: 95 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002515/0.9225, allocations: 80.22 kB / 0.5641 GB, free: 94.99 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: 844 * Number of variables: 844 Notification: Performance of Generate backend data structure: time 0.009469/0.9319, allocations: 3.213 MB / 0.5673 GB, free: 93.77 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.888e-05/0.932, allocations: 10.95 kB / 0.5673 GB, free: 93.77 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005526/0.9375, allocations: 0.7287 MB / 0.568 GB, free: 93.59 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009182/0.9468, allocations: 3.318 MB / 0.5712 GB, free: 93.05 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002467/0.9471, allocations: 104.5 kB / 0.5713 GB, free: 93.05 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001062/0.9482, allocations: 191.9 kB / 0.5715 GB, free: 93.05 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0072/0.9554, allocations: 3.13 MB / 0.5746 GB, free: 93.03 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008091/0.9635, allocations: 3.658 MB / 0.5781 GB, free: 92.63 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.667e-05/0.9636, allocations: 7.844 kB / 0.5782 GB, free: 92.63 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002961/0.9639, allocations: 7.266 kB / 0.5782 GB, free: 92.63 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001465/0.9641, allocations: 143.3 kB / 0.5783 GB, free: 92.62 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02219/0.9863, allocations: 13.29 MB / 0.5913 GB, free: 87.71 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005002/0.9914, allocations: 6.421 MB / 0.5975 GB, free: 81.9 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001835/0.9932, allocations: 1.297 MB / 0.5988 GB, free: 81.43 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005794/0.999, allocations: 3.502 MB / 0.6022 GB, free: 79.48 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.916e-05/0.9991, allocations: 51.02 kB / 0.6023 GB, free: 79.43 MB / 426.7 MB Notification: Performance of pre-optimization done (n=132): time 4.378e-06/0.9991, allocations: 0 / 0.6023 GB, free: 79.43 MB / 426.7 MB Notification: Performance of matching and sorting (n=135): time 0.008048/1.007, allocations: 4.286 MB / 0.6065 GB, free: 77.25 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.231e-05/1.007, allocations: 62.97 kB / 0.6065 GB, free: 77.19 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001934/1.009, allocations: 1.263 MB / 0.6078 GB, free: 76.65 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001121/1.009, allocations: 25.7 kB / 0.6078 GB, free: 76.62 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007062/1.01, allocations: 1.45 MB / 0.6092 GB, free: 75.52 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002571/1.01, allocations: 450 kB / 0.6096 GB, free: 75.16 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.865e-05/1.01, allocations: 3.844 kB / 0.6096 GB, free: 75.16 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001043/1.01, allocations: 374.7 kB / 0.61 GB, free: 74.83 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007697/1.011, allocations: 0.6046 MB / 0.6106 GB, free: 74.57 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009813/1.012, allocations: 1.095 MB / 0.6116 GB, free: 73.68 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001533/1.014, allocations: 0.951 MB / 0.6126 GB, free: 73.3 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-05/1.014, allocations: 6.562 kB / 0.6126 GB, free: 73.3 MB / 426.7 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.00392/1.018, allocations: 2.369 MB / 0.6149 GB, free: 72.29 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.178e-05/1.018, allocations: 9.625 kB / 0.6149 GB, free: 72.29 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.49e-05/1.018, allocations: 16.78 kB / 0.6149 GB, free: 72.29 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008719/1.019, allocations: 353 kB / 0.6153 GB, free: 72.16 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001294/1.02, allocations: 371.4 kB / 0.6156 GB, free: 72.12 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005327/1.025, allocations: 7.39 MB / 0.6228 GB, free: 65.84 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001804/1.027, allocations: 44.25 kB / 0.6229 GB, free: 65.84 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001423/1.027, allocations: 72.27 kB / 0.6229 GB, free: 65.83 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 70 * Number of states: 0 () * Number of discrete variables: 2 (booleanStep.y,greaterThreshold.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (188): * Single equations (assignments): 183 * 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: 4 * 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: 4 {(1,100.0%) 1,(1,100.0%) 7,(2,100.0%) 8,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003242/1.028, allocations: 168.1 kB / 0.6231 GB, free: 65.68 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004354/1.032, allocations: 2.081 MB / 0.6251 GB, free: 64.69 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004682/1.033, allocations: 171 kB / 0.6253 GB, free: 64.6 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003885/1.036, allocations: 2.208 MB / 0.6274 GB, free: 63.55 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.165e-05/1.037, allocations: 11.25 kB / 0.6275 GB, free: 63.55 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.127e-05/1.037, allocations: 7.438 kB / 0.6275 GB, free: 63.55 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.556e-05/1.037, allocations: 10.38 kB / 0.6275 GB, free: 63.55 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009133/1.046, allocations: 4.56 MB / 0.6319 GB, free: 61.38 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.608e-06/1.046, allocations: 0 / 0.6319 GB, free: 61.38 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007834/1.047, allocations: 168.5 kB / 0.6321 GB, free: 61.37 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001333/1.048, allocations: 0.5166 MB / 0.6326 GB, free: 61.18 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001114/1.048, allocations: 18.53 kB / 0.6326 GB, free: 61.17 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009037/1.057, allocations: 11.61 MB / 0.6439 GB, free: 51.41 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.202e-06/1.057, allocations: 0 / 0.6439 GB, free: 51.41 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005039/1.062, allocations: 3.191 MB / 0.6471 GB, free: 48.54 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001077/1.063, allocations: 397.3 kB / 0.6474 GB, free: 48.17 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006077/1.064, allocations: 15.94 kB / 0.6475 GB, free: 48.15 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001217/1.065, allocations: 54.81 kB / 0.6475 GB, free: 48.11 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003079/1.066, allocations: 100.3 kB / 0.6476 GB, free: 48.05 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.782e-05/1.066, allocations: 37.88 kB / 0.6476 GB, free: 48.02 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001909/1.068, allocations: 0.9402 MB / 0.6486 GB, free: 47.18 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.4e-07/1.068, allocations: 4 kB / 0.6486 GB, free: 47.17 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003269/1.071, allocations: 0.5352 MB / 0.6491 GB, free: 46.64 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 9 (aimc.inertiaRotor.w,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.zeroInductor.i0,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque.phi,cRun.v,cStart.v) * Number of discrete variables: 2 (booleanStep.y,greaterThreshold.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 78 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 7,(2,100.0%) 8,(1,100.0%) 1,(1,100.0%) 13,(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.005601/1.076, allocations: 4.378 MB / 0.6534 GB, free: 42.53 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003241/1.08, allocations: 2.153 MB / 0.6555 GB, free: 40.46 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.504e-06/1.08, allocations: 4 kB / 0.6555 GB, free: 40.46 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00208/1.082, allocations: 1.596 MB / 0.657 GB, free: 38.91 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002752/1.085, allocations: 384.4 kB / 0.6574 GB, free: 38.61 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01355/1.098, allocations: 5.378 MB / 0.6626 GB, free: 33.91 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002851/1.101, allocations: 2.358 MB / 0.6649 GB, free: 32.05 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001673/1.103, allocations: 374.2 kB / 0.6653 GB, free: 31.8 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001548/1.104, allocations: 1.126 MB / 0.6664 GB, free: 30.76 MB / 426.7 MB Notification: Performance of SimCode: time 1.323e-06/1.104, allocations: 0 / 0.6664 GB, free: 30.76 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08593/1.19, allocations: 44.3 MB / 0.7097 GB, free: 5.895 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002579/1.191, allocations: 193.2 kB / 0.7098 GB, free: 5.695 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.228/4.419, allocations: 0 / 0.7098 GB, free: 5.695 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Steinmetz_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Steinmetz.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz_res.mat does not exist to compare? outputFormat=mat