Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.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.Components.EddyCurrentLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_Components_EddyCurrentLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_Components_EddyCurrentLosses",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.001315/0.001315, allocations: 182.8 kB / 8.135 MB, free: 2.133 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.273/1.273, allocations: 221.4 MB / 229.9 MB, free: 3.098 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.0009679/0.0009679, allocations: 96.44 kB / 280.8 MB, free: 1.266 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08852/0.08951, allocations: 55.83 MB / 336.6 MB, free: 9.441 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1781/0.2677, allocations: 50.39 MB / 387 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08545/0.3531, allocations: 88.21 MB / 475.2 MB, free: 14.57 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001944/0.3534, allocations: 79.89 kB / 475.3 MB, free: 14.49 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 689 * Number of variables: 689 Notification: Performance of Generate backend data structure: time 0.2569/0.6103, allocations: 56.69 MB / 0.5195 GB, free: 84.16 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.025e-05/0.6104, allocations: 7.844 kB / 0.5195 GB, free: 84.16 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003092/0.6135, allocations: 0.6036 MB / 0.5201 GB, free: 83.96 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003189/0.6167, allocations: 1.826 MB / 0.5219 GB, free: 83.02 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.169e-05/0.6168, allocations: 85.16 kB / 0.522 GB, free: 83.02 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003972/0.6172, allocations: 154.5 kB / 0.5221 GB, free: 83.01 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004623/0.6218, allocations: 2.702 MB / 0.5248 GB, free: 81.96 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004696/0.6265, allocations: 3.116 MB / 0.5278 GB, free: 79.26 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.058e-05/0.6266, allocations: 4 kB / 0.5278 GB, free: 79.25 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002785/0.6269, allocations: 4 kB / 0.5278 GB, free: 79.25 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.886e-05/0.627, allocations: 113.2 kB / 0.5279 GB, free: 79.14 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01443/0.6414, allocations: 10.08 MB / 0.5378 GB, free: 69.05 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001021/0.6424, allocations: 0.8147 MB / 0.5386 GB, free: 68.22 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001124/0.6436, allocations: 0.9069 MB / 0.5394 GB, free: 67.31 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003651/0.6473, allocations: 2.553 MB / 0.5419 GB, free: 64.7 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.156e-05/0.6473, allocations: 47.56 kB / 0.542 GB, free: 64.65 MB / 378.7 MB Notification: Performance of pre-optimization done (n=117): time 3.015e-06/0.6473, allocations: 0 / 0.542 GB, free: 64.65 MB / 378.7 MB Notification: Performance of matching and sorting (n=117): time 0.002666/0.65, allocations: 1.593 MB / 0.5435 GB, free: 63.05 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.68e-05/0.65, allocations: 90.11 kB / 0.5436 GB, free: 62.94 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001261/0.6513, allocations: 1.14 MB / 0.5447 GB, free: 61.79 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.267e-05/0.6514, allocations: 25.7 kB / 0.5448 GB, free: 61.75 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003078/0.6517, allocations: 0.9532 MB / 0.5457 GB, free: 60.79 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001975/0.6519, allocations: 390.2 kB / 0.5461 GB, free: 60.4 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.507e-05/0.652, allocations: 0 / 0.5461 GB, free: 60.4 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.537e-05/0.652, allocations: 361.9 kB / 0.5464 GB, free: 60.04 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007311/0.6528, allocations: 0.596 MB / 0.547 GB, free: 59.44 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007919/0.6536, allocations: 0.8655 MB / 0.5478 GB, free: 58.46 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00114/0.6547, allocations: 0.783 MB / 0.5486 GB, free: 57.68 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.5e-06/0.6547, allocations: 0 / 0.5486 GB, free: 57.68 MB / 378.7 MB Notification: Performance of matching and sorting (n=164) (initialization): time 0.002913/0.6576, allocations: 1.998 MB / 0.5506 GB, free: 55.68 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.17e-05/0.6577, allocations: 4 kB / 0.5506 GB, free: 55.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.295e-05/0.6577, allocations: 8.25 kB / 0.5506 GB, free: 55.67 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008632/0.6586, allocations: 412.4 kB / 0.551 GB, free: 55.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000955/0.6595, allocations: 239.7 kB / 0.5512 GB, free: 55.03 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005522/0.6651, allocations: 5.642 MB / 0.5567 GB, free: 49.18 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009248/0.666, allocations: 126.7 kB / 0.5568 GB, free: 49.05 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001029/0.6661, allocations: 48 kB / 0.5569 GB, free: 49.01 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 120 * 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 {(2,100.0%) 19,(2,100.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002014/0.6663, allocations: 140.1 kB / 0.557 GB, free: 48.87 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002194/0.6666, allocations: 138.3 kB / 0.5571 GB, free: 48.73 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002798/0.6694, allocations: 1.737 MB / 0.5588 GB, free: 46.99 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.438e-06/0.6694, allocations: 12 kB / 0.5588 GB, free: 46.98 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.061e-05/0.6694, allocations: 4 kB / 0.5588 GB, free: 46.97 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.093e-05/0.6694, allocations: 11.92 kB / 0.5589 GB, free: 46.96 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005549/0.675, allocations: 3.911 MB / 0.5627 GB, free: 42.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.22e-06/0.675, allocations: 4 kB / 0.5627 GB, free: 42.98 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007253/0.6757, allocations: 163.8 kB / 0.5628 GB, free: 42.82 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008671/0.6766, allocations: 385.1 kB / 0.5632 GB, free: 42.44 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.884e-05/0.6767, allocations: 27.97 kB / 0.5632 GB, free: 42.41 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005319/0.682, allocations: 5.65 MB / 0.5687 GB, free: 36.55 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.682, allocations: 7.938 kB / 0.5688 GB, free: 36.54 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003205/0.6853, allocations: 2.68 MB / 0.5714 GB, free: 33.79 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005568/0.6908, allocations: 5.449 MB / 0.5767 GB, free: 28.28 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002797/0.6911, allocations: 247.1 kB / 0.5769 GB, free: 28.02 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002428/0.6914, allocations: 15.98 kB / 0.5769 GB, free: 28 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009039/0.6923, allocations: 71.94 kB / 0.577 GB, free: 27.93 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001537/0.6925, allocations: 80.81 kB / 0.5771 GB, free: 27.85 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.009e-05/0.6925, allocations: 35.98 kB / 0.5771 GB, free: 27.82 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0009275/0.6935, allocations: 0.8647 MB / 0.578 GB, free: 26.95 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00217/0.6957, allocations: 0.6297 MB / 0.5786 GB, free: 26.31 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (converter_e.singlePhaseElectroMagneticConverter[3].Phi.re,converter_e.singlePhaseElectroMagneticConverter[3].Phi.im,converter_m.singlePhaseElectroMagneticConverter[3].Phi.re,converter_m.singlePhaseElectroMagneticConverter[3].Phi.im) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (77): * Single equations (assignments): 75 * 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 {(2,100.0%) 21,(2,100.0%) 19} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002555/0.6959, allocations: 162.4 kB / 0.5787 GB, free: 26.15 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002209/0.6981, allocations: 1.737 MB / 0.5804 GB, free: 24.4 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.6982, allocations: 0 / 0.5804 GB, free: 24.4 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001381/0.6995, allocations: 1.052 MB / 0.5815 GB, free: 23.33 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001108/0.7007, allocations: 241.6 kB / 0.5817 GB, free: 23.1 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005793/0.7065, allocations: 3.794 MB / 0.5854 GB, free: 19.25 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001861/0.7083, allocations: 2.313 MB / 0.5877 GB, free: 16.91 MB / 378.7 MB Notification: Performance of SimCode: time 4.31e-07/0.7084, allocations: 0 / 0.5877 GB, free: 16.91 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_Components_EddyCurrentLosses_fmu --startTime=0 --stopTime=40 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_Components_EddyCurrentLosses.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses_res.mat does not exist to compare? outputFormat=mat