Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.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_Initialize,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize",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.001002/0.001002, allocations: 203 kB / 8.542 MB, free: 1.812 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.089/1.089, allocations: 225.5 MB / 234.4 MB, free: 3.324 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008745/0.0008746, allocations: 93.94 kB / 286.3 MB, free: 5.301 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08596/0.08686, allocations: 56.92 MB / 343.2 MB, free: 8.602 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07559/0.1625, allocations: 51.48 MB / 394.7 MB, free: 5.07 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2142/0.3767, allocations: 109.9 MB / 0.4928 GB, free: 15.68 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002066/0.3769, allocations: 96.91 kB / 0.4929 GB, free: 15.63 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: 819 * Number of variables: 819 Notification: Performance of Generate backend data structure: time 0.2891/0.666, allocations: 85.86 MB / 0.5767 GB, free: 120.4 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.458e-05/0.6661, allocations: 7.312 kB / 0.5767 GB, free: 120.4 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003974/0.67, allocations: 0.7717 MB / 0.5775 GB, free: 120.2 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005905/0.676, allocations: 3.384 MB / 0.5808 GB, free: 119.9 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.084e-05/0.676, allocations: 101.8 kB / 0.5809 GB, free: 119.9 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003614/0.6764, allocations: 190.8 kB / 0.5811 GB, free: 119.8 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004411/0.6808, allocations: 3.22 MB / 0.5842 GB, free: 119.8 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004692/0.6855, allocations: 3.677 MB / 0.5878 GB, free: 119.5 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.408e-05/0.6856, allocations: 3.75 kB / 0.5878 GB, free: 119.5 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002391/0.6858, allocations: 3.797 kB / 0.5878 GB, free: 119.5 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.706e-05/0.6859, allocations: 149.6 kB / 0.5879 GB, free: 119.5 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01477/0.7007, allocations: 13.1 MB / 0.6007 GB, free: 117 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0011/0.7018, allocations: 1.059 MB / 0.6018 GB, free: 116.9 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001662/0.7035, allocations: 1.381 MB / 0.6031 GB, free: 116.9 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004096/0.7076, allocations: 3.553 MB / 0.6066 GB, free: 116 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.422e-05/0.7077, allocations: 48.91 kB / 0.6066 GB, free: 116 MB / 442.7 MB Notification: Performance of pre-optimization done (n=153): time 3.226e-06/0.7077, allocations: 3.812 kB / 0.6066 GB, free: 116 MB / 442.7 MB Notification: Performance of matching and sorting (n=173): time 0.009192/0.7169, allocations: 5.559 MB / 0.6121 GB, free: 114.8 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.033e-05/0.7169, allocations: 74.62 kB / 0.6121 GB, free: 114.7 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001566/0.7185, allocations: 1.375 MB / 0.6135 GB, free: 114.5 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 8.926e-05/0.7186, allocations: 25.7 kB / 0.6135 GB, free: 114.5 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004091/0.719, allocations: 1.141 MB / 0.6146 GB, free: 113.8 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002668/0.7193, allocations: 0.5566 MB / 0.6152 GB, free: 113.5 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001021/0.7194, allocations: 0 / 0.6152 GB, free: 113.5 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.934e-05/0.7195, allocations: 386 kB / 0.6155 GB, free: 113.1 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009696/0.7204, allocations: 0.8251 MB / 0.6163 GB, free: 112.8 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001105/0.7216, allocations: 1.273 MB / 0.6176 GB, free: 111.9 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001511/0.7231, allocations: 1.112 MB / 0.6187 GB, free: 111.5 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.603e-06/0.7231, allocations: 3.375 kB / 0.6187 GB, free: 111.5 MB / 442.7 MB Notification: Performance of matching and sorting (n=247) (initialization): time 0.003981/0.7271, allocations: 2.752 MB / 0.6214 GB, free: 110.5 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.184e-05/0.7271, allocations: 9.25 kB / 0.6214 GB, free: 110.5 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.633e-05/0.7271, allocations: 15.03 kB / 0.6214 GB, free: 110.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001234/0.7284, allocations: 0.4954 MB / 0.6219 GB, free: 110.3 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001664/0.73, allocations: 433.9 kB / 0.6223 GB, free: 110.3 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006239/0.7363, allocations: 5.926 MB / 0.6281 GB, free: 106.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001484/0.7378, allocations: 44.77 kB / 0.6281 GB, free: 106.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001405/0.738, allocations: 85.27 kB / 0.6282 GB, free: 106.2 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (209): * Single equations (assignments): 207 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(8,56.2%) 30} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002645/0.7382, allocations: 153.9 kB / 0.6283 GB, free: 106.1 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002235/0.7385, allocations: 185.4 kB / 0.6285 GB, free: 106 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003944/0.7424, allocations: 2.656 MB / 0.6311 GB, free: 104.8 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.066e-05/0.7424, allocations: 19.47 kB / 0.6311 GB, free: 104.8 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.837e-06/0.7424, allocations: 10.44 kB / 0.6311 GB, free: 104.8 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.36e-05/0.7425, allocations: 8.719 kB / 0.6311 GB, free: 104.8 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006953/0.7494, allocations: 5.738 MB / 0.6367 GB, free: 102.1 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.08e-06/0.7494, allocations: 0 / 0.6367 GB, free: 102.1 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001158/0.7506, allocations: 265.2 kB / 0.637 GB, free: 102.1 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001131/0.7517, allocations: 496.7 kB / 0.6375 GB, free: 101.9 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001003/0.7519, allocations: 21.84 kB / 0.6375 GB, free: 101.9 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006823/0.7587, allocations: 9.801 MB / 0.6471 GB, free: 93.88 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.015e-06/0.7587, allocations: 3.625 kB / 0.6471 GB, free: 93.88 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004678/0.7634, allocations: 3.972 MB / 0.6509 GB, free: 91.89 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006433/0.7698, allocations: 5.612 MB / 0.6564 GB, free: 88.95 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007918/0.7706, allocations: 472.2 kB / 0.6569 GB, free: 88.62 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002854/0.7709, allocations: 12.27 kB / 0.6569 GB, free: 88.62 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009743/0.7719, allocations: 48.97 kB / 0.6569 GB, free: 88.62 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001851/0.7721, allocations: 99.02 kB / 0.657 GB, free: 88.61 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001131/0.7722, allocations: 47.25 kB / 0.6571 GB, free: 88.59 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.001278/0.7735, allocations: 1.032 MB / 0.6581 GB, free: 88.16 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002402/0.7759, allocations: 0.6069 MB / 0.6587 GB, free: 88.11 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.inertiaRotor.phi,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.zeroInductor.i0,aimc.stator.stray.Phi.re,aimc.stator.stray.Phi.im,loadInertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (131): * Single equations (assignments): 126 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 12,(1,100.0%) 1,(1,100.0%) 12,(1,100.0%) 8,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004428/0.7764, allocations: 358.4 kB / 0.659 GB, free: 88 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003073/0.7795, allocations: 2.422 MB / 0.6614 GB, free: 86.99 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.7795, allocations: 10.55 kB / 0.6614 GB, free: 86.98 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00182/0.7813, allocations: 1.641 MB / 0.663 GB, free: 86.05 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001439/0.7828, allocations: 356.3 kB / 0.6633 GB, free: 85.96 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007725/0.7905, allocations: 5.013 MB / 0.6682 GB, free: 83.86 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002041/0.7925, allocations: 2.585 MB / 0.6708 GB, free: 82.74 MB / 442.7 MB Notification: Performance of SimCode: time 5.1e-07/0.7926, allocations: 0 / 0.6708 GB, free: 82.74 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize_res.mat does not exist to compare? outputFormat=mat