Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.PolyphaseInductance.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.PolyphaseInductance,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_Components_PolyphaseInductance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.Components.PolyphaseInductance,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_Components_PolyphaseInductance",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.001533/0.001533, allocations: 190.1 kB / 8.139 MB, free: 2.184 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.252/1.252, allocations: 221.4 MB / 229.9 MB, free: 3.066 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.0009181/0.0009182, allocations: 89.28 kB / 280.8 MB, free: 1.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0941/0.09504, allocations: 55.83 MB / 336.6 MB, free: 9.406 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2453/0.3403, allocations: 50.39 MB / 387 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1255/0.4659, allocations: 85.03 MB / 472 MB, free: 1.727 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002489/0.4661, allocations: 83.95 kB / 472.1 MB, free: 1.645 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 344 * Number of variables: 344 Notification: Performance of Generate backend data structure: time 0.1153/0.5815, allocations: 32.63 MB / 0.4929 GB, free: 0.707 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.292e-05/0.5815, allocations: 8 kB / 0.4929 GB, free: 0.6992 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001644/0.5832, allocations: 321.8 kB / 0.4932 GB, free: 392 kB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.09964/0.6828, allocations: 1.084 MB / 0.4943 GB, free: 122.7 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.439e-05/0.6829, allocations: 39.22 kB / 0.4943 GB, free: 122.7 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000168/0.6831, allocations: 81.73 kB / 0.4944 GB, free: 122.7 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002012/0.6851, allocations: 1.476 MB / 0.4959 GB, free: 122.7 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002062/0.6872, allocations: 1.624 MB / 0.4974 GB, free: 122.6 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.909e-05/0.6872, allocations: 3.625 kB / 0.4974 GB, free: 122.6 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001155/0.6873, allocations: 3.906 kB / 0.4974 GB, free: 122.6 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.225e-05/0.6874, allocations: 50.39 kB / 0.4975 GB, free: 122.6 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006873/0.6942, allocations: 5.374 MB / 0.5027 GB, free: 121.2 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006685/0.6949, allocations: 0.7684 MB / 0.5035 GB, free: 120.9 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005446/0.6955, allocations: 486 kB / 0.504 GB, free: 120.9 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001906/0.6974, allocations: 1.574 MB / 0.5055 GB, free: 120.2 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.893e-05/0.6974, allocations: 45.02 kB / 0.5055 GB, free: 120.2 MB / 378.7 MB Notification: Performance of pre-optimization done (n=61): time 2.765e-06/0.6974, allocations: 0 / 0.5055 GB, free: 120.2 MB / 378.7 MB Notification: Performance of matching and sorting (n=61): time 0.001383/0.6988, allocations: 0.8851 MB / 0.5064 GB, free: 120.1 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.032e-05/0.6989, allocations: 89.17 kB / 0.5065 GB, free: 120 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008742/0.6997, allocations: 0.8694 MB / 0.5073 GB, free: 119.9 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.356e-05/0.6998, allocations: 29.42 kB / 0.5074 GB, free: 119.9 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001951/0.7, allocations: 0.5386 MB / 0.5079 GB, free: 119.6 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001015/0.7001, allocations: 203.6 kB / 0.5081 GB, free: 119.4 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.67e-05/0.7002, allocations: 0 / 0.5081 GB, free: 119.4 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.565e-05/0.7002, allocations: 338.3 kB / 0.5084 GB, free: 119.1 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004078/0.7007, allocations: 368.5 kB / 0.5088 GB, free: 119.1 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004573/0.7011, allocations: 0.5188 MB / 0.5093 GB, free: 118.9 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006127/0.7017, allocations: 461.6 kB / 0.5097 GB, free: 118.9 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.7017, allocations: 0 / 0.5097 GB, free: 118.9 MB / 378.7 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001288/0.703, allocations: 1.002 MB / 0.5107 GB, free: 118.8 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.25e-05/0.7031, allocations: 3.969 kB / 0.5107 GB, free: 118.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.135e-06/0.7031, allocations: 3.656 kB / 0.5107 GB, free: 118.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.104e-05/0.7031, allocations: 10.62 kB / 0.5107 GB, free: 118.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008283/0.7039, allocations: 203 kB / 0.5109 GB, free: 118.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.081e-05/0.704, allocations: 11.03 kB / 0.5109 GB, free: 118.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005336/0.7045, allocations: 85.09 kB / 0.511 GB, free: 118.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.897e-05/0.7046, allocations: 27.97 kB / 0.511 GB, free: 118.8 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 90 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001297/0.7047, allocations: 120.7 kB / 0.5111 GB, free: 118.7 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001476/0.7049, allocations: 97.47 kB / 0.5112 GB, free: 118.7 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001278/0.7061, allocations: 0.7279 MB / 0.5119 GB, free: 118.6 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.143e-06/0.7062, allocations: 10.78 kB / 0.5119 GB, free: 118.6 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.376e-06/0.7062, allocations: 3.812 kB / 0.5119 GB, free: 118.6 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.915e-06/0.7062, allocations: 7.25 kB / 0.512 GB, free: 118.6 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002765/0.709, allocations: 2.226 MB / 0.5141 GB, free: 118.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.005e-06/0.709, allocations: 6.781 kB / 0.5141 GB, free: 118.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005467/0.7095, allocations: 112.5 kB / 0.5142 GB, free: 118.1 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003944/0.7099, allocations: 147.8 kB / 0.5144 GB, free: 118.1 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.077e-05/0.71, allocations: 19.41 kB / 0.5144 GB, free: 118.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002206/0.7122, allocations: 2.461 MB / 0.5168 GB, free: 116.8 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.275e-06/0.7122, allocations: 0 / 0.5168 GB, free: 116.8 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00161/0.7138, allocations: 1.55 MB / 0.5183 GB, free: 116.4 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002112/0.716, allocations: 2.387 MB / 0.5206 GB, free: 115.7 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001845/0.7162, allocations: 187.1 kB / 0.5208 GB, free: 115.5 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001526/0.7163, allocations: 16.41 kB / 0.5208 GB, free: 115.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006062/0.7169, allocations: 63.38 kB / 0.5209 GB, free: 115.5 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001103/0.7171, allocations: 39.59 kB / 0.5209 GB, free: 115.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.767e-05/0.7171, allocations: 21.25 kB / 0.521 GB, free: 115.5 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0007467/0.7179, allocations: 0.6686 MB / 0.5216 GB, free: 115.4 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001533/0.7194, allocations: 358.4 kB / 0.522 GB, free: 115.3 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 5 (inductor_e.inductor[1].i,inductor_e.inductor[2].i,inductor_e.inductor[3].i,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 (45): * Single equations (assignments): 44 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 16} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002172/0.7196, allocations: 144.8 kB / 0.5221 GB, free: 115.3 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009977/0.7206, allocations: 0.7943 MB / 0.5229 GB, free: 115.2 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.7207, allocations: 1.312 kB / 0.5229 GB, free: 115.2 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008074/0.7215, allocations: 0.5352 MB / 0.5234 GB, free: 115.1 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007171/0.7222, allocations: 139 kB / 0.5235 GB, free: 115.1 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00361/0.7258, allocations: 2.304 MB / 0.5258 GB, free: 114.4 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001183/0.727, allocations: 1.603 MB / 0.5273 GB, free: 113.5 MB / 378.7 MB Notification: Performance of SimCode: time 3.5e-07/0.727, allocations: 0 / 0.5273 GB, free: 113.5 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.PolyphaseInductance.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.PolyphaseInductance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.PolyphaseInductance.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.PolyphaseInductance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.PolyphaseInductance_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_Components_PolyphaseInductance_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_Components_PolyphaseInductance.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.PolyphaseInductance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.PolyphaseInductance_res.mat does not exist to compare? outputFormat=mat