Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.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.SinglePhaseInductance,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_Components_SinglePhaseInductance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_Components_SinglePhaseInductance",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.001061/0.001061, allocations: 187.2 kB / 8.138 MB, free: 2.219 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.39/1.39, allocations: 221.4 MB / 229.9 MB, free: 3.035 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.0009714/0.0009714, allocations: 104.6 kB / 280.8 MB, free: 1.32 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09416/0.09516, allocations: 55.82 MB / 336.6 MB, free: 9.48 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2467/0.3419, allocations: 50.39 MB / 387 MB, free: 37.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1204/0.4623, allocations: 81.66 MB / 468.7 MB, free: 5.141 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002868/0.4626, allocations: 85.05 kB / 468.8 MB, free: 5.059 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.04608/0.5087, allocations: 10.38 MB / 479.1 MB, free: 10.58 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4e-05/0.5088, allocations: 8 kB / 479.1 MB, free: 10.57 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001063/0.5099, allocations: 91.45 kB / 479.2 MB, free: 10.48 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006602/0.5105, allocations: 303.2 kB / 479.5 MB, free: 10.15 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.708e-05/0.5106, allocations: 15.94 kB / 479.5 MB, free: 10.13 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.146e-05/0.5107, allocations: 24.75 kB / 479.6 MB, free: 10.11 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007199/0.5114, allocations: 197.5 kB / 479.8 MB, free: 9.914 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008296/0.5123, allocations: 284.9 kB / 480 MB, free: 9.625 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.905e-05/0.5123, allocations: 0 / 480 MB, free: 9.625 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5e-05/0.5124, allocations: 3.984 kB / 480 MB, free: 9.621 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.633e-05/0.5124, allocations: 8 kB / 480 MB, free: 9.613 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003457/0.5159, allocations: 1.311 MB / 481.4 MB, free: 8.215 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000437/0.5163, allocations: 141.3 kB / 481.5 MB, free: 8.062 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001977/0.5166, allocations: 65.72 kB / 481.6 MB, free: 7.992 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001293/0.5179, allocations: 0.8632 MB / 482.4 MB, free: 7.027 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.234e-05/0.5179, allocations: 42.56 kB / 482.5 MB, free: 6.977 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 2.234e-06/0.5179, allocations: 0 / 482.5 MB, free: 6.977 MB / 362.7 MB Notification: Performance of matching and sorting (n=13): time 0.0004742/0.5184, allocations: 125.3 kB / 482.6 MB, free: 6.848 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.295e-05/0.5185, allocations: 77.11 kB / 482.7 MB, free: 6.754 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004158/0.5189, allocations: 235.3 kB / 482.9 MB, free: 6.512 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.154e-05/0.519, allocations: 25.7 kB / 482.9 MB, free: 6.48 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001711/0.5191, allocations: 224.2 kB / 483.1 MB, free: 6.258 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.699e-05/0.5192, allocations: 55.3 kB / 483.2 MB, free: 6.203 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.673e-05/0.5193, allocations: 0 / 483.2 MB, free: 6.203 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001447/0.5194, allocations: 330.8 kB / 483.5 MB, free: 5.871 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001635/0.5196, allocations: 51.98 kB / 483.6 MB, free: 5.82 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002675/0.5199, allocations: 169.2 kB / 483.7 MB, free: 5.594 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002403/0.5201, allocations: 73.34 kB / 483.8 MB, free: 5.523 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.5202, allocations: 0 / 483.8 MB, free: 5.523 MB / 362.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0006863/0.5209, allocations: 233.7 kB / 484 MB, free: 5.289 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.508e-05/0.5209, allocations: 4 kB / 484 MB, free: 5.285 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.26e-05/0.5209, allocations: 8.625 kB / 484 MB, free: 5.277 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.353e-05/0.521, allocations: 12.09 kB / 484 MB, free: 5.266 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005509/0.5215, allocations: 79.78 kB / 484.1 MB, free: 5.188 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.063e-05/0.5216, allocations: 16.83 kB / 484.1 MB, free: 5.172 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003879/0.522, allocations: 27.69 kB / 484.2 MB, free: 5.145 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.514e-05/0.522, allocations: 12 kB / 484.2 MB, free: 5.133 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * 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.0001245/0.5222, allocations: 124.8 kB / 484.3 MB, free: 5.004 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001181/0.5223, allocations: 23.72 kB / 484.3 MB, free: 4.98 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.606e-05/0.5224, allocations: 25.73 kB / 484.4 MB, free: 4.957 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.633e-06/0.5224, allocations: 3.906 kB / 484.4 MB, free: 4.953 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.97e-06/0.5224, allocations: 0 / 484.4 MB, free: 4.953 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.5224, allocations: 4 kB / 484.4 MB, free: 4.949 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000914/0.5234, allocations: 439.8 kB / 484.8 MB, free: 4.473 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.17e-06/0.5234, allocations: 4.031 kB / 484.8 MB, free: 4.469 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003991/0.5238, allocations: 39.92 kB / 484.8 MB, free: 4.43 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.965e-06/0.5238, allocations: 4 kB / 484.8 MB, free: 4.426 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.991e-05/0.5238, allocations: 0 / 484.8 MB, free: 4.426 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.811e-06/0.5239, allocations: 3.984 kB / 484.8 MB, free: 4.422 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.689e-06/0.5239, allocations: 4 kB / 484.8 MB, free: 4.418 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005833/0.5245, allocations: 379 kB / 485.2 MB, free: 4.016 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008638/0.5254, allocations: 0.7923 MB / 486 MB, free: 3.188 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001006/0.5255, allocations: 96.81 kB / 486.1 MB, free: 3.074 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.603e-05/0.5256, allocations: 7.906 kB / 486.1 MB, free: 3.066 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004491/0.526, allocations: 11.98 kB / 486.1 MB, free: 3.055 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.703e-05/0.5261, allocations: 12.05 kB / 486.1 MB, free: 3.043 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.444e-05/0.5262, allocations: 11.94 kB / 486.1 MB, free: 3.031 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0002789/0.5264, allocations: 179.1 kB / 486.3 MB, free: 2.855 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002038/0.5285, allocations: 83.67 kB / 486.4 MB, free: 2.773 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (inductor_e.i,converter_m.Phi.re) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 13 * 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 Backend phase and start with SimCode phase: time 0.0002275/0.5287, allocations: 125.3 kB / 486.5 MB, free: 2.641 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000419/0.5292, allocations: 138.2 kB / 486.7 MB, free: 2.508 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.5292, allocations: 0 / 486.7 MB, free: 2.508 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000155/0.5294, allocations: 48.05 kB / 486.7 MB, free: 2.461 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004575/0.5299, allocations: 24.95 kB / 486.7 MB, free: 2.434 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001523/0.5314, allocations: 444.3 kB / 487.2 MB, free: 1.969 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005805/0.532, allocations: 0.806 MB / 488 MB, free: 1.137 MB / 362.7 MB Notification: Performance of SimCode: time 3.016e-06/0.532, allocations: 192 / 488 MB, free: 1.137 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_Components_SinglePhaseInductance_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_Components_SinglePhaseInductance.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance_res.mat does not exist to compare? outputFormat=mat