Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001174/0.001174, allocations: 79.91 kB / 21.18 MB, free: 3.391 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001057/0.001057, allocations: 145.1 kB / 24.55 MB, free: 32 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9393/0.9393, allocations: 173.4 MB / 201.1 MB, free: 9.32 MB / 186.7 MB " [Timeout remaining time 179] 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Batteries.Examples.CCCVcharging,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|battery.capacitor.[0-9,]+..v|battery.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging") translateModel(Modelica.Electrical.Batteries.Examples.CCCVcharging,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|battery.capacitor.[0-9,]+..v|battery.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.733e-06/1.733e-06, allocations: 0 / 268 MB, free: 6.445 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.442e-05/2.615e-05, allocations: 2.312 kB / 268 MB, free: 6.441 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.004413/0.004439, allocations: 3.958 MB / 271.9 MB, free: 2.461 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002421/0.00686, allocations: 1.878 MB / 273.8 MB, free: 0.5742 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002951/0.007156, allocations: 19.88 kB / 273.8 MB, free: 0.5547 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001131/0.008287, allocations: 0.5679 MB / 274.4 MB, free: 15.98 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004923/0.008779, allocations: 369.8 kB / 274.8 MB, free: 15.62 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005285/0.009308, allocations: 299.3 kB / 275.1 MB, free: 15.33 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000923/0.01023, allocations: 0.9972 MB / 276.1 MB, free: 14.33 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003444/0.01058, allocations: 221 kB / 276.3 MB, free: 14.11 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006009/0.01118, allocations: 0.5457 MB / 276.8 MB, free: 13.56 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004901/0.01167, allocations: 451 kB / 277.3 MB, free: 13.12 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.768e-05/0.01175, allocations: 80 kB / 277.3 MB, free: 13.04 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001935/0.01195, allocations: 143.9 kB / 277.5 MB, free: 12.9 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002482/0.0122, allocations: 474.7 kB / 277.9 MB, free: 12.44 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002878/0.01248, allocations: 394.8 kB / 278.3 MB, free: 12.05 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009726/0.01346, allocations: 1.074 MB / 279.4 MB, free: 10.97 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.676e-06/0.01346, allocations: 4 kB / 279.4 MB, free: 10.97 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.01346, allocations: 0 / 279.4 MB, free: 10.97 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.749e-05/0.01349, allocations: 0 / 279.4 MB, free: 10.97 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.002027/0.01552, allocations: 1.937 MB / 281.3 MB, free: 8.98 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.857e-05/0.01555, allocations: 8.031 kB / 281.3 MB, free: 8.973 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002277/0.01578, allocations: 211.8 kB / 281.5 MB, free: 8.766 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009118/0.01669, allocations: 0.8428 MB / 282.4 MB, free: 7.887 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001128/0.01681, allocations: 174.1 kB / 282.6 MB, free: 7.688 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.388e-05/0.01687, allocations: 56.38 kB / 282.6 MB, free: 7.633 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006969/0.01757, allocations: 0.8566 MB / 283.5 MB, free: 6.625 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.01758, allocations: 0 / 283.5 MB, free: 6.625 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.564e-05/0.01761, allocations: 24 kB / 283.5 MB, free: 6.602 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.135e-05/0.01763, allocations: 16 kB / 283.5 MB, free: 6.586 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002962/0.01792, allocations: 181.8 kB / 283.7 MB, free: 6.406 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002801/0.02072, allocations: 2.551 MB / 286.2 MB, free: 3.762 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005154/0.02124, allocations: 255.2 kB / 286.5 MB, free: 3.5 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003621/0.0216, allocations: 191.5 kB / 286.7 MB, free: 3.309 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.142e-05/0.02162, allocations: 7.938 kB / 286.7 MB, free: 3.301 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.142e-05/0.02165, allocations: 41.39 kB / 286.7 MB, free: 3.25 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 1.543e-06/0.02165, allocations: 0 / 286.7 MB, free: 3.25 MB / 266.7 MB Notification: Performance of matching and sorting (n=30): time 0.0009773/0.02263, allocations: 472.7 kB / 287.2 MB, free: 2.777 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.495e-05/0.02273, allocations: 265 kB / 287.4 MB, free: 2.457 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001827/0.02455, allocations: 1.631 MB / 289.1 MB, free: 0.793 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.141e-05/0.02458, allocations: 37.7 kB / 289.1 MB, free: 0.75 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.1161/0.1407, allocations: 0.7904 MB / 289.9 MB, free: 27.79 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001308/0.1408, allocations: 114.1 kB / 290 MB, free: 27.79 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001161/0.1409, allocations: 80.72 kB / 290.1 MB, free: 27.76 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.28e-05/0.141, allocations: 0.4935 MB / 290.6 MB, free: 27.28 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001342/0.1411, allocations: 51.45 kB / 290.6 MB, free: 27.28 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001981/0.1413, allocations: 448.4 kB / 291.1 MB, free: 26.82 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002579/0.1416, allocations: 246.5 kB / 291.3 MB, free: 26.69 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.1416, allocations: 1.781 kB / 291.3 MB, free: 26.69 MB / 266.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009242/0.1425, allocations: 449.7 kB / 291.8 MB, free: 26.6 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.254e-05/0.1425, allocations: 5.781 kB / 291.8 MB, free: 26.6 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.746e-06/0.1425, allocations: 2.844 kB / 291.8 MB, free: 26.6 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000216/0.1427, allocations: 47.19 kB / 291.8 MB, free: 26.59 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002354/0.143, allocations: 88.11 kB / 291.9 MB, free: 26.59 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000966/0.1439, allocations: 2.109 MB / 294 MB, free: 24.63 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002837/0.1442, allocations: 47.69 kB / 294.1 MB, free: 24.62 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.253e-05/0.1442, allocations: 15.73 kB / 294.1 MB, free: 24.62 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 3 (cccvCharger.CV,energy.local_reset,battery.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.000244/0.1445, allocations: 185.7 kB / 294.3 MB, free: 24.46 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001209/0.1446, allocations: 147.3 kB / 294.4 MB, free: 24.38 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001143/0.1447, allocations: 120.1 kB / 294.5 MB, free: 24.36 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.1447, allocations: 7.078 kB / 294.5 MB, free: 24.36 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.546e-06/0.1447, allocations: 5.312 kB / 294.5 MB, free: 24.36 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.1447, allocations: 4.031 kB / 294.5 MB, free: 24.36 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001515/0.1463, allocations: 1.419 MB / 295.9 MB, free: 24 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-06/0.1463, allocations: 0.7969 kB / 295.9 MB, free: 24 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001986/0.1465, allocations: 68.25 kB / 296 MB, free: 24 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000105/0.1466, allocations: 40.34 kB / 296.1 MB, free: 23.99 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.339e-05/0.1466, allocations: 12.86 kB / 296.1 MB, free: 23.99 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007074/0.1473, allocations: 2.075 MB / 298.1 MB, free: 22.04 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.1473, allocations: 4.531 kB / 298.1 MB, free: 22.04 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005783/0.1479, allocations: 0.594 MB / 298.7 MB, free: 21.72 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002596/0.1481, allocations: 237.3 kB / 299 MB, free: 21.64 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.459e-05/0.1482, allocations: 10.88 kB / 299 MB, free: 21.64 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002053/0.1484, allocations: 38.39 kB / 299 MB, free: 21.64 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.674e-05/0.1485, allocations: 28.05 kB / 299 MB, free: 21.64 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.654e-05/0.1485, allocations: 10.92 kB / 299.1 MB, free: 21.64 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0009666/0.1495, allocations: 0.9403 MB / 300 MB, free: 21.49 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1495, allocations: 0 / 300 MB, free: 21.49 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004827/0.15, allocations: 212.6 kB / 300.2 MB, free: 21.47 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (battery.limIntegrator.y,battery.capacitor[1].v,battery.capacitor[2].v,energy.y) * Number of discrete variables: 1 (cccvCharger.CV) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001015/0.151, allocations: 441.5 kB / 300.6 MB, free: 21.33 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005041/0.1515, allocations: 394.6 kB / 301 MB, free: 21.14 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.1515, allocations: 1.406 kB / 301 MB, free: 21.14 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002054/0.1517, allocations: 290.8 kB / 301.3 MB, free: 20.95 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005241/0.1522, allocations: 195.8 kB / 301.5 MB, free: 20.93 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002513/0.1547, allocations: 2.117 MB / 303.6 MB, free: 19.94 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002769/0.155, allocations: 304.1 kB / 303.9 MB, free: 19.86 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003139/0.1553, allocations: 140.5 kB / 304 MB, free: 19.84 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001474/0.1555, allocations: 70.89 kB / 304.1 MB, free: 19.83 MB / 266.7 MB Notification: Performance of SimCode: time 1.142e-06/0.1555, allocations: 0 / 304.1 MB, free: 19.83 MB / 266.7 MB Notification: Performance of Templates: time 0.01836/0.1738, allocations: 14.64 MB / 318.8 MB, free: 9.582 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCVcharging/CCCVcharging.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1420316980220377]