Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.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: translateModel(Modelica.Electrical.Batteries.Examples.CCCV_StackRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|energy.y|stack.cell.1, 1..cell.capacitor.1..v|stack.cell.1, 1..cell.capacitor.2..v|stack.cell.1, 1..cell.limIntegrator.y|stack.cell.1, 1..limIntegrator.y|stack.cell.1, 2..cell.capacitor.1..v|stack.cell.1, 2..cell.capacitor.2..v|stack.cell.1, 2..cell.limIntegrator.y|stack.cell.1, 2..limIntegrator.y|stack.cell.2, 1..cell.capacitor.1..v|stack.cell.2, 1..cell.capacitor.2..v|stack.cell.2, 1..cell.limIntegrator.y|stack.cell.2, 1..limIntegrator.y|stack.cell.2, 2..cell.capacitor.1..v|stack.cell.2, 2..cell.capacitor.2..v|stack.cell.2, 2..cell.limIntegrator.y|stack.cell.2, 2..limIntegrator.y|stack.cell.3, 1..cell.capacitor.1..v|stack.cell.3, 1..cell.capacitor.2..v|stack.cell.3, 1..cell.limIntegrator.y|stack.cell.3, 1..limIntegrator.y|stack.cell.3, 2..cell.capacitor.1..v|stack.cell.3, 2..cell.capacitor.2..v|stack.cell.3, 2..cell.limIntegrator.y|stack.cell.3, 2..limIntegrator.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_StackRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|energy.y|stack.cell.1, 1..cell.capacitor.1..v|stack.cell.1, 1..cell.capacitor.2..v|stack.cell.1, 1..cell.limIntegrator.y|stack.cell.1, 1..limIntegrator.y|stack.cell.1, 2..cell.capacitor.1..v|stack.cell.1, 2..cell.capacitor.2..v|stack.cell.1, 2..cell.limIntegrator.y|stack.cell.1, 2..limIntegrator.y|stack.cell.2, 1..cell.capacitor.1..v|stack.cell.2, 1..cell.capacitor.2..v|stack.cell.2, 1..cell.limIntegrator.y|stack.cell.2, 1..limIntegrator.y|stack.cell.2, 2..cell.capacitor.1..v|stack.cell.2, 2..cell.capacitor.2..v|stack.cell.2, 2..cell.limIntegrator.y|stack.cell.2, 2..limIntegrator.y|stack.cell.3, 1..cell.capacitor.1..v|stack.cell.3, 1..cell.capacitor.2..v|stack.cell.3, 1..cell.limIntegrator.y|stack.cell.3, 1..limIntegrator.y|stack.cell.3, 2..cell.capacitor.1..v|stack.cell.3, 2..cell.capacitor.2..v|stack.cell.3, 2..cell.limIntegrator.y|stack.cell.3, 2..limIntegrator.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC") [: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.0009981/0.0009981, allocations: 184.6 kB / 8.136 MB, free: 2.207 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.133/1.133, allocations: 221.4 MB / 229.9 MB, free: 3.062 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.0008718/0.0008719, allocations: 91.59 kB / 280.8 MB, free: 1.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.56e-06/5.6e-06, allocations: 0 / 336.5 MB, free: 9.5 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1846/0.1846, allocations: 50.39 MB / 386.9 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09928/0.2839, allocations: 93.24 MB / 480.2 MB, free: 9.527 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002154/0.2842, allocations: 79.95 kB / 480.2 MB, free: 9.449 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.8083/1.093, allocations: 271.3 MB / 0.7339 GB, free: 64.31 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.004308/1.097, allocations: 261.8 kB / 0.7341 GB, free: 64.28 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1013 * Number of variables: 1013 Notification: Performance of Generate backend data structure: time 0.03612/1.133, allocations: 12.67 MB / 0.7465 GB, free: 53.96 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.844e-05/1.133, allocations: 8.031 kB / 0.7465 GB, free: 53.95 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006131/1.139, allocations: 1.74 MB / 0.7482 GB, free: 52.19 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05805/1.197, allocations: 25.5 MB / 0.7731 GB, free: 26.97 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004752/1.198, allocations: 253.6 kB / 0.7734 GB, free: 26.71 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001386/1.199, allocations: 243.9 kB / 0.7736 GB, free: 26.48 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01045/1.21, allocations: 5.681 MB / 0.7791 GB, free: 20.79 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.012/1.222, allocations: 6.898 MB / 0.7859 GB, free: 13.64 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.422e-05/1.222, allocations: 3.938 kB / 0.7859 GB, free: 13.64 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006362/1.222, allocations: 8 kB / 0.7859 GB, free: 13.63 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.608e-05/1.223, allocations: 107.7 kB / 0.786 GB, free: 13.53 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1979/1.42, allocations: 33.16 MB / 0.8184 GB, free: 103.7 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003951/1.424, allocations: 2.882 MB / 0.8212 GB, free: 103.7 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004077/1.428, allocations: 3.493 MB / 0.8246 GB, free: 103.7 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001275/1.429, allocations: 37.66 kB / 0.8246 GB, free: 103.7 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.669e-05/1.429, allocations: 75.84 kB / 0.8247 GB, free: 103.7 MB / 442.7 MB Notification: Performance of pre-optimization done (n=231): time 4.037e-06/1.429, allocations: 3.531 kB / 0.8247 GB, free: 103.7 MB / 442.7 MB Notification: Performance of matching and sorting (n=231): time 0.008283/1.437, allocations: 5.16 MB / 0.8298 GB, free: 103.6 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002238/1.437, allocations: 1.297 MB / 0.831 GB, free: 102 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.04525/1.482, allocations: 26.66 MB / 0.8571 GB, free: 101.1 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006945/1.483, allocations: 31.55 kB / 0.8571 GB, free: 101.1 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004348/1.488, allocations: 3.281 MB / 0.8603 GB, free: 100.4 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00139/1.489, allocations: 0.7853 MB / 0.8611 GB, free: 100 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002342/1.489, allocations: 2.969 kB / 0.8611 GB, free: 100 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001435/1.489, allocations: 434.2 kB / 0.8615 GB, free: 99.73 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002483/1.492, allocations: 2.247 MB / 0.8637 GB, free: 99.72 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003015/1.495, allocations: 3.271 MB / 0.8669 GB, free: 98.77 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00271/1.498, allocations: 2.653 MB / 0.8695 GB, free: 98.72 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.037e-05/1.498, allocations: 3.281 kB / 0.8695 GB, free: 98.72 MB / 442.7 MB Notification: Performance of matching and sorting (n=348) (initialization): time 0.01026/1.508, allocations: 6.753 MB / 0.8761 GB, free: 97.77 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.465e-05/1.508, allocations: 5.375 kB / 0.8761 GB, free: 97.77 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.255e-05/1.508, allocations: 19.69 kB / 0.8761 GB, free: 97.77 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001117/1.509, allocations: 0.5262 MB / 0.8766 GB, free: 97.77 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003235/1.512, allocations: 0.8935 MB / 0.8775 GB, free: 97.77 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006321/1.519, allocations: 5.514 MB / 0.8828 GB, free: 95.25 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006725/1.525, allocations: 0.6097 MB / 0.8834 GB, free: 95.18 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000578/1.526, allocations: 104.5 kB / 0.8835 GB, free: 95.16 MB / 442.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: stack.cell[1,1].n.v:VARIABLE(flow=false unit = "V" ) "Potential at the pin" type: Real [3,2] stack.cell[3,1].v:VARIABLE(unit = "V" ) "Voltage drop of the two pins (= p.v - n.v)" type: Real [3,2] 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: 70 * Number of states: 0 () * Number of discrete variables: 14 (cccvCharger.CV,energy.local_reset,stack.cell[3,2].limIntegrator.local_reset,stack.cell[3,2].cell.limIntegrator.local_reset,stack.cell[3,1].limIntegrator.local_reset,stack.cell[3,1].cell.limIntegrator.local_reset,stack.cell[2,2].limIntegrator.local_reset,stack.cell[2,2].cell.limIntegrator.local_reset,stack.cell[2,1].limIntegrator.local_reset,stack.cell[2,1].cell.limIntegrator.local_reset,stack.cell[1,2].limIntegrator.local_reset,stack.cell[1,2].cell.limIntegrator.local_reset,stack.cell[1,1].limIntegrator.local_reset,stack.cell[1,1].cell.limIntegrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (308): * Single equations (assignments): 307 * 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 {3 38} Notification: Performance of prepare postOptimizeDAE: time 0.0008064/1.527, allocations: 200.8 kB / 0.8837 GB, free: 95.04 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005411/1.532, allocations: 1.511 MB / 0.8852 GB, free: 94.2 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01249/1.545, allocations: 6.221 MB / 0.8913 GB, free: 92.44 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.226e-05/1.545, allocations: 24.64 kB / 0.8913 GB, free: 92.44 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/1.545, allocations: 0 / 0.8913 GB, free: 92.44 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.113e-05/1.545, allocations: 9.797 kB / 0.8913 GB, free: 92.44 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04056/1.585, allocations: 18.16 MB / 0.9091 GB, free: 84.75 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.975e-06/1.585, allocations: 0 / 0.9091 GB, free: 84.75 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002891/1.588, allocations: 0.7433 MB / 0.9098 GB, free: 84.21 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001037/1.589, allocations: 440.6 kB / 0.9102 GB, free: 83.85 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002199/1.59, allocations: 41.33 kB / 0.9102 GB, free: 83.82 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004502/1.594, allocations: 4.764 MB / 0.9149 GB, free: 79.54 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/1.594, allocations: 7.609 kB / 0.9149 GB, free: 79.54 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01067/1.605, allocations: 8.488 MB / 0.9232 GB, free: 71.86 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.009887/1.615, allocations: 7.416 MB / 0.9304 GB, free: 64.25 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002809/1.618, allocations: 43.45 kB / 0.9305 GB, free: 64.21 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005119/1.623, allocations: 0.6928 MB / 0.9311 GB, free: 63.77 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000777/1.623, allocations: 400.1 kB / 0.9315 GB, free: 63.54 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002234/1.624, allocations: 63.28 kB / 0.9316 GB, free: 63.48 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0344/1.658, allocations: 20.54 MB / 0.9516 GB, free: 45.9 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.008657/1.667, allocations: 1.839 MB / 0.9534 GB, free: 44.16 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 25 (stack.cell[1,1].cell.limIntegrator.y,stack.cell[1,1].cell.capacitor[1].v,stack.cell[1,1].cell.capacitor[2].v,stack.cell[1,1].limIntegrator.y,stack.cell[1,2].cell.limIntegrator.y,stack.cell[1,2].cell.capacitor[1].v,stack.cell[1,2].cell.capacitor[2].v,stack.cell[1,2].limIntegrator.y,stack.cell[2,1].cell.limIntegrator.y,stack.cell[2,1].cell.capacitor[1].v,stack.cell[2,1].cell.capacitor[2].v,stack.cell[2,1].limIntegrator.y,stack.cell[2,2].cell.limIntegrator.y,stack.cell[2,2].cell.capacitor[1].v,stack.cell[2,2].cell.capacitor[2].v,stack.cell[2,2].limIntegrator.y,stack.cell[3,1].cell.limIntegrator.y,stack.cell[3,1].cell.capacitor[1].v,stack.cell[3,1].cell.capacitor[2].v,stack.cell[3,1].limIntegrator.y,stack.cell[3,2].cell.limIntegrator.y,stack.cell[3,2].cell.capacitor[1].v,stack.cell[3,2].cell.capacitor[2].v,stack.cell[3,2].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 (201): * Single equations (assignments): 200 * 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 {3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.002095/1.669, allocations: 0.637 MB / 0.9541 GB, free: 43.77 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01089/1.68, allocations: 4.855 MB / 0.9588 GB, free: 39.56 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.262e-05/1.68, allocations: 9.469 kB / 0.9588 GB, free: 39.55 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005224/1.685, allocations: 2.584 MB / 0.9613 GB, free: 37.32 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01575/1.701, allocations: 2.074 MB / 0.9634 GB, free: 35.63 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1007/1.802, allocations: 37.92 MB / 1 GB, free: 2.074 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.2854/2.087, allocations: 12.8 MB / 1.013 GB, free: 87.57 MB / 442.8 MB Notification: Performance of SimCode: time 1.092e-06/2.087, allocations: 0 / 1.013 GB, free: 87.57 MB / 442.8 MB Notification: Performance of Templates: time 0.2045/2.292, allocations: 107.1 MB / 1.117 GB, free: 60.39 MB / 442.8 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_StackRC/CCCV_StackRC.csv","../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches