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.001047/0.001047, 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.001459/0.001459, allocations: 145.1 kB / 24.54 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 1.026/1.026, allocations: 173.3 MB / 201.1 MB, free: 9.336 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 2.364e-06/2.364e-06, allocations: 0 / 268 MB, free: 6.457 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.725e-05/3.961e-05, allocations: 6.25 kB / 268 MB, free: 6.449 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.004903/0.004942, allocations: 3.966 MB / 271.9 MB, free: 2.461 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002977/0.00792, allocations: 1.874 MB / 273.8 MB, free: 0.5781 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005391/0.008459, allocations: 15.88 kB / 273.8 MB, free: 0.5625 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001305/0.009764, allocations: 0.5757 MB / 274.4 MB, free: 15.98 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007512/0.01052, allocations: 365.9 kB / 274.8 MB, free: 15.62 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007241/0.01124, allocations: 287.3 kB / 275 MB, free: 15.34 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001276/0.01252, allocations: 1.001 MB / 276 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003996/0.01291, allocations: 217 kB / 276.3 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008182/0.01373, allocations: 0.5457 MB / 276.8 MB, free: 13.58 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007547/0.01449, allocations: 467 kB / 277.3 MB, free: 13.12 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001159/0.0146, allocations: 80 kB / 277.3 MB, free: 13.04 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003141/0.01492, allocations: 127.9 kB / 277.5 MB, free: 12.92 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003628/0.01528, allocations: 482.6 kB / 277.9 MB, free: 12.45 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004993/0.01578, allocations: 390.8 kB / 278.3 MB, free: 12.06 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001493/0.01727, allocations: 1.078 MB / 279.4 MB, free: 10.98 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.01728, allocations: 0 / 279.4 MB, free: 10.98 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.01728, allocations: 0 / 279.4 MB, free: 10.98 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.374e-05/0.01735, allocations: 0 / 279.4 MB, free: 10.98 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.002749/0.0201, allocations: 1.941 MB / 281.3 MB, free: 8.988 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.533e-05/0.02015, allocations: 12.03 kB / 281.3 MB, free: 8.977 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003733/0.02052, allocations: 207.9 kB / 281.5 MB, free: 8.773 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001312/0.02183, allocations: 0.8466 MB / 282.4 MB, free: 7.891 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001419/0.02197, allocations: 170.1 kB / 282.6 MB, free: 7.695 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.353e-05/0.02205, allocations: 52.38 kB / 282.6 MB, free: 7.645 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008211/0.02287, allocations: 0.8566 MB / 283.5 MB, free: 6.637 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.671e-05/0.02289, allocations: 3.984 kB / 283.5 MB, free: 6.633 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.932e-05/0.02292, allocations: 24 kB / 283.5 MB, free: 6.609 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.396e-05/0.02294, allocations: 12 kB / 283.5 MB, free: 6.598 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003167/0.02326, allocations: 185.8 kB / 283.7 MB, free: 6.414 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002951/0.02621, allocations: 2.547 MB / 286.2 MB, free: 3.773 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004523/0.02666, allocations: 255.2 kB / 286.5 MB, free: 3.512 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003231/0.02698, allocations: 201.1 kB / 286.7 MB, free: 3.312 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.968e-05/0.02701, allocations: 11.94 kB / 286.7 MB, free: 3.301 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.546e-05/0.02705, allocations: 41.39 kB / 286.7 MB, free: 3.25 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 1.783e-06/0.02705, allocations: 0 / 286.7 MB, free: 3.25 MB / 266.7 MB Notification: Performance of matching and sorting (n=30): time 0.00108/0.02813, allocations: 460.7 kB / 287.2 MB, free: 2.789 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001176/0.02825, allocations: 265 kB / 287.4 MB, free: 2.469 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002086/0.03033, allocations: 1.635 MB / 289.1 MB, free: 0.8008 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.105e-05/0.03036, allocations: 33.7 kB / 289.1 MB, free: 0.7617 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.1366/0.1669, allocations: 0.7924 MB / 289.9 MB, free: 27.76 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002015/0.1671, allocations: 113.3 kB / 290 MB, free: 27.76 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000154/0.1673, allocations: 84.66 kB / 290.1 MB, free: 27.73 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.292e-05/0.1674, allocations: 0.4912 MB / 290.6 MB, free: 27.25 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001688/0.1675, allocations: 53.95 kB / 290.6 MB, free: 27.25 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002583/0.1678, allocations: 447.5 kB / 291.1 MB, free: 26.79 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003082/0.1681, allocations: 246.8 kB / 291.3 MB, free: 26.66 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.74e-06/0.1681, allocations: 2.219 kB / 291.3 MB, free: 26.66 MB / 266.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001214/0.1693, allocations: 447.3 kB / 291.8 MB, free: 26.57 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.869e-05/0.1694, allocations: 9.438 kB / 291.8 MB, free: 26.57 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.067e-05/0.1694, allocations: 4.312 kB / 291.8 MB, free: 26.57 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002897/0.1697, allocations: 49.45 kB / 291.8 MB, free: 26.56 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002481/0.1699, allocations: 87.45 kB / 291.9 MB, free: 26.56 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001118/0.171, allocations: 2.109 MB / 294 MB, free: 24.6 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003609/0.1714, allocations: 42.66 kB / 294.1 MB, free: 24.59 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.373e-05/0.1714, allocations: 16 kB / 294.1 MB, free: 24.59 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.000257/0.1717, allocations: 185 kB / 294.2 MB, free: 24.43 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001621/0.1718, allocations: 149.8 kB / 294.4 MB, free: 24.35 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001426/0.172, allocations: 122.6 kB / 294.5 MB, free: 24.33 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.965e-06/0.172, allocations: 2.156 kB / 294.5 MB, free: 24.33 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.536e-06/0.172, allocations: 3.969 kB / 294.5 MB, free: 24.33 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.172, allocations: 1.547 kB / 294.5 MB, free: 24.33 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002003/0.174, allocations: 1.423 MB / 295.9 MB, free: 23.97 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.174, allocations: 3 kB / 295.9 MB, free: 23.97 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002439/0.1742, allocations: 69.47 kB / 296 MB, free: 23.97 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001345/0.1744, allocations: 44.72 kB / 296.1 MB, free: 23.96 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.033e-05/0.1744, allocations: 8.953 kB / 296.1 MB, free: 23.96 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000924/0.1753, allocations: 2.069 MB / 298.1 MB, free: 22.01 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/0.1753, allocations: 2.125 kB / 298.1 MB, free: 22.01 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008048/0.1761, allocations: 0.6005 MB / 298.7 MB, free: 21.69 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004128/0.1765, allocations: 239.7 kB / 299 MB, free: 21.62 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001175/0.1767, allocations: 9.859 kB / 299 MB, free: 21.62 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002887/0.1769, allocations: 42.34 kB / 299 MB, free: 21.61 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001067/0.1771, allocations: 26.94 kB / 299.1 MB, free: 21.61 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.199e-05/0.1771, allocations: 11.19 kB / 299.1 MB, free: 21.61 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.00148/0.1786, allocations: 0.9368 MB / 300 MB, free: 21.46 MB / 266.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1786, allocations: 0 / 300 MB, free: 21.46 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007958/0.1794, allocations: 207.4 kB / 300.2 MB, free: 21.45 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.001218/0.1806, allocations: 434.8 kB / 300.6 MB, free: 21.3 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000662/0.1812, allocations: 394 kB / 301 MB, free: 21.11 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.588e-06/0.1812, allocations: 1.219 kB / 301 MB, free: 21.11 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002847/0.1815, allocations: 287.7 kB / 301.3 MB, free: 20.93 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007373/0.1823, allocations: 200.4 kB / 301.5 MB, free: 20.9 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003344/0.1856, allocations: 2.119 MB / 303.6 MB, free: 19.92 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000357/0.186, allocations: 303.6 kB / 303.9 MB, free: 19.84 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0004044/0.1864, allocations: 139.8 kB / 304 MB, free: 19.82 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001936/0.1866, allocations: 76.55 kB / 304.1 MB, free: 19.81 MB / 266.7 MB Notification: Performance of SimCode: time 1.052e-06/0.1866, allocations: 0 / 304.1 MB, free: 19.81 MB / 266.7 MB Notification: Performance of Templates: time 0.02156/0.2081, allocations: 14.02 MB / 318.1 MB, free: 10.2 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.5228738971054554]