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.001989/0.001989, allocations: 84.66 kB / 20.95 MB, free: 3.453 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.002428/0.002428, allocations: 153.1 kB / 24.26 MB, free: 156 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 1.464/1.464, allocations: 173.4 MB / 200.8 MB, free: 9.297 MB / 186.7 MB " [Timeout remaining time 178] 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.1..v|battery.capacitor.2..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.1..v|battery.capacitor.2..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.723e-06/1.723e-06, allocations: 0 / 267.3 MB, free: 6.738 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.582e-05/3.754e-05, allocations: 2.312 kB / 267.3 MB, free: 6.734 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.007201/0.007239, allocations: 3.671 MB / 271 MB, free: 3.043 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003862/0.0111, allocations: 1.792 MB / 272.8 MB, free: 1.242 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005329/0.01163, allocations: 19.88 kB / 272.8 MB, free: 1.223 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001686/0.01332, allocations: 0.5756 MB / 273.4 MB, free: 0.6445 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001049/0.01437, allocations: 362 kB / 273.7 MB, free: 296 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007968/0.01516, allocations: 295.4 kB / 274 MB, free: 0 / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001529/0.01669, allocations: 1.005 MB / 275 MB, free: 14.99 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000503/0.0172, allocations: 217 kB / 275.2 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000947/0.01814, allocations: 0.5419 MB / 275.8 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000792/0.01894, allocations: 443 kB / 276.2 MB, free: 13.8 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001834/0.01912, allocations: 80 kB / 276.3 MB, free: 13.72 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003106/0.01943, allocations: 139.8 kB / 276.4 MB, free: 13.58 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007007/0.02013, allocations: 482.6 kB / 276.9 MB, free: 13.11 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006112/0.02074, allocations: 390.8 kB / 277.3 MB, free: 12.73 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002089/0.02283, allocations: 1.729 MB / 279 MB, free: 10.99 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.02283, allocations: 0 / 279 MB, free: 10.99 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.02284, allocations: 0 / 279 MB, free: 10.99 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.671e-05/0.02285, allocations: 0 / 279 MB, free: 10.99 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.004764/0.02762, allocations: 1.765 MB / 280.8 MB, free: 9.184 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/0.02765, allocations: 8.922 kB / 280.8 MB, free: 9.176 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003717/0.02803, allocations: 207.9 kB / 281 MB, free: 8.973 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002014/0.03004, allocations: 1.148 MB / 282.1 MB, free: 7.789 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001947/0.03023, allocations: 170.1 kB / 282.3 MB, free: 7.594 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001052/0.03034, allocations: 52.38 kB / 282.3 MB, free: 7.543 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001508/0.03185, allocations: 1.027 MB / 283.4 MB, free: 6.383 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.514e-05/0.03186, allocations: 0 / 283.4 MB, free: 6.383 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.247e-05/0.03194, allocations: 20 kB / 283.4 MB, free: 6.363 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.249e-05/0.03195, allocations: 12 kB / 283.4 MB, free: 6.352 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008789/0.03283, allocations: 435.7 kB / 283.8 MB, free: 5.926 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004857/0.03768, allocations: 2.541 MB / 286.4 MB, free: 3.309 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001079/0.03876, allocations: 394.5 kB / 286.7 MB, free: 2.914 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007237/0.03949, allocations: 288.6 kB / 287 MB, free: 2.629 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.086e-05/0.03952, allocations: 8 kB / 287 MB, free: 2.621 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.656e-05/0.03956, allocations: 46.56 kB / 287.1 MB, free: 2.566 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 2.124e-06/0.03957, allocations: 0 / 287.1 MB, free: 2.566 MB / 266.7 MB Notification: Performance of matching and sorting (n=30): time 0.002152/0.04172, allocations: 0.7009 MB / 287.8 MB, free: 1.855 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002291/0.04195, allocations: 261 kB / 288 MB, free: 1.539 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1197/0.1617, allocations: 2.198 MB / 290.2 MB, free: 31.54 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.75e-05/0.1618, allocations: 33.14 kB / 290.3 MB, free: 31.51 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005115/0.1623, allocations: 0.6554 MB / 290.9 MB, free: 31.27 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.876e-05/0.1624, allocations: 109.2 kB / 291 MB, free: 31.26 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000138/0.1625, allocations: 80.36 kB / 291.1 MB, free: 31.21 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.403e-05/0.1626, allocations: 319.1 kB / 291.4 MB, free: 30.9 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003641/0.1629, allocations: 161.5 kB / 291.6 MB, free: 30.85 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004327/0.1634, allocations: 0.5044 MB / 292.1 MB, free: 30.39 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006686/0.164, allocations: 401.7 kB / 292.5 MB, free: 30.19 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.164, allocations: 1.406 kB / 292.5 MB, free: 30.19 MB / 266.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001496/0.1655, allocations: 0.6588 MB / 293.1 MB, free: 29.93 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.01e-05/0.1655, allocations: 7.156 kB / 293.1 MB, free: 29.93 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.047e-05/0.1656, allocations: 2.25 kB / 293.1 MB, free: 29.93 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003239/0.1659, allocations: 63.91 kB / 293.2 MB, free: 29.91 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003826/0.1663, allocations: 91.3 kB / 293.3 MB, free: 29.9 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001433/0.1677, allocations: 1.642 MB / 294.9 MB, free: 28.42 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005082/0.1682, allocations: 52.88 kB / 295 MB, free: 28.4 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.009e-05/0.1682, allocations: 15.09 kB / 295 MB, free: 28.4 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.0008449/0.1691, allocations: 487.9 kB / 295.5 MB, free: 28.18 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002951/0.1694, allocations: 150.4 kB / 295.6 MB, free: 28.09 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002799/0.1697, allocations: 161.6 kB / 295.8 MB, free: 28.02 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-06/0.1697, allocations: 3.375 kB / 295.8 MB, free: 28.02 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/0.1697, allocations: 1.156 kB / 295.8 MB, free: 28.02 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.635e-06/0.1697, allocations: 1.969 kB / 295.8 MB, free: 28.02 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002771/0.1724, allocations: 1.418 MB / 297.2 MB, free: 27.4 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-06/0.1724, allocations: 0 / 297.2 MB, free: 27.4 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003473/0.1728, allocations: 73.17 kB / 297.3 MB, free: 27.39 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001801/0.173, allocations: 61.53 kB / 297.3 MB, free: 27.37 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.644e-05/0.173, allocations: 9.266 kB / 297.3 MB, free: 27.36 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00118/0.1742, allocations: 1.588 MB / 298.9 MB, free: 25.91 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.1742, allocations: 2.203 kB / 298.9 MB, free: 25.91 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001493/0.1757, allocations: 0.804 MB / 299.7 MB, free: 25.51 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004974/0.1762, allocations: 258 kB / 300 MB, free: 25.39 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001148/0.1763, allocations: 20.66 kB / 300 MB, free: 25.38 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004647/0.1768, allocations: 45.23 kB / 300.1 MB, free: 25.38 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001082/0.1769, allocations: 30.91 kB / 300.1 MB, free: 25.37 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.635e-05/0.1769, allocations: 11.2 kB / 300.1 MB, free: 25.36 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.002136/0.179, allocations: 1.571 MB / 301.7 MB, free: 24.86 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.179, allocations: 0 / 301.7 MB, free: 24.86 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007599/0.1798, allocations: 210.7 kB / 301.9 MB, free: 24.83 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.002191/0.182, allocations: 498.3 kB / 302.4 MB, free: 24.68 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001155/0.1831, allocations: 0.4884 MB / 302.8 MB, free: 24.45 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.121e-06/0.1831, allocations: 2.188 kB / 302.8 MB, free: 24.45 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005501/0.1837, allocations: 304.4 kB / 303.1 MB, free: 24.28 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009825/0.1847, allocations: 196.9 kB / 303.3 MB, free: 24.19 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003414/0.1881, allocations: 2.609 MB / 305.9 MB, free: 22.99 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005461/0.1886, allocations: 0.6577 MB / 306.6 MB, free: 22.8 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000403/0.189, allocations: 205.4 kB / 306.8 MB, free: 22.77 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001937/0.1892, allocations: 78.97 kB / 306.9 MB, free: 22.76 MB / 266.7 MB Notification: Performance of SimCode: time 1.182e-06/0.1892, allocations: 0.9844 kB / 306.9 MB, free: 22.76 MB / 266.7 MB Notification: Performance of Templates: time 0.01914/0.2084, allocations: 14.02 MB / 320.9 MB, free: 9.238 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.863235577009618]