Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz,fileNamePrefix="Modelica_trunk_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_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Steinmetz",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 trunk/package.mo): time 0.001193/0.001193, allocations: 197.2 kB / 8.538 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.097/1.097, allocations: 225.5 MB / 234.4 MB, free: 3.309 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008898/0.0008898, allocations: 93.73 kB / 286.3 MB, free: 5.289 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0866/0.08752, allocations: 56.92 MB / 343.2 MB, free: 8.551 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0772/0.1647, allocations: 51.48 MB / 394.7 MB, free: 5.012 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2194/0.3842, allocations: 111.1 MB / 0.494 GB, free: 14.39 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002134/0.3845, allocations: 101.5 kB / 0.4941 GB, free: 14.34 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: 844 * Number of variables: 844 Notification: Performance of Generate backend data structure: time 0.2927/0.6772, allocations: 86.14 MB / 0.5782 GB, free: 120.7 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.13e-05/0.6773, allocations: 7.781 kB / 0.5782 GB, free: 120.7 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004059/0.6813, allocations: 0.7529 MB / 0.579 GB, free: 120.5 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006604/0.6879, allocations: 3.348 MB / 0.5823 GB, free: 120.1 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001073/0.6881, allocations: 104.2 kB / 0.5824 GB, free: 120.1 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005586/0.6886, allocations: 198.7 kB / 0.5825 GB, free: 120.1 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004949/0.6936, allocations: 3.175 MB / 0.5856 GB, free: 120 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004939/0.6985, allocations: 3.694 MB / 0.5892 GB, free: 119.7 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.822e-05/0.6986, allocations: 3.625 kB / 0.5893 GB, free: 119.7 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002417/0.6989, allocations: 7.125 kB / 0.5893 GB, free: 119.7 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.915e-05/0.699, allocations: 143.2 kB / 0.5894 GB, free: 119.7 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01481/0.7138, allocations: 13.48 MB / 0.6026 GB, free: 116.8 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001108/0.7149, allocations: 1.054 MB / 0.6036 GB, free: 116.8 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001669/0.7166, allocations: 1.359 MB / 0.6049 GB, free: 116.7 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003987/0.7206, allocations: 3.534 MB / 0.6084 GB, free: 115.8 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.34e-05/0.7206, allocations: 54.39 kB / 0.6084 GB, free: 115.8 MB / 442.7 MB Notification: Performance of pre-optimization done (n=160): time 2.615e-06/0.7206, allocations: 0 / 0.6084 GB, free: 115.8 MB / 442.7 MB Notification: Performance of matching and sorting (n=163): time 0.006735/0.7274, allocations: 4.571 MB / 0.6129 GB, free: 114.6 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.904e-05/0.7274, allocations: 68.81 kB / 0.6129 GB, free: 114.6 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001429/0.7288, allocations: 1.29 MB / 0.6142 GB, free: 114.4 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 7.968e-05/0.7289, allocations: 25.7 kB / 0.6142 GB, free: 114.3 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003523/0.7293, allocations: 1.175 MB / 0.6154 GB, free: 113.6 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002535/0.7295, allocations: 0.5255 MB / 0.6159 GB, free: 113.3 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.027e-05/0.7296, allocations: 0 / 0.6159 GB, free: 113.3 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.713e-05/0.7297, allocations: 393.1 kB / 0.6163 GB, free: 113 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009184/0.7307, allocations: 0.7379 MB / 0.617 GB, free: 113 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001089/0.7317, allocations: 1.232 MB / 0.6182 GB, free: 112.3 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00142/0.7332, allocations: 1.028 MB / 0.6192 GB, free: 111.9 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.122e-06/0.7332, allocations: 3.812 kB / 0.6192 GB, free: 111.9 MB / 442.7 MB Notification: Performance of matching and sorting (n=247) (initialization): time 0.003471/0.7367, allocations: 2.592 MB / 0.6217 GB, free: 110.9 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.189e-05/0.7367, allocations: 10.66 kB / 0.6217 GB, free: 110.9 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.567e-05/0.7367, allocations: 18.44 kB / 0.6218 GB, free: 110.9 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007889/0.7375, allocations: 361.3 kB / 0.6221 GB, free: 110.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001453/0.739, allocations: 411.4 kB / 0.6225 GB, free: 110.7 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004813/0.7438, allocations: 7.261 MB / 0.6296 GB, free: 104.7 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001082/0.7449, allocations: 48.56 kB / 0.6296 GB, free: 104.7 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001309/0.745, allocations: 81.36 kB / 0.6297 GB, free: 104.6 MB / 442.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 (216): * Single equations (assignments): 211 * 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%) 7,(2,100.0%) 8,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002295/0.7453, allocations: 148.6 kB / 0.6298 GB, free: 104.5 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002066/0.7455, allocations: 191.6 kB / 0.63 GB, free: 104.4 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003571/0.7491, allocations: 2.414 MB / 0.6324 GB, free: 103.4 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-05/0.7491, allocations: 18.16 kB / 0.6324 GB, free: 103.4 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.456e-06/0.7491, allocations: 7.5 kB / 0.6324 GB, free: 103.4 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.32e-05/0.7491, allocations: 10.12 kB / 0.6324 GB, free: 103.4 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006364/0.7555, allocations: 5.219 MB / 0.6375 GB, free: 100.8 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.959e-06/0.7555, allocations: 0 / 0.6375 GB, free: 100.8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009141/0.7564, allocations: 214.3 kB / 0.6377 GB, free: 100.8 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001188/0.7576, allocations: 0.5214 MB / 0.6382 GB, free: 100.7 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.642e-05/0.7577, allocations: 19.42 kB / 0.6383 GB, free: 100.6 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007827/0.7656, allocations: 11.38 MB / 0.6494 GB, free: 91.26 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.7656, allocations: 0 / 0.6494 GB, free: 91.26 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004123/0.7697, allocations: 3.54 MB / 0.6528 GB, free: 89.47 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005669/0.7754, allocations: 4.994 MB / 0.6577 GB, free: 86.82 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007215/0.7761, allocations: 437 kB / 0.6581 GB, free: 86.52 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000276/0.7764, allocations: 15 kB / 0.6581 GB, free: 86.51 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008989/0.7773, allocations: 47.55 kB / 0.6582 GB, free: 86.51 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001668/0.7775, allocations: 82.16 kB / 0.6582 GB, free: 86.5 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001066/0.7776, allocations: 46.2 kB / 0.6583 GB, free: 86.48 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.001267/0.7789, allocations: 0.962 MB / 0.6592 GB, free: 86.07 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002608/0.7815, allocations: 0.5956 MB / 0.6598 GB, free: 86.01 MB / 442.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 (112): * Single equations (assignments): 106 * 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%) 8,(1,100.0%) 1,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004779/0.782, allocations: 371.6 kB / 0.6602 GB, free: 85.87 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002677/0.7847, allocations: 2.366 MB / 0.6625 GB, free: 84.69 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.7847, allocations: 3.188 kB / 0.6625 GB, free: 84.69 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001816/0.7865, allocations: 1.63 MB / 0.6641 GB, free: 83.7 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001475/0.788, allocations: 379.6 kB / 0.6644 GB, free: 83.6 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00743/0.7954, allocations: 4.855 MB / 0.6692 GB, free: 81.51 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001971/0.7974, allocations: 2.532 MB / 0.6716 GB, free: 80.41 MB / 442.7 MB Notification: Performance of SimCode: time 3.51e-07/0.7974, allocations: 0 / 0.6716 GB, free: 80.41 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Steinmetz_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Steinmetz.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz_res.mat does not exist to compare? outputFormat=mat