Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.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.Electrical.Batteries.Examples.ShowImpedance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_ShowImpedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.ShowImpedance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_ShowImpedance",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.001098/0.001098, allocations: 184.3 kB / 8.138 MB, free: 2.223 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.12/1.12, allocations: 221.4 MB / 229.9 MB, free: 3.016 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.0009341/0.000934, allocations: 108 kB / 280.8 MB, free: 1.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1036/0.1046, allocations: 55.81 MB / 336.6 MB, free: 9.414 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1931/0.2977, allocations: 50.39 MB / 387 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08534/0.3831, allocations: 77.57 MB / 464.6 MB, free: 9.215 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002482/0.3835, allocations: 80.86 kB / 464.6 MB, free: 9.137 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.03102/0.4145, allocations: 13.8 MB / 478.4 MB, free: 11.24 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.161e-05/0.4146, allocations: 12 kB / 478.5 MB, free: 11.23 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001012/0.4147, allocations: 82.88 kB / 478.5 MB, free: 11.14 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009463/0.4156, allocations: 0.7076 MB / 479.2 MB, free: 10.38 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.917e-06/0.4156, allocations: 0 / 479.2 MB, free: 10.38 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.108e-05/0.4157, allocations: 8 kB / 479.3 MB, free: 10.38 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.508e-05/0.4157, allocations: 8 kB / 479.3 MB, free: 10.37 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.397e-05/0.4158, allocations: 60.25 kB / 479.3 MB, free: 10.29 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.202e-06/0.4158, allocations: 0 / 479.3 MB, free: 10.29 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.165e-05/0.4158, allocations: 7.984 kB / 479.3 MB, free: 10.29 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.4158, allocations: 0 / 479.3 MB, free: 10.29 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001076/0.4169, allocations: 0.931 MB / 480.3 MB, free: 9.309 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.023e-05/0.417, allocations: 22.56 kB / 480.3 MB, free: 9.277 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.28e-05/0.417, allocations: 12.86 kB / 480.3 MB, free: 9.262 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.248e-05/0.417, allocations: 0 / 480.3 MB, free: 9.262 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.063e-05/0.417, allocations: 38.62 kB / 480.3 MB, free: 9.215 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 1.142e-06/0.4171, allocations: 0 / 480.3 MB, free: 9.215 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002152/0.4173, allocations: 124.5 kB / 480.5 MB, free: 9.086 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.403e-05/0.4173, allocations: 59.34 kB / 480.5 MB, free: 9.016 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00142/0.4187, allocations: 1.228 MB / 481.7 MB, free: 7.77 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.383e-05/0.4188, allocations: 29.73 kB / 481.8 MB, free: 7.734 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001419/0.4189, allocations: 188.3 kB / 482 MB, free: 7.547 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.338e-06/0.4189, allocations: 3.984 kB / 482 MB, free: 7.543 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.617e-06/0.4189, allocations: 0 / 482 MB, free: 7.543 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001068/0.419, allocations: 309.9 kB / 482.3 MB, free: 7.234 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.878e-05/0.4191, allocations: 8 kB / 482.3 MB, free: 7.227 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.979e-05/0.4191, allocations: 13.72 kB / 482.3 MB, free: 7.207 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.502e-05/0.4191, allocations: 12.06 kB / 482.3 MB, free: 7.195 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.4191, allocations: 0 / 482.3 MB, free: 7.195 MB / 362.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001661/0.4193, allocations: 124.6 kB / 482.4 MB, free: 7.066 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.194e-05/0.4193, allocations: 4 kB / 482.4 MB, free: 7.062 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.4193, allocations: 3.984 kB / 482.4 MB, free: 7.059 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.354e-05/0.4194, allocations: 0 / 482.4 MB, free: 7.059 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001327/0.4195, allocations: 27.98 kB / 482.5 MB, free: 7.031 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.917e-06/0.4195, allocations: 0 / 482.5 MB, free: 7.031 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001461/0.4197, allocations: 8 kB / 482.5 MB, free: 7.023 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.998e-06/0.4197, allocations: 3.906 kB / 482.5 MB, free: 7.02 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 5.907e-05/0.4197, allocations: 107.7 kB / 482.6 MB, free: 6.91 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.632e-05/0.4198, allocations: 78.97 kB / 482.6 MB, free: 6.832 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001392/0.42, allocations: 103.2 kB / 482.7 MB, free: 6.73 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.42, allocations: 4 kB / 482.8 MB, free: 6.727 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.42, allocations: 0 / 482.8 MB, free: 6.727 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-06/0.42, allocations: 0 / 482.8 MB, free: 6.727 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004236/0.4204, allocations: 462.9 kB / 483.2 MB, free: 6.238 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.4204, allocations: 0 / 483.2 MB, free: 6.238 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.176e-05/0.4205, allocations: 15.92 kB / 483.2 MB, free: 6.223 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.482e-06/0.4205, allocations: 0 / 483.2 MB, free: 6.223 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.923e-06/0.4206, allocations: 0 / 483.2 MB, free: 6.223 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-06/0.4206, allocations: 8 kB / 483.2 MB, free: 6.215 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.4206, allocations: 0 / 483.2 MB, free: 6.215 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001812/0.4208, allocations: 215 kB / 483.4 MB, free: 5.988 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000289/0.4211, allocations: 0.601 MB / 484 MB, free: 5.367 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002968/0.4214, allocations: 231.9 kB / 484.3 MB, free: 5.121 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.484e-05/0.4214, allocations: 4 kB / 484.3 MB, free: 5.117 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001735/0.4216, allocations: 7.984 kB / 484.3 MB, free: 5.109 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.822e-05/0.4217, allocations: 7.938 kB / 484.3 MB, free: 5.102 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.017e-06/0.4217, allocations: 0 / 484.3 MB, free: 5.102 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.001097/0.4228, allocations: 0.9549 MB / 485.2 MB, free: 4.137 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008798/0.4237, allocations: 63.91 kB / 485.3 MB, free: 4.074 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 1 * 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.000252/0.4239, allocations: 183.1 kB / 485.5 MB, free: 3.887 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 7.357e-05/0.424, allocations: 19.98 kB / 485.5 MB, free: 3.867 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.424, allocations: 0 / 485.5 MB, free: 3.867 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.121e-05/0.424, allocations: 8 kB / 485.5 MB, free: 3.859 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004484/0.4245, allocations: 89.89 kB / 485.6 MB, free: 3.773 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002299/0.4268, allocations: 1.013 MB / 486.6 MB, free: 2.723 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000766/0.4276, allocations: 1.051 MB / 487.7 MB, free: 1.648 MB / 362.7 MB Notification: Performance of SimCode: time 4.11e-07/0.4276, allocations: 0 / 487.7 MB, free: 1.648 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_ShowImpedance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_ShowImpedance.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance_res.mat does not exist to compare? outputFormat=mat