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.001187/0.001187, allocations: 78.66 kB / 21.42 MB, free: 3.074 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.001153/0.001153, allocations: 166 kB / 24.82 MB, free: 9.266 MB / 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.067/1.067, allocations: 177.1 MB / 205.3 MB, free: 5.469 MB / 186.7 MB " [Timeout remaining time 179] 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.[0-9,]+..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.[0-9,]+..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.693e-06/1.693e-06, allocations: 0 / 273.4 MB, free: 1.281 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.806e-05/2.976e-05, allocations: 6.312 kB / 273.4 MB, free: 1.273 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.004424/0.004454, allocations: 3.938 MB / 277.3 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002089/0.006543, allocations: 2.01 MB / 279.3 MB, free: 11.3 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002031/0.006746, allocations: 15.88 kB / 279.3 MB, free: 11.28 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001344/0.008089, allocations: 0.5717 MB / 279.9 MB, free: 10.71 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004413/0.00853, allocations: 401.8 kB / 280.3 MB, free: 10.31 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003878/0.008918, allocations: 299.2 kB / 280.6 MB, free: 10.02 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006916/0.00961, allocations: 1.009 MB / 281.6 MB, free: 9.008 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002802/0.00989, allocations: 217 kB / 281.8 MB, free: 8.797 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004068/0.0103, allocations: 0.538 MB / 282.4 MB, free: 8.258 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003881/0.01068, allocations: 451 kB / 282.8 MB, free: 7.816 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.633e-05/0.01076, allocations: 76 kB / 282.9 MB, free: 7.742 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001555/0.01092, allocations: 143.9 kB / 283 MB, free: 7.602 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002309/0.01115, allocations: 486.6 kB / 283.5 MB, free: 7.125 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000237/0.01138, allocations: 382.9 kB / 283.9 MB, free: 6.75 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007396/0.01212, allocations: 1.09 MB / 285 MB, free: 5.656 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.344e-06/0.01213, allocations: 3.938 kB / 285 MB, free: 5.652 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.91e-07/0.01213, allocations: 0 / 285 MB, free: 5.652 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.275e-06/0.01214, allocations: 0 / 285 MB, free: 5.652 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.001845/0.01398, allocations: 1.917 MB / 286.9 MB, free: 3.684 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.925e-05/0.01401, allocations: 12.03 kB / 286.9 MB, free: 3.672 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001645/0.01417, allocations: 211.9 kB / 287.1 MB, free: 3.465 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006417/0.01482, allocations: 0.7726 MB / 287.9 MB, free: 2.656 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.934e-05/0.01491, allocations: 174.1 kB / 288 MB, free: 2.457 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.517e-05/0.01497, allocations: 60.33 kB / 288.1 MB, free: 2.398 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005283/0.0155, allocations: 0.833 MB / 288.9 MB, free: 1.418 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.029e-05/0.01551, allocations: 4 kB / 288.9 MB, free: 1.414 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.881e-05/0.01554, allocations: 20 kB / 288.9 MB, free: 1.395 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.708e-06/0.01555, allocations: 12 kB / 289 MB, free: 1.383 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001798/0.01573, allocations: 138.8 kB / 289.1 MB, free: 1.246 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1411/0.1568, allocations: 2.207 MB / 291.3 MB, free: 23.02 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006014/0.1574, allocations: 235.3 kB / 291.5 MB, free: 22.99 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004157/0.1578, allocations: 175.5 kB / 291.7 MB, free: 22.98 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.32e-05/0.1579, allocations: 6.094 kB / 291.7 MB, free: 22.98 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.428e-05/0.1579, allocations: 46.5 kB / 291.8 MB, free: 22.93 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 3.286e-06/0.1579, allocations: 0.5312 kB / 291.8 MB, free: 22.93 MB / 266.7 MB Notification: Performance of matching and sorting (n=30): time 0.001354/0.1593, allocations: 433.9 kB / 292.2 MB, free: 22.88 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.419e-05/0.1593, allocations: 266.9 kB / 292.4 MB, free: 22.57 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002721/0.1621, allocations: 1.548 MB / 294 MB, free: 22.32 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.253e-05/0.1621, allocations: 31.44 kB / 294 MB, free: 22.29 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007064/0.1628, allocations: 0.7979 MB / 294.8 MB, free: 22.12 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.646e-05/0.1629, allocations: 114.5 kB / 294.9 MB, free: 22.06 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001268/0.163, allocations: 87.77 kB / 295 MB, free: 22.03 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.082e-05/0.1631, allocations: 0.4949 MB / 295.5 MB, free: 21.55 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001021/0.1632, allocations: 42.45 kB / 295.6 MB, free: 21.55 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00023/0.1635, allocations: 434.6 kB / 296 MB, free: 21.08 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002657/0.1637, allocations: 224.3 kB / 296.2 MB, free: 20.96 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.1637, allocations: 0 / 296.2 MB, free: 20.96 MB / 266.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007978/0.1645, allocations: 415.2 kB / 296.6 MB, free: 20.83 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.189e-05/0.1645, allocations: 6.516 kB / 296.6 MB, free: 20.83 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.357e-06/0.1646, allocations: 3.062 kB / 296.6 MB, free: 20.83 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001841/0.1647, allocations: 48.83 kB / 296.7 MB, free: 20.82 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002606/0.165, allocations: 91.44 kB / 296.7 MB, free: 20.82 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001106/0.1661, allocations: 2.079 MB / 298.8 MB, free: 18.89 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003564/0.1665, allocations: 49.03 kB / 298.9 MB, free: 18.88 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.338e-05/0.1665, allocations: 13.61 kB / 298.9 MB, free: 18.88 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 (battery.limIntegrator.local_reset,energy.local_reset,cccvCharger.CV) * 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.0002434/0.1667, allocations: 179.3 kB / 299.1 MB, free: 18.72 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002116/0.1669, allocations: 146 kB / 299.2 MB, free: 18.64 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001842/0.1671, allocations: 132.5 kB / 299.3 MB, free: 18.62 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.1671, allocations: 2.688 kB / 299.3 MB, free: 18.62 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.653e-06/0.1671, allocations: 4.484 kB / 299.3 MB, free: 18.62 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.1671, allocations: 2.438 kB / 299.3 MB, free: 18.62 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001732/0.1689, allocations: 1.097 MB / 300.4 MB, free: 18.29 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.649e-06/0.1689, allocations: 2.047 kB / 300.4 MB, free: 18.29 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001779/0.1691, allocations: 65.78 kB / 300.5 MB, free: 18.29 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001097/0.1692, allocations: 36.31 kB / 300.5 MB, free: 18.28 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.421e-05/0.1692, allocations: 11.86 kB / 300.6 MB, free: 18.28 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007309/0.1699, allocations: 2.054 MB / 302.6 MB, free: 16.34 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.1699, allocations: 1.469 kB / 302.6 MB, free: 16.34 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006026/0.1705, allocations: 0.5633 MB / 303.2 MB, free: 15.99 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002426/0.1708, allocations: 204.3 kB / 303.4 MB, free: 15.87 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.192e-05/0.1709, allocations: 17.92 kB / 303.4 MB, free: 15.86 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001905/0.171, allocations: 35.41 kB / 303.4 MB, free: 15.86 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.085e-05/0.1711, allocations: 32.19 kB / 303.5 MB, free: 15.85 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.63e-05/0.1711, allocations: 11.28 kB / 303.5 MB, free: 15.85 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000917/0.172, allocations: 0.8573 MB / 304.3 MB, free: 15.61 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.172, allocations: 0 / 304.3 MB, free: 15.61 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005629/0.1726, allocations: 208.3 kB / 304.5 MB, free: 15.59 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.0009899/0.1736, allocations: 448.5 kB / 305 MB, free: 15.45 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004406/0.174, allocations: 366.8 kB / 305.3 MB, free: 15.24 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.174, allocations: 2.375 kB / 305.3 MB, free: 15.24 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001934/0.1742, allocations: 273.9 kB / 305.6 MB, free: 15.05 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007869/0.175, allocations: 199.7 kB / 305.8 MB, free: 14.97 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003188/0.1782, allocations: 2.103 MB / 307.9 MB, free: 13.88 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003098/0.1785, allocations: 307.2 kB / 308.2 MB, free: 13.77 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003008/0.1788, allocations: 124.3 kB / 308.3 MB, free: 13.74 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003899/0.1792, allocations: 289.1 kB / 308.6 MB, free: 13.67 MB / 266.7 MB Notification: Performance of SimCode: time 8.81e-07/0.1792, allocations: 0 / 308.6 MB, free: 13.67 MB / 266.7 MB Notification: Performance of Templates: time 0.01775/0.197, allocations: 14.83 MB / 323.4 MB, free: 1.461 MB / 266.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","",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.1720140650868416]