Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001073/0.001073, allocations: 71.77 kB / 21.69 MB, free: 2.859 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001096/0.001096, allocations: 165.9 kB / 24.99 MB, free: 8.793 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.012/1.012, allocations: 177.1 MB / 205.3 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.994e-06/1.994e-06, allocations: 0 / 273 MB, free: 1.848 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.517e-05/2.716e-05, allocations: 2.312 kB / 273 MB, free: 1.844 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.01201/0.01203, allocations: 4.008 MB / 277 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006663/0.01869, allocations: 2.029 MB / 279.1 MB, free: 11.78 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001343/0.02004, allocations: 15.94 kB / 279.1 MB, free: 11.76 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001408/0.02145, allocations: 0.5678 MB / 279.7 MB, free: 11.19 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008082/0.02225, allocations: 409.8 kB / 280.1 MB, free: 10.79 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006699/0.02292, allocations: 287.3 kB / 280.3 MB, free: 10.51 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001231/0.02416, allocations: 1.009 MB / 281.3 MB, free: 9.496 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000443/0.0246, allocations: 225 kB / 281.6 MB, free: 9.277 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006898/0.02529, allocations: 0.5496 MB / 282.1 MB, free: 8.727 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004808/0.02577, allocations: 459 kB / 282.6 MB, free: 8.277 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.55e-05/0.02585, allocations: 76 kB / 282.6 MB, free: 8.203 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001893/0.02604, allocations: 139.9 kB / 282.8 MB, free: 8.066 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002631/0.02631, allocations: 486.6 kB / 283.2 MB, free: 7.59 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003025/0.02661, allocations: 386.9 kB / 283.6 MB, free: 7.211 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009947/0.0276, allocations: 1.078 MB / 284.7 MB, free: 6.129 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.955e-06/0.02761, allocations: 0 / 284.7 MB, free: 6.129 MB / 266.7 MB Notification: Performance of FrontEnd: time 3.176e-06/0.02761, allocations: 4 kB / 284.7 MB, free: 6.125 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.522e-05/0.02764, allocations: 0 / 284.7 MB, free: 6.125 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.002112/0.02975, allocations: 1.964 MB / 286.7 MB, free: 4.109 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/0.02979, allocations: 8.031 kB / 286.7 MB, free: 4.102 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002576/0.03005, allocations: 207.9 kB / 286.9 MB, free: 3.898 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001096/0.03114, allocations: 0.8469 MB / 287.7 MB, free: 3.016 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001544/0.0313, allocations: 174.1 kB / 287.9 MB, free: 2.816 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.3e-05/0.03137, allocations: 60.27 kB / 288 MB, free: 2.758 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007532/0.03212, allocations: 0.8605 MB / 288.8 MB, free: 1.75 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.162e-05/0.03214, allocations: 0 / 288.8 MB, free: 1.75 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.868e-05/0.03217, allocations: 24 kB / 288.8 MB, free: 1.727 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.369e-05/0.03219, allocations: 15.94 kB / 288.9 MB, free: 1.711 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000322/0.03251, allocations: 181.8 kB / 289 MB, free: 1.531 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1185/0.151, allocations: 2.564 MB / 291.6 MB, free: 27.12 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005512/0.1515, allocations: 260.6 kB / 291.9 MB, free: 27.09 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003513/0.1519, allocations: 192.6 kB / 292 MB, free: 27.08 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.389e-05/0.1519, allocations: 7.281 kB / 292 MB, free: 27.08 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.33e-05/0.1519, allocations: 42.09 kB / 292.1 MB, free: 27.04 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 2.185e-06/0.1519, allocations: 0 / 292.1 MB, free: 27.04 MB / 266.7 MB Notification: Performance of matching and sorting (n=30): time 0.0008956/0.1528, allocations: 466.5 kB / 292.5 MB, free: 26.98 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.83e-05/0.1529, allocations: 264.8 kB / 292.8 MB, free: 26.67 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001644/0.1545, allocations: 1.632 MB / 294.4 MB, free: 26.18 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.96e-05/0.1546, allocations: 34.66 kB / 294.5 MB, free: 26.14 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000471/0.155, allocations: 0.7974 MB / 295.3 MB, free: 25.57 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.551e-05/0.1551, allocations: 114.4 kB / 295.4 MB, free: 25.5 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001028/0.1552, allocations: 91.16 kB / 295.5 MB, free: 25.44 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.242e-05/0.1553, allocations: 0.4953 MB / 296 MB, free: 24.95 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001195/0.1554, allocations: 55.12 kB / 296 MB, free: 24.95 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002007/0.1556, allocations: 448.9 kB / 296.5 MB, free: 24.46 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002799/0.1559, allocations: 242.5 kB / 296.7 MB, free: 24.3 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/0.1559, allocations: 1.156 kB / 296.7 MB, free: 24.3 MB / 266.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006288/0.1565, allocations: 444.9 kB / 297.1 MB, free: 24.12 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/0.1565, allocations: 5.938 kB / 297.1 MB, free: 24.12 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.1565, allocations: 2.219 kB / 297.1 MB, free: 24.12 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002252/0.1568, allocations: 51.47 kB / 297.2 MB, free: 24.1 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002231/0.157, allocations: 91.34 kB / 297.3 MB, free: 24.09 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009071/0.1579, allocations: 2.104 MB / 299.4 MB, free: 22.05 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002206/0.1581, allocations: 53.89 kB / 299.4 MB, free: 22.03 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.059e-05/0.1581, allocations: 16 kB / 299.4 MB, free: 22.03 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.0001571/0.1583, allocations: 183.3 kB / 299.6 MB, free: 21.85 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000119/0.1584, allocations: 147.5 kB / 299.8 MB, free: 21.77 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000108/0.1585, allocations: 124 kB / 299.9 MB, free: 21.7 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.1585, allocations: 4.219 kB / 299.9 MB, free: 21.7 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.996e-06/0.1585, allocations: 0.6094 kB / 299.9 MB, free: 21.7 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.119e-06/0.1585, allocations: 4.797 kB / 299.9 MB, free: 21.7 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001613/0.1601, allocations: 1.42 MB / 301.3 MB, free: 20.95 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-06/0.1601, allocations: 5.484 kB / 301.3 MB, free: 20.95 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001836/0.1603, allocations: 64.23 kB / 301.4 MB, free: 20.95 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.968e-05/0.1604, allocations: 42.67 kB / 301.4 MB, free: 20.93 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.232e-05/0.1604, allocations: 6.906 kB / 301.4 MB, free: 20.92 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000693/0.1611, allocations: 2.084 MB / 303.5 MB, free: 18.89 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/0.1611, allocations: 1.156 kB / 303.5 MB, free: 18.89 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006402/0.1618, allocations: 0.5832 MB / 304.1 MB, free: 18.52 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002898/0.1621, allocations: 242 kB / 304.3 MB, free: 18.4 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.691e-05/0.1622, allocations: 18.7 kB / 304.4 MB, free: 18.39 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002088/0.1624, allocations: 34.8 kB / 304.4 MB, free: 18.39 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.727e-05/0.1625, allocations: 32.28 kB / 304.4 MB, free: 18.38 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.638e-05/0.1625, allocations: 13.17 kB / 304.4 MB, free: 18.38 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0009723/0.1634, allocations: 0.9442 MB / 305.4 MB, free: 18.05 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1634, allocations: 0 / 305.4 MB, free: 18.05 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005118/0.164, allocations: 207.8 kB / 305.6 MB, free: 18.03 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.001027/0.165, allocations: 452.2 kB / 306 MB, free: 17.88 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005337/0.1655, allocations: 391.1 kB / 306.4 MB, free: 17.65 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.1655, allocations: 5.438 kB / 306.4 MB, free: 17.65 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002181/0.1657, allocations: 280.8 kB / 306.7 MB, free: 17.45 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005501/0.1663, allocations: 189.7 kB / 306.9 MB, free: 17.36 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00266/0.1689, allocations: 2.12 MB / 309 MB, free: 16.26 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000215/0.1692, allocations: 311.4 kB / 309.3 MB, free: 16.14 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002266/0.1694, allocations: 148 kB / 309.4 MB, free: 16.12 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001186/0.1695, allocations: 69.08 kB / 309.5 MB, free: 16.11 MB / 266.7 MB Notification: Performance of SimCode: time 9.22e-07/0.1695, allocations: 0 / 309.5 MB, free: 16.11 MB / 266.7 MB Notification: Performance of Templates: time 0.01542/0.1849, allocations: 14.01 MB / 323.5 MB, free: 3.008 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.sim & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.3228923899587244]