Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.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.Electrical.Batteries.Examples.CCCV_CellRC,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_CellRC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_CellRC",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.00127/0.00127, allocations: 199.2 kB / 8.539 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.18/1.18, allocations: 225.5 MB / 234.4 MB, free: 3.398 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001017/0.001017, allocations: 93.27 kB / 286.3 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1089/0.11, allocations: 56.91 MB / 343.2 MB, free: 8.617 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09455/0.2045, allocations: 51.47 MB / 394.7 MB, free: 5.094 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2496/0.4542, allocations: 90.17 MB / 484.9 MB, free: 3.105 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001899/0.4544, allocations: 79.89 kB / 485 MB, free: 3.066 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.08393/0.5383, allocations: 36.57 MB / 0.5093 GB, free: 3.75 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.645e-05/0.5384, allocations: 8 kB / 0.5093 GB, free: 3.742 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004787/0.5389, allocations: 209.4 kB / 0.5095 GB, free: 3.535 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002779/0.5417, allocations: 1.67 MB / 0.5111 GB, free: 1.797 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.852e-05/0.5418, allocations: 55.02 kB / 0.5112 GB, free: 1.734 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.2e-05/0.5418, allocations: 36 kB / 0.5112 GB, free: 1.699 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007797/0.5426, allocations: 454.5 kB / 0.5117 GB, free: 1.258 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001046/0.5437, allocations: 0.6789 MB / 0.5123 GB, free: 0.5273 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.606e-05/0.5437, allocations: 0 / 0.5123 GB, free: 0.5273 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.727e-05/0.5438, allocations: 4 kB / 0.5123 GB, free: 0.5234 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.568e-05/0.5438, allocations: 16 kB / 0.5123 GB, free: 0.5078 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005426/0.5492, allocations: 3.948 MB / 0.5162 GB, free: 12.45 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004077/0.5497, allocations: 246.6 kB / 0.5164 GB, free: 12.21 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005261/0.5502, allocations: 306.8 kB / 0.5167 GB, free: 11.91 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.528e-05/0.5502, allocations: 8.281 kB / 0.5167 GB, free: 11.9 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.455e-05/0.5503, allocations: 42.84 kB / 0.5168 GB, free: 11.85 MB / 394.7 MB Notification: Performance of pre-optimization done (n=33): time 2.825e-06/0.5503, allocations: 0 / 0.5168 GB, free: 11.85 MB / 394.7 MB Notification: Performance of matching and sorting (n=33): time 0.0007808/0.5511, allocations: 495.1 kB / 0.5173 GB, free: 11.36 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001051/0.5512, allocations: 261 kB / 0.5175 GB, free: 11.04 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003539/0.5547, allocations: 2.727 MB / 0.5202 GB, free: 8.277 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.564e-05/0.5548, allocations: 29.7 kB / 0.5202 GB, free: 8.242 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003003/0.5551, allocations: 456.9 kB / 0.5206 GB, free: 7.785 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.221e-05/0.5552, allocations: 118.3 kB / 0.5207 GB, free: 7.668 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.956e-05/0.5552, allocations: 0 / 0.5207 GB, free: 7.668 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001127/0.5553, allocations: 329.9 kB / 0.5211 GB, free: 7.34 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002382/0.5556, allocations: 157 kB / 0.5212 GB, free: 7.188 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003516/0.5559, allocations: 340.5 kB / 0.5215 GB, free: 6.781 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002814/0.5562, allocations: 203.8 kB / 0.5217 GB, free: 6.582 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.5562, allocations: 4 kB / 0.5217 GB, free: 6.578 MB / 394.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0009441/0.5572, allocations: 0.6398 MB / 0.5224 GB, free: 5.926 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.474e-05/0.5572, allocations: 10.8 kB / 0.5224 GB, free: 5.918 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.5572, allocations: 8 kB / 0.5224 GB, free: 5.91 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002211/0.5574, allocations: 60.84 kB / 0.5224 GB, free: 5.848 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004923/0.5579, allocations: 123.8 kB / 0.5225 GB, free: 5.727 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00134/0.5593, allocations: 1.512 MB / 0.524 GB, free: 4.102 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005344/0.5598, allocations: 71.59 kB / 0.5241 GB, free: 4.031 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.634e-05/0.5599, allocations: 16.06 kB / 0.5241 GB, free: 4.016 MB / 394.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: cccvCharger.v:VARIABLE(unit = "V" ) "Voltage drop of the two pins (= p.v - n.v)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 4 (cccvCharger.CV,energy.local_reset,cell.limIntegrator.local_reset,cell.cell.limIntegrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * 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: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0001536/0.56, allocations: 127.8 kB / 0.5242 GB, free: 3.887 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002304/0.5603, allocations: 181.8 kB / 0.5244 GB, free: 3.707 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008387/0.5611, allocations: 0.5207 MB / 0.5249 GB, free: 3.172 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.5611, allocations: 4 kB / 0.5249 GB, free: 3.168 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.465e-06/0.5612, allocations: 3.984 kB / 0.5249 GB, free: 3.164 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.5612, allocations: 0 / 0.5249 GB, free: 3.164 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002705/0.5639, allocations: 2.031 MB / 0.5269 GB, free: 1.07 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.99e-06/0.5639, allocations: 8.125 kB / 0.5269 GB, free: 1.062 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004388/0.5643, allocations: 84.02 kB / 0.527 GB, free: 0.9805 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001322/0.5645, allocations: 48.83 kB / 0.527 GB, free: 0.9297 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.047e-05/0.5645, allocations: 7.906 kB / 0.527 GB, free: 0.9219 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0012/0.5657, allocations: 1.47 MB / 0.5285 GB, free: 15.34 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.5657, allocations: 0 / 0.5285 GB, free: 15.34 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009994/0.5667, allocations: 0.8161 MB / 0.5293 GB, free: 14.48 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001358/0.5681, allocations: 1.412 MB / 0.5307 GB, free: 13.02 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000952/0.5691, allocations: 0.7555 MB / 0.5314 GB, free: 12.19 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001958/0.5693, allocations: 4 kB / 0.5314 GB, free: 12.18 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005971/0.5699, allocations: 72.3 kB / 0.5315 GB, free: 12.11 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.857e-05/0.57, allocations: 31.95 kB / 0.5315 GB, free: 12.08 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.664e-05/0.57, allocations: 8 kB / 0.5315 GB, free: 12.07 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.002717/0.5727, allocations: 2.086 MB / 0.5335 GB, free: 9.969 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001422/0.5742, allocations: 279.2 kB / 0.5338 GB, free: 9.695 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (cell.cell.limIntegrator.y,cell.cell.capacitor[1].v,cell.cell.capacitor[2].v,cell.limIntegrator.y,energy.y) * Number of discrete variables: 1 (cccvCharger.CV) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 28 * 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: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007163/0.5749, allocations: 346.6 kB / 0.5341 GB, free: 9.418 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0008271/0.5757, allocations: 0.494 MB / 0.5346 GB, free: 8.914 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.999e-06/0.5758, allocations: 4.938 kB / 0.5346 GB, free: 8.91 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004219/0.5762, allocations: 297.8 kB / 0.5349 GB, free: 8.609 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009207/0.5771, allocations: 221.7 kB / 0.5351 GB, free: 8.391 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005893/0.583, allocations: 3.043 MB / 0.5381 GB, free: 5.297 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001443/0.5845, allocations: 1.636 MB / 0.5397 GB, free: 3.633 MB / 410.7 MB Notification: Performance of SimCode: time 3.7e-07/0.5845, allocations: 8 kB / 0.5397 GB, free: 3.625 MB / 410.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_CellRC_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_CellRC.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat does not exist to compare? outputFormat=mat