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.001038/0.001038, allocations: 72.08 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.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.00102/0.00102, allocations: 142.1 kB / 24.97 MB, free: 8.316 MB / 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 0.9921/0.9921, allocations: 173.3 MB / 201.5 MB, free: 9.316 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 1.663e-06/1.663e-06, allocations: 3.938 kB / 268.1 MB, free: 6.734 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.702e-05/2.868e-05, allocations: 2.312 kB / 268.1 MB, free: 6.73 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.01107/0.01109, allocations: 3.95 MB / 272 MB, free: 2.758 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.009034/0.02013, allocations: 1.87 MB / 273.9 MB, free: 0.8789 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004248/0.02055, allocations: 15.88 kB / 273.9 MB, free: 0.8633 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001378/0.02193, allocations: 0.5756 MB / 274.5 MB, free: 292 kB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002135/0.02406, allocations: 370 kB / 274.8 MB, free: 15.92 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008025/0.02487, allocations: 291.3 kB / 275.1 MB, free: 15.64 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009087/0.02578, allocations: 1.005 MB / 276.1 MB, free: 14.63 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003275/0.0261, allocations: 217 kB / 276.3 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005079/0.02661, allocations: 0.5379 MB / 276.9 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004872/0.0271, allocations: 467 kB / 277.3 MB, free: 13.42 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001051/0.0272, allocations: 76 kB / 277.4 MB, free: 13.34 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002906/0.02749, allocations: 131.9 kB / 277.5 MB, free: 13.21 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003771/0.02787, allocations: 486.6 kB / 278 MB, free: 12.74 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004518/0.02832, allocations: 390.8 kB / 278.4 MB, free: 12.36 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001567/0.02989, allocations: 1.074 MB / 279.5 MB, free: 11.28 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.02989, allocations: 0 / 279.5 MB, free: 11.28 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.475e-06/0.0299, allocations: 8 kB / 279.5 MB, free: 11.27 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.309e-05/0.02992, allocations: 0 / 279.5 MB, free: 11.27 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.002851/0.03277, allocations: 1.933 MB / 281.4 MB, free: 9.285 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.394e-05/0.03282, allocations: 11.97 kB / 281.4 MB, free: 9.273 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000303/0.03312, allocations: 211.9 kB / 281.6 MB, free: 9.066 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001494/0.03461, allocations: 0.8427 MB / 282.5 MB, free: 8.188 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001323/0.03474, allocations: 174.1 kB / 282.6 MB, free: 7.988 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.434e-05/0.03483, allocations: 56.38 kB / 282.7 MB, free: 7.934 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009303/0.03576, allocations: 0.8526 MB / 283.5 MB, free: 6.93 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.484e-05/0.03577, allocations: 0 / 283.5 MB, free: 6.93 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.542e-05/0.03583, allocations: 28 kB / 283.6 MB, free: 6.902 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.62e-05/0.03585, allocations: 12 kB / 283.6 MB, free: 6.891 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004237/0.03627, allocations: 181.8 kB / 283.8 MB, free: 6.711 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002597/0.03887, allocations: 2.551 MB / 286.3 MB, free: 4.066 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004513/0.03932, allocations: 259.1 kB / 286.6 MB, free: 3.801 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003014/0.03962, allocations: 191.5 kB / 286.7 MB, free: 3.609 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.34e-05/0.03964, allocations: 8 kB / 286.8 MB, free: 3.602 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.63e-05/0.03967, allocations: 45.33 kB / 286.8 MB, free: 3.547 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 1.293e-06/0.03967, allocations: 0 / 286.8 MB, free: 3.547 MB / 266.7 MB Notification: Performance of matching and sorting (n=30): time 0.0007721/0.04044, allocations: 468.7 kB / 287.3 MB, free: 3.078 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001121/0.04055, allocations: 269 kB / 287.5 MB, free: 2.754 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001384/0.04194, allocations: 1.631 MB / 289.1 MB, free: 1.09 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.51e-05/0.04196, allocations: 33.7 kB / 289.2 MB, free: 1.051 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004745/0.04244, allocations: 0.7918 MB / 290 MB, free: 256 kB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.876e-05/0.0425, allocations: 115.1 kB / 290.1 MB, free: 140 kB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.736e-05/0.04258, allocations: 83.67 kB / 290.2 MB, free: 44 kB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.1149/0.1575, allocations: 0.4926 MB / 290.7 MB, free: 31.25 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002418/0.1578, allocations: 52.42 kB / 290.7 MB, free: 31.25 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002275/0.158, allocations: 441.3 kB / 291.1 MB, free: 30.78 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002777/0.1583, allocations: 247.6 kB / 291.4 MB, free: 30.66 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.499e-06/0.1583, allocations: 1.5 kB / 291.4 MB, free: 30.66 MB / 266.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001014/0.1593, allocations: 447.6 kB / 291.8 MB, free: 30.61 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.26e-05/0.1593, allocations: 9.125 kB / 291.8 MB, free: 30.61 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.806e-06/0.1593, allocations: 1.469 kB / 291.8 MB, free: 30.61 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002371/0.1595, allocations: 45.8 kB / 291.9 MB, free: 30.59 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002371/0.1598, allocations: 91.48 kB / 292 MB, free: 30.59 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001006/0.1608, allocations: 2.108 MB / 294.1 MB, free: 28.64 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003066/0.1611, allocations: 53.95 kB / 294.1 MB, free: 28.64 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.236e-05/0.1611, allocations: 11.09 kB / 294.1 MB, free: 28.64 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.00023/0.1613, allocations: 183.3 kB / 294.3 MB, free: 28.48 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001397/0.1615, allocations: 150.1 kB / 294.5 MB, free: 28.44 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001098/0.1616, allocations: 122.9 kB / 294.6 MB, free: 28.42 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.1616, allocations: 4.062 kB / 294.6 MB, free: 28.42 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.845e-06/0.1616, allocations: 0 / 294.6 MB, free: 28.42 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.1616, allocations: 1.969 kB / 294.6 MB, free: 28.42 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003403/0.165, allocations: 1.419 MB / 296 MB, free: 28.05 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.165, allocations: 2.281 kB / 296 MB, free: 28.05 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003059/0.1653, allocations: 65.45 kB / 296.1 MB, free: 28.05 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001565/0.1655, allocations: 39.84 kB / 296.1 MB, free: 28.04 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.674e-05/0.1655, allocations: 16.14 kB / 296.1 MB, free: 28.04 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001108/0.1666, allocations: 2.074 MB / 298.2 MB, free: 26.07 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.1666, allocations: 5.031 kB / 298.2 MB, free: 26.07 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006603/0.1673, allocations: 0.5901 MB / 298.8 MB, free: 25.76 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002744/0.1676, allocations: 239.6 kB / 299 MB, free: 25.68 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.44e-05/0.1676, allocations: 11.84 kB / 299 MB, free: 25.68 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002216/0.1679, allocations: 40.41 kB / 299.1 MB, free: 25.68 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.539e-05/0.168, allocations: 28.86 kB / 299.1 MB, free: 25.68 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.863e-05/0.168, allocations: 11.73 kB / 299.1 MB, free: 25.68 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001074/0.169, allocations: 0.9372 MB / 300.1 MB, free: 25.42 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.169, allocations: 0 / 300.1 MB, free: 25.42 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005646/0.1696, allocations: 211.6 kB / 300.3 MB, free: 25.39 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.0009111/0.1705, allocations: 443.3 kB / 300.7 MB, free: 25.25 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005197/0.171, allocations: 390.7 kB / 301.1 MB, free: 25.02 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/0.171, allocations: 5 kB / 301.1 MB, free: 25.01 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002029/0.1712, allocations: 282.1 kB / 301.4 MB, free: 24.81 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005624/0.1718, allocations: 202.9 kB / 301.6 MB, free: 24.71 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002459/0.1743, allocations: 2.114 MB / 303.7 MB, free: 23.61 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002509/0.1745, allocations: 309.9 kB / 304 MB, free: 23.49 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002862/0.1748, allocations: 142.5 kB / 304.1 MB, free: 23.46 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001347/0.1749, allocations: 67.97 kB / 304.2 MB, free: 23.46 MB / 266.7 MB Notification: Performance of SimCode: time 9.32e-07/0.1749, allocations: 0 / 304.2 MB, free: 23.46 MB / 266.7 MB Notification: Performance of Templates: time 0.01673/0.1917, allocations: 14 MB / 318.2 MB, free: 12.7 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.2596766278147697]