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.002406/0.002406, allocations: 99.86 kB / 20.97 MB, free: 3.457 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.002562/0.002562, allocations: 145.1 kB / 24.26 MB, free: 168 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.603/1.603, allocations: 173.3 MB / 200.8 MB, free: 9.293 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.974e-06/1.974e-06, allocations: 0 / 267.3 MB, free: 6.738 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.764e-05/2.962e-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.006359/0.006388, allocations: 3.927 MB / 271.2 MB, free: 2.785 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003596/0.009984, allocations: 1.87 MB / 273.1 MB, free: 0.9062 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003478/0.01033, allocations: 19.88 kB / 273.1 MB, free: 0.8867 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001464/0.0118, allocations: 0.5717 MB / 273.7 MB, free: 320 kB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007809/0.01258, allocations: 362.1 kB / 274 MB, free: 15.95 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007912/0.01337, allocations: 287.4 kB / 274.3 MB, free: 15.67 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001406/0.01477, allocations: 1.009 MB / 275.3 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004415/0.01522, allocations: 217 kB / 275.5 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007624/0.01598, allocations: 0.538 MB / 276.1 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007638/0.01674, allocations: 463 kB / 276.5 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001383/0.01688, allocations: 83.94 kB / 276.6 MB, free: 13.37 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003214/0.0172, allocations: 131.9 kB / 276.7 MB, free: 13.24 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004842/0.01769, allocations: 490.6 kB / 277.2 MB, free: 12.76 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005131/0.0182, allocations: 390.8 kB / 277.6 MB, free: 12.38 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002079/0.02028, allocations: 1.729 MB / 279.3 MB, free: 10.64 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.02028, allocations: 0 / 279.3 MB, free: 10.64 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.02028, allocations: 0 / 279.3 MB, free: 10.64 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.146e-05/0.02031, allocations: 3.938 kB / 279.3 MB, free: 10.64 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.003687/0.02399, allocations: 2.007 MB / 281.3 MB, free: 8.582 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.979e-05/0.02404, allocations: 8.922 kB / 281.3 MB, free: 8.574 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003437/0.02439, allocations: 207.9 kB / 281.6 MB, free: 8.371 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001832/0.02622, allocations: 0.8701 MB / 282.4 MB, free: 7.465 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001863/0.02641, allocations: 170.1 kB / 282.6 MB, free: 7.27 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000102/0.02651, allocations: 60.38 kB / 282.6 MB, free: 7.211 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00161/0.02812, allocations: 1.055 MB / 283.7 MB, free: 6.012 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.912e-05/0.02814, allocations: 4 kB / 283.7 MB, free: 6.008 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.606e-05/0.02819, allocations: 24 kB / 283.7 MB, free: 5.984 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.754e-05/0.02821, allocations: 15.98 kB / 283.7 MB, free: 5.969 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008325/0.02904, allocations: 399.7 kB / 284.1 MB, free: 5.578 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005393/0.03444, allocations: 3.033 MB / 287.2 MB, free: 2.449 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009747/0.03541, allocations: 375 kB / 287.5 MB, free: 2.07 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006979/0.03611, allocations: 295.5 kB / 287.8 MB, free: 1.777 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.37e-05/0.03614, allocations: 4 kB / 287.8 MB, free: 1.773 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.149e-05/0.03618, allocations: 45.39 kB / 287.9 MB, free: 1.719 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 1.983e-06/0.03619, allocations: 0 / 287.9 MB, free: 1.719 MB / 266.7 MB Notification: Performance of matching and sorting (n=30): time 0.001807/0.03799, allocations: 0.6373 MB / 288.5 MB, free: 1.07 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001877/0.03818, allocations: 269 kB / 288.8 MB, free: 0.7461 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1132/0.1514, allocations: 1.872 MB / 290.6 MB, free: 30.8 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 9.138e-05/0.1515, allocations: 37.05 kB / 290.7 MB, free: 30.77 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006169/0.1521, allocations: 0.8391 MB / 291.5 MB, free: 30.63 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001025/0.1522, allocations: 120.8 kB / 291.6 MB, free: 30.61 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001513/0.1523, allocations: 92.73 kB / 291.7 MB, free: 30.58 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.438e-05/0.1524, allocations: 0.5005 MB / 292.2 MB, free: 30.1 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003242/0.1528, allocations: 142.1 kB / 292.4 MB, free: 30.1 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004081/0.1532, allocations: 0.5331 MB / 292.9 MB, free: 29.64 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005944/0.1538, allocations: 421.2 kB / 293.3 MB, free: 29.5 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.528e-06/0.1538, allocations: 1.25 kB / 293.3 MB, free: 29.5 MB / 266.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001267/0.155, allocations: 0.6145 MB / 293.9 MB, free: 29.25 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.06e-05/0.1551, allocations: 7.156 kB / 293.9 MB, free: 29.25 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.518e-06/0.1551, allocations: 2.188 kB / 293.9 MB, free: 29.25 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003113/0.1554, allocations: 64.08 kB / 294 MB, free: 29.23 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003664/0.1557, allocations: 92.69 kB / 294.1 MB, free: 29.23 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001459/0.1572, allocations: 2.238 MB / 296.3 MB, free: 27.12 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004365/0.1576, allocations: 51.28 kB / 296.4 MB, free: 27.11 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.14e-05/0.1577, allocations: 15.47 kB / 296.4 MB, free: 27.1 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.0003889/0.1581, allocations: 273.2 kB / 296.7 MB, free: 26.88 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001919/0.1582, allocations: 145.3 kB / 296.8 MB, free: 26.8 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001844/0.1584, allocations: 120.9 kB / 296.9 MB, free: 26.74 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.1584, allocations: 2.375 kB / 296.9 MB, free: 26.74 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.985e-06/0.1584, allocations: 1.125 kB / 296.9 MB, free: 26.74 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.573e-06/0.1584, allocations: 2.016 kB / 296.9 MB, free: 26.74 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002956/0.1614, allocations: 1.755 MB / 298.7 MB, free: 25.85 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.1614, allocations: 1.344 kB / 298.7 MB, free: 25.85 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003241/0.1617, allocations: 73.39 kB / 298.8 MB, free: 25.84 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000172/0.1619, allocations: 64.09 kB / 298.8 MB, free: 25.82 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.571e-05/0.1619, allocations: 8.156 kB / 298.8 MB, free: 25.81 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001187/0.1631, allocations: 2.193 MB / 301 MB, free: 23.73 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.1631, allocations: 0 / 301 MB, free: 23.73 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001277/0.1644, allocations: 0.8093 MB / 301.8 MB, free: 23.27 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005944/0.165, allocations: 237.4 kB / 302.1 MB, free: 23.16 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001156/0.1651, allocations: 11.95 kB / 302.1 MB, free: 23.15 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003985/0.1655, allocations: 38.81 kB / 302.1 MB, free: 23.15 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001143/0.1656, allocations: 37.31 kB / 302.1 MB, free: 23.14 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.43e-05/0.1656, allocations: 11.66 kB / 302.2 MB, free: 23.13 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001589/0.1672, allocations: 1.067 MB / 303.2 MB, free: 22.74 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1672, allocations: 1.094 kB / 303.2 MB, free: 22.74 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007702/0.168, allocations: 210.6 kB / 303.4 MB, free: 22.71 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.003197/0.1712, allocations: 0.4903 MB / 303.9 MB, free: 22.55 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.00108/0.1723, allocations: 0.5343 MB / 304.4 MB, free: 22.26 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.618e-06/0.1723, allocations: 1.375 kB / 304.5 MB, free: 22.26 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004653/0.1727, allocations: 364.5 kB / 304.8 MB, free: 22.02 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009435/0.1737, allocations: 197.4 kB / 305 MB, free: 21.93 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003346/0.177, allocations: 2.209 MB / 307.2 MB, free: 20.78 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005845/0.1776, allocations: 0.6123 MB / 307.8 MB, free: 20.59 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003316/0.178, allocations: 150.5 kB / 308 MB, free: 20.56 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001695/0.1781, allocations: 65.25 kB / 308 MB, free: 20.55 MB / 266.7 MB Notification: Performance of SimCode: time 1.062e-06/0.1781, allocations: 0 / 308 MB, free: 20.55 MB / 266.7 MB Notification: Performance of Templates: time 0.0213/0.1994, allocations: 13.98 MB / 322 MB, free: 7.461 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","/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: 5.031070437049493]