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.001879/0.001879, allocations: 91.61 kB / 20.96 MB, free: 3.465 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.001921/0.001921, allocations: 165.3 kB / 24.28 MB, free: 156 kB / 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.6/1.6, allocations: 177.1 MB / 204.6 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 178] 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.1..v|battery.capacitor.2..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.1..v|battery.capacitor.2..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.243e-06/1.243e-06, allocations: 0 / 272.3 MB, free: 1.879 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 6.757e-05/6.881e-05, allocations: 2.312 kB / 272.3 MB, free: 1.875 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.006356/0.006425, allocations: 3.973 MB / 276.3 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003997/0.01042, allocations: 2.025 MB / 278.3 MB, free: 11.85 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003679/0.01079, allocations: 11.94 kB / 278.3 MB, free: 11.84 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00151/0.0123, allocations: 0.5717 MB / 278.9 MB, free: 11.26 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008702/0.01317, allocations: 409.8 kB / 279.3 MB, free: 10.86 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007052/0.01387, allocations: 287.3 kB / 279.6 MB, free: 10.58 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001228/0.0151, allocations: 1.009 MB / 280.6 MB, free: 9.566 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003935/0.0155, allocations: 209 kB / 280.8 MB, free: 9.363 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007474/0.01624, allocations: 0.5535 MB / 281.3 MB, free: 8.809 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000671/0.01691, allocations: 459 kB / 281.8 MB, free: 8.359 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001426/0.01706, allocations: 80 kB / 281.9 MB, free: 8.281 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002802/0.01734, allocations: 139.8 kB / 282 MB, free: 8.145 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004594/0.0178, allocations: 482.7 kB / 282.5 MB, free: 7.672 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004959/0.01829, allocations: 390.8 kB / 282.8 MB, free: 7.289 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002044/0.02034, allocations: 1.733 MB / 284.6 MB, free: 5.551 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.02034, allocations: 0 / 284.6 MB, free: 5.551 MB / 266.7 MB Notification: Performance of FrontEnd: time 3.887e-06/0.02034, allocations: 4 kB / 284.6 MB, free: 5.547 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.046e-05/0.02036, allocations: 0 / 284.6 MB, free: 5.547 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.003849/0.02421, allocations: 2.034 MB / 286.6 MB, free: 3.461 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.546e-05/0.02426, allocations: 12.03 kB / 286.6 MB, free: 3.449 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003712/0.02463, allocations: 207.9 kB / 286.8 MB, free: 3.246 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001879/0.02651, allocations: 0.8703 MB / 287.7 MB, free: 2.34 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001947/0.0267, allocations: 174.1 kB / 287.9 MB, free: 2.141 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000127/0.02683, allocations: 60.31 kB / 287.9 MB, free: 2.082 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001555/0.02839, allocations: 1.055 MB / 289 MB, free: 0.8828 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.027e-05/0.02841, allocations: 3.984 kB / 289 MB, free: 0.8789 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.21e-05/0.02847, allocations: 24 kB / 289 MB, free: 0.8555 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.503e-05/0.02848, allocations: 12 kB / 289 MB, free: 0.8438 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008456/0.02933, allocations: 399.7 kB / 289.4 MB, free: 460 kB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1262/0.1555, allocations: 3.047 MB / 292.5 MB, free: 26.34 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008511/0.1564, allocations: 376.2 kB / 292.8 MB, free: 26.2 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006011/0.157, allocations: 288.3 kB / 293.1 MB, free: 26.11 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.742e-05/0.157, allocations: 5.875 kB / 293.1 MB, free: 26.11 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.211e-05/0.157, allocations: 43.52 kB / 293.2 MB, free: 26.07 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 2.976e-06/0.157, allocations: 0.7031 kB / 293.2 MB, free: 26.07 MB / 266.7 MB Notification: Performance of matching and sorting (n=30): time 0.001609/0.1586, allocations: 0.6447 MB / 293.8 MB, free: 25.86 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.719e-05/0.1587, allocations: 269.9 kB / 294.1 MB, free: 25.54 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002332/0.161, allocations: 1.863 MB / 295.9 MB, free: 24.78 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.446e-05/0.1611, allocations: 33.42 kB / 296 MB, free: 24.75 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005817/0.1617, allocations: 0.8498 MB / 296.8 MB, free: 24.13 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.577e-05/0.1617, allocations: 117.4 kB / 296.9 MB, free: 24.05 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001387/0.1619, allocations: 93.55 kB / 297 MB, free: 23.99 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.11e-05/0.162, allocations: 0.5054 MB / 297.5 MB, free: 23.5 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002875/0.1622, allocations: 140.4 kB / 297.7 MB, free: 23.45 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003844/0.1626, allocations: 0.5398 MB / 298.2 MB, free: 22.92 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005925/0.1632, allocations: 412.9 kB / 298.6 MB, free: 22.68 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.1632, allocations: 1.156 kB / 298.6 MB, free: 22.68 MB / 266.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001196/0.1644, allocations: 0.6157 MB / 299.2 MB, free: 22.42 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.849e-05/0.1644, allocations: 6.031 kB / 299.2 MB, free: 22.42 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.1644, allocations: 2.953 kB / 299.2 MB, free: 22.42 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003064/0.1647, allocations: 66.19 kB / 299.3 MB, free: 22.39 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003824/0.1651, allocations: 90.39 kB / 299.4 MB, free: 22.39 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001373/0.1665, allocations: 2.241 MB / 301.6 MB, free: 20.28 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004246/0.1669, allocations: 46.17 kB / 301.7 MB, free: 20.27 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.882e-05/0.167, allocations: 11.05 kB / 301.7 MB, free: 20.27 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.0003011/0.1673, allocations: 271 kB / 301.9 MB, free: 20.05 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001714/0.1674, allocations: 155.5 kB / 302.1 MB, free: 19.96 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001806/0.1676, allocations: 124.8 kB / 302.2 MB, free: 19.89 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.1676, allocations: 4.875 kB / 302.2 MB, free: 19.89 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.097e-06/0.1676, allocations: 1.125 kB / 302.2 MB, free: 19.89 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.1676, allocations: 3.984 kB / 302.2 MB, free: 19.89 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002832/0.1705, allocations: 1.739 MB / 304 MB, free: 19.01 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/0.1705, allocations: 1.25 kB / 304 MB, free: 19.01 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003653/0.1708, allocations: 69.17 kB / 304 MB, free: 19 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001924/0.171, allocations: 56.73 kB / 304.1 MB, free: 18.98 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.551e-05/0.1711, allocations: 15.92 kB / 304.1 MB, free: 18.97 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001244/0.1723, allocations: 2.187 MB / 306.3 MB, free: 16.88 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.1723, allocations: 5.469 kB / 306.3 MB, free: 16.87 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001217/0.1735, allocations: 0.816 MB / 307.1 MB, free: 16.4 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006312/0.1741, allocations: 241 kB / 307.3 MB, free: 16.28 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001201/0.1743, allocations: 9.281 kB / 307.4 MB, free: 16.28 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004193/0.1747, allocations: 34.78 kB / 307.4 MB, free: 16.27 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001125/0.1748, allocations: 33.42 kB / 307.4 MB, free: 16.27 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.39e-05/0.1748, allocations: 11.62 kB / 307.4 MB, free: 16.26 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001398/0.1762, allocations: 1.086 MB / 308.5 MB, free: 15.86 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1762, allocations: 0 / 308.5 MB, free: 15.86 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006898/0.1769, allocations: 208.2 kB / 308.7 MB, free: 15.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.003304/0.1802, allocations: 0.4971 MB / 309.2 MB, free: 15.68 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008862/0.1811, allocations: 0.5389 MB / 309.8 MB, free: 15.39 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.1811, allocations: 1.188 kB / 309.8 MB, free: 15.39 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004334/0.1815, allocations: 362.1 kB / 310.1 MB, free: 15.14 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008132/0.1824, allocations: 197.6 kB / 310.3 MB, free: 15.05 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0026/0.185, allocations: 2.2 MB / 312.5 MB, free: 12.82 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000479/0.1854, allocations: 0.6251 MB / 313.1 MB, free: 12.17 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002996/0.1857, allocations: 143.5 kB / 313.3 MB, free: 12.02 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001677/0.1859, allocations: 68.48 kB / 313.3 MB, free: 11.96 MB / 266.7 MB Notification: Performance of SimCode: time 1.272e-06/0.1859, allocations: 0 / 313.3 MB, free: 11.96 MB / 266.7 MB Notification: Performance of Templates: time 0.02157/0.2075, allocations: 13.99 MB / 327.3 MB, free: 14.14 MB / 282.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.12623363500461]