Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.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: translateModel(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=144000,variableFilter="time|energy.y|superCap.capacitor.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") translateModel(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=144000,variableFilter="time|energy.y|superCap.capacitor.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") [: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.001094/0.001094, allocations: 195.9 kB / 8.535 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.212/1.212, allocations: 225.5 MB / 234.4 MB, free: 3.387 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008523/0.0008523, allocations: 97.19 kB / 286.3 MB, free: 5.258 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 5.12e-06/5.16e-06, allocations: 0 / 343.1 MB, free: 8.715 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09394/0.09396, allocations: 51.47 MB / 394.6 MB, free: 5.195 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2383/0.3323, allocations: 81.47 MB / 476.1 MB, free: 11.11 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001741/0.3325, allocations: 75.56 kB / 476.2 MB, free: 11.08 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.01486/0.3474, allocations: 6.15 MB / 482.3 MB, free: 6.594 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.659e-05/0.3474, allocations: 4 kB / 482.3 MB, free: 6.59 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: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.001024/0.3484, allocations: 0.7135 MB / 483 MB, free: 5.859 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.269e-05/0.3485, allocations: 16.02 kB / 483 MB, free: 5.844 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.409e-05/0.3486, allocations: 39.53 kB / 483.1 MB, free: 5.805 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004801/0.349, allocations: 363.2 kB / 483.4 MB, free: 5.461 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.424e-05/0.3491, allocations: 8.875 kB / 483.4 MB, free: 5.453 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.5e-05/0.3491, allocations: 20 kB / 483.5 MB, free: 5.434 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003465/0.3495, allocations: 213.2 kB / 483.7 MB, free: 5.301 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004095/0.3499, allocations: 294.3 kB / 484 MB, free: 5.07 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.181e-05/0.3499, allocations: 4 kB / 484 MB, free: 5.066 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.846e-05/0.3499, allocations: 4 kB / 484 MB, free: 5.062 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.755e-06/0.35, allocations: 7.984 kB / 484 MB, free: 5.055 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001396/0.3514, allocations: 1.267 MB / 485.2 MB, free: 3.941 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001913/0.3516, allocations: 98.75 kB / 485.3 MB, free: 3.867 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002175/0.3518, allocations: 130.7 kB / 485.5 MB, free: 3.77 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.439e-05/0.3518, allocations: 4 kB / 485.5 MB, free: 3.766 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.676e-05/0.3519, allocations: 34.12 kB / 485.5 MB, free: 3.727 MB / 346.7 MB Notification: Performance of pre-optimization done (n=16): time 1.343e-06/0.3519, allocations: 0 / 485.5 MB, free: 3.727 MB / 346.7 MB Notification: Performance of matching and sorting (n=16): time 0.00228/0.3541, allocations: 0.7821 MB / 486.3 MB, free: 2.973 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.45e-05/0.3542, allocations: 51.41 kB / 486.3 MB, free: 2.91 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000226/0.3544, allocations: 265.3 kB / 486.6 MB, free: 2.703 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.761e-05/0.3544, allocations: 25.92 kB / 486.6 MB, free: 2.672 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.519e-05/0.3545, allocations: 184.7 kB / 486.8 MB, free: 2.504 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.266e-05/0.3545, allocations: 61.64 kB / 486.9 MB, free: 2.449 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.223e-05/0.3545, allocations: 0 / 486.9 MB, free: 2.449 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.628e-05/0.3546, allocations: 337.1 kB / 487.2 MB, free: 2.121 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001022/0.3547, allocations: 67.8 kB / 487.3 MB, free: 2.078 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001177/0.3548, allocations: 127.5 kB / 487.4 MB, free: 1.953 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00206/0.3569, allocations: 0.6874 MB / 488.1 MB, free: 1.297 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.3569, allocations: 0 / 488.1 MB, free: 1.297 MB / 346.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.002238/0.3592, allocations: 0.8382 MB / 488.9 MB, free: 0.5039 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.152e-05/0.3592, allocations: 8.25 kB / 488.9 MB, free: 0.4961 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.3592, allocations: 6.531 kB / 488.9 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.375e-05/0.3592, allocations: 4 kB / 488.9 MB, free: 500 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001899/0.3594, allocations: 47.91 kB / 489 MB, free: 452 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.45e-06/0.3594, allocations: 4 kB / 489 MB, free: 448 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003776/0.3598, allocations: 93.14 kB / 489.1 MB, free: 356 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.605e-05/0.3598, allocations: 11.38 kB / 489.1 MB, free: 348 kB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 3 (pulseSeries.on1,pulseSeries.on2,energy.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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 6.021e-05/0.3599, allocations: 108.8 kB / 489.2 MB, free: 232 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.11e-05/0.36, allocations: 27.72 kB / 489.2 MB, free: 204 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002404/0.3624, allocations: 0.823 MB / 490 MB, free: 15.43 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.3624, allocations: 4 kB / 490 MB, free: 15.43 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.3624, allocations: 0 / 490 MB, free: 15.43 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.3624, allocations: 0 / 490 MB, free: 15.43 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002735/0.3651, allocations: 1.201 MB / 491.2 MB, free: 14.29 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-06/0.3652, allocations: 0 / 491.2 MB, free: 14.29 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000177/0.3653, allocations: 31.97 kB / 491.3 MB, free: 14.26 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.3654, allocations: 0 / 491.3 MB, free: 14.26 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.949e-05/0.3654, allocations: 9.406 kB / 491.3 MB, free: 14.25 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.3654, allocations: 0 / 491.3 MB, free: 14.25 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.3654, allocations: 0 / 491.3 MB, free: 14.25 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002438/0.3678, allocations: 0.9979 MB / 492.3 MB, free: 13.31 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.868e-05/0.3679, allocations: 107.1 kB / 492.4 MB, free: 13.19 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.061e-05/0.368, allocations: 0 / 492.4 MB, free: 13.19 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004271/0.3684, allocations: 90.98 kB / 492.5 MB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000147/0.3686, allocations: 59.28 kB / 492.5 MB, free: 13.05 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.218e-05/0.3686, allocations: 15.11 kB / 492.5 MB, free: 13.04 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001795/0.3688, allocations: 202.8 kB / 492.7 MB, free: 12.89 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003596/0.3691, allocations: 79.69 kB / 492.8 MB, free: 12.82 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (superCap.capacitor.v,energy.y) * Number of discrete variables: 2 (pulseSeries.on1,pulseSeries.on2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 16 * 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.0001596/0.3693, allocations: 118.2 kB / 492.9 MB, free: 12.69 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003067/0.3696, allocations: 178.2 kB / 493.1 MB, free: 12.57 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.3696, allocations: 4 kB / 493.1 MB, free: 12.56 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001545/0.3698, allocations: 107.2 kB / 493.2 MB, free: 12.48 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002879/0.3701, allocations: 36.14 kB / 493.2 MB, free: 12.46 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001187/0.3713, allocations: 0.5473 MB / 493.8 MB, free: 11.93 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003955/0.3717, allocations: 0.8081 MB / 494.6 MB, free: 11.1 MB / 362.7 MB Notification: Performance of SimCode: time 3.01e-07/0.3717, allocations: 0 / 494.6 MB, free: 11.1 MB / 362.7 MB Notification: Performance of Templates: time 0.006443/0.3782, allocations: 3.345 MB / 497.9 MB, free: 7.836 MB / 362.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.makefile (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/SuperCapDischargeCharge/SuperCapDischargeCharge.csv","../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches