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_YD.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_YD,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001011/0.001011, allocations: 186 kB / 8.137 MB, free: 2.188 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.177/1.177, allocations: 221.4 MB / 229.9 MB, free: 3.004 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.0009877/0.0009877, allocations: 106.6 kB / 280.8 MB, free: 1.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09293/0.09395, allocations: 55.83 MB / 336.6 MB, free: 9.398 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1785/0.2724, allocations: 50.39 MB / 387 MB, free: 37.97 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.112/0.3845, allocations: 110.9 MB / 497.9 MB, free: 7.82 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002396/0.3847, allocations: 95.88 kB / 498 MB, free: 7.727 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1011 * Number of variables: 1011 Notification: Performance of Generate backend data structure: time 0.3705/0.7553, allocations: 95.57 MB / 0.5797 GB, free: 17.75 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.196e-05/0.7553, allocations: 8 kB / 0.5797 GB, free: 17.74 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004344/0.7597, allocations: 0.8261 MB / 0.5805 GB, free: 16.91 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007618/0.7673, allocations: 3.832 MB / 0.5842 GB, free: 13.09 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001162/0.7674, allocations: 128 kB / 0.5843 GB, free: 12.97 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005135/0.768, allocations: 231.9 kB / 0.5846 GB, free: 12.74 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00628/0.7743, allocations: 4.201 MB / 0.5887 GB, free: 8.539 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006624/0.7809, allocations: 4.685 MB / 0.5932 GB, free: 3.719 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.624e-05/0.781, allocations: 0 / 0.5932 GB, free: 3.719 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00034/0.7813, allocations: 8 kB / 0.5932 GB, free: 3.711 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001096/0.7815, allocations: 175.7 kB / 0.5934 GB, free: 3.539 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02444/0.8059, allocations: 16.32 MB / 0.6093 GB, free: 2.977 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002092/0.808, allocations: 1.476 MB / 0.6108 GB, free: 1.496 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002761/0.8108, allocations: 1.879 MB / 0.6126 GB, free: 15.62 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007387/0.8182, allocations: 4.352 MB / 0.6169 GB, free: 11.23 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002093/0.8203, allocations: 1.447 MB / 0.6183 GB, free: 9.746 MB / 410.7 MB Notification: Performance of pre-optimization done (n=223): time 3.516e-06/0.8203, allocations: 0 / 0.6183 GB, free: 9.746 MB / 410.7 MB Notification: Performance of matching and sorting (n=226): time 0.01178/0.8321, allocations: 6.497 MB / 0.6246 GB, free: 3.16 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001234/0.8323, allocations: 235.6 kB / 0.6249 GB, free: 2.883 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002525/0.8348, allocations: 1.723 MB / 0.6265 GB, free: 1.121 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001346/0.8349, allocations: 29.7 kB / 0.6266 GB, free: 1.086 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001129/0.8361, allocations: 1.342 MB / 0.6279 GB, free: 15.72 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005861/0.8367, allocations: 0.7036 MB / 0.6286 GB, free: 15.01 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001206/0.8368, allocations: 0 / 0.6286 GB, free: 15.01 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001875/0.837, allocations: 398.7 kB / 0.6289 GB, free: 14.62 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001669/0.8387, allocations: 1.11 MB / 0.63 GB, free: 13.5 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002055/0.8407, allocations: 1.663 MB / 0.6317 GB, free: 11.62 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002339/0.8431, allocations: 1.384 MB / 0.633 GB, free: 10.24 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.884e-06/0.8431, allocations: 4 kB / 0.633 GB, free: 10.23 MB / 426.7 MB Notification: Performance of matching and sorting (n=304) (initialization): time 0.0062/0.8493, allocations: 3.643 MB / 0.6366 GB, free: 6.559 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.434e-05/0.8493, allocations: 4 kB / 0.6366 GB, free: 6.555 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.964e-05/0.8494, allocations: 16 kB / 0.6366 GB, free: 6.539 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00183/0.8512, allocations: 0.7675 MB / 0.6373 GB, free: 5.758 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001902/0.8531, allocations: 435.3 kB / 0.6378 GB, free: 5.332 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01127/0.8644, allocations: 10.21 MB / 0.6477 GB, free: 10.66 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001925/0.8663, allocations: 96.02 kB / 0.6478 GB, free: 10.57 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002051/0.8666, allocations: 95.98 kB / 0.6479 GB, free: 10.47 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * Number of states: 0 () * Number of discrete variables: 24 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,switchYD.idealCloser.control[1],switchYD.idealCloser.control[2],switchYD.idealCloser.control[3],switchYD.idealOpener.control[1],switchYD.idealOpener.control[2],switchYD.idealOpener.control[3],$PRE.switchYD.logicalDelay[1].tSwitch,switchYD.logicalDelay[1].tSwitch,$PRE.switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[2].tSwitch,$PRE.switchYD.logicalDelay[3].tSwitch,switchYD.logicalDelay[3].tSwitch,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (248): * Single equations (assignments): 243 * 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%) 8,(9,33.3%) 25,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004099/0.867, allocations: 190.9 kB / 0.6481 GB, free: 10.28 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003584/0.8674, allocations: 241 kB / 0.6483 GB, free: 10.04 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006451/0.8738, allocations: 3.557 MB / 0.6518 GB, free: 6.43 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.197e-05/0.8739, allocations: 24 kB / 0.6518 GB, free: 6.406 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.01e-05/0.8739, allocations: 8 kB / 0.6518 GB, free: 6.398 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.176e-05/0.8739, allocations: 19.94 kB / 0.6518 GB, free: 6.379 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1254/0.9993, allocations: 7.253 MB / 0.6589 GB, free: 125.9 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.697e-06/0.9994, allocations: 5.031 kB / 0.6589 GB, free: 125.9 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001277/1.001, allocations: 246.3 kB / 0.6592 GB, free: 125.9 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002119/1.003, allocations: 0.9354 MB / 0.6601 GB, free: 125.8 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001496/1.003, allocations: 19.2 kB / 0.6601 GB, free: 125.8 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01226/1.015, allocations: 14.32 MB / 0.6741 GB, free: 118.4 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.037e-06/1.015, allocations: 0 / 0.6741 GB, free: 118.4 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006933/1.022, allocations: 5.327 MB / 0.6793 GB, free: 117.8 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.008539/1.031, allocations: 7.442 MB / 0.6866 GB, free: 116.8 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001104/1.032, allocations: 0.5838 MB / 0.6871 GB, free: 116.6 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004128/1.032, allocations: 11.06 kB / 0.6871 GB, free: 116.6 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001267/1.034, allocations: 84.08 kB / 0.6872 GB, free: 116.6 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003357/1.034, allocations: 161.3 kB / 0.6874 GB, free: 116.6 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001324/1.034, allocations: 58.83 kB / 0.6874 GB, free: 116.6 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.001621/1.036, allocations: 1.284 MB / 0.6887 GB, free: 116.5 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002976/1.039, allocations: 0.7515 MB / 0.6894 GB, free: 116.5 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (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,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 21 (booleanStepYD[3].y,booleanStepYD[2].y,booleanStepYD[1].y,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,switchYD.idealCloser.control[1],switchYD.idealCloser.control[2],switchYD.idealCloser.control[3],switchYD.idealOpener.control[1],switchYD.idealOpener.control[2],switchYD.idealOpener.control[3],switchYD.logicalDelay[1].tSwitch,switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[3].tSwitch) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (150): * Single equations (assignments): 141 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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%) 13,(1,100.0%) 1,(1,100.0%) 8,(9,33.3%) 25,(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.0004811/1.039, allocations: 352.8 kB / 0.6897 GB, free: 116.4 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003927/1.043, allocations: 3.344 MB / 0.693 GB, free: 115.9 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/1.043, allocations: 0 / 0.693 GB, free: 115.9 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002822/1.046, allocations: 2.326 MB / 0.6953 GB, free: 115.2 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002022/1.048, allocations: 0.5029 MB / 0.6958 GB, free: 115.2 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01003/1.058, allocations: 6.207 MB / 0.7018 GB, free: 114 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00276/1.061, allocations: 3.062 MB / 0.7048 GB, free: 113.2 MB / 442.7 MB Notification: Performance of SimCode: time 1.252e-06/1.061, allocations: 0 / 0.7048 GB, free: 113.2 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.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_YD_res.mat does not exist to compare? outputFormat=mat