Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001617/0.001617, allocations: 88.86 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00167/0.00167, allocations: 160.9 kB / 24.91 MB, free: 8.719 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.009/1.009, allocations: 177 MB / 205.2 MB, free: 5.055 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.116e-06/3.116e-06, allocations: 3.984 kB / 273.4 MB, free: 1.051 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.34e-05/2.652e-05, allocations: 5.266 kB / 273.4 MB, free: 1.047 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.005045/0.005071, allocations: 3.988 MB / 277.4 MB, free: 13.03 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003604/0.008676, allocations: 2.067 MB / 279.5 MB, free: 10.95 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004089/0.009084, allocations: 15.94 kB / 279.5 MB, free: 10.94 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001307/0.01039, allocations: 0.6302 MB / 280.1 MB, free: 10.3 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007396/0.01113, allocations: 409.8 kB / 280.5 MB, free: 9.902 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006344/0.01177, allocations: 291.2 kB / 280.8 MB, free: 9.617 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009118/0.01268, allocations: 1.013 MB / 281.8 MB, free: 8.605 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003239/0.013, allocations: 219 kB / 282 MB, free: 8.387 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006174/0.01362, allocations: 0.5418 MB / 282.6 MB, free: 7.844 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004137/0.01403, allocations: 419 kB / 283 MB, free: 7.434 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001033/0.01414, allocations: 84 kB / 283.1 MB, free: 7.352 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000209/0.01434, allocations: 139.9 kB / 283.2 MB, free: 7.215 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000258/0.0146, allocations: 490.6 kB / 283.7 MB, free: 6.734 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002679/0.01487, allocations: 382.9 kB / 284 MB, free: 6.359 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009537/0.01582, allocations: 1.082 MB / 285.1 MB, free: 5.273 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.01583, allocations: 0 / 285.1 MB, free: 5.273 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.01583, allocations: 0 / 285.1 MB, free: 5.273 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.952e-05/0.01585, allocations: 3.938 kB / 285.1 MB, free: 5.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.001648/0.0175, allocations: 1.658 MB / 286.8 MB, free: 3.574 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.039e-05/0.01754, allocations: 11.98 kB / 286.8 MB, free: 3.562 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001665/0.0177, allocations: 140.7 kB / 286.9 MB, free: 3.426 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007535/0.01846, allocations: 0.6723 MB / 287.6 MB, free: 2.719 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001251/0.01858, allocations: 174.1 kB / 287.8 MB, free: 2.52 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.89e-05/0.01864, allocations: 56.38 kB / 287.8 MB, free: 2.465 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000642/0.01928, allocations: 0.8118 MB / 288.7 MB, free: 1.516 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.309e-05/0.0193, allocations: 192 / 288.7 MB, free: 1.516 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.622e-05/0.01933, allocations: 28.12 kB / 288.7 MB, free: 1.488 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.027e-05/0.01934, allocations: 12 kB / 288.7 MB, free: 1.477 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001736/0.01952, allocations: 118.9 kB / 288.8 MB, free: 1.359 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1348/0.1543, allocations: 1.615 MB / 290.4 MB, free: 23.21 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004153/0.1548, allocations: 208.3 kB / 290.6 MB, free: 23.19 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002714/0.155, allocations: 164.6 kB / 290.8 MB, free: 23.18 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.508e-05/0.1551, allocations: 7.75 kB / 290.8 MB, free: 23.18 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.702e-05/0.1551, allocations: 39.98 kB / 290.8 MB, free: 23.14 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 4.258e-06/0.1551, allocations: 0 / 290.8 MB, free: 23.14 MB / 266.7 MB Notification: Performance of matching and sorting (n=30): time 0.0009103/0.156, allocations: 327.4 kB / 291.2 MB, free: 23.1 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.774e-05/0.1561, allocations: 262 kB / 291.4 MB, free: 22.79 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001624/0.1577, allocations: 1.344 MB / 292.8 MB, free: 22.61 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.493e-05/0.1577, allocations: 32.62 kB / 292.8 MB, free: 22.58 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002505/0.158, allocations: 392.7 kB / 293.2 MB, free: 22.49 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.687e-05/0.158, allocations: 112.5 kB / 293.3 MB, free: 22.46 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.031e-05/0.1581, allocations: 77.64 kB / 293.4 MB, free: 22.45 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 3.906e-05/0.1582, allocations: 326 kB / 293.7 MB, free: 22.14 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.818e-05/0.1582, allocations: 38.73 kB / 293.7 MB, free: 22.14 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001705/0.1584, allocations: 383.5 kB / 294.1 MB, free: 21.74 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001928/0.1586, allocations: 195.5 kB / 294.3 MB, free: 21.65 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.1586, allocations: 1.062 kB / 294.3 MB, free: 21.65 MB / 266.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0004872/0.1591, allocations: 300.5 kB / 294.6 MB, free: 21.61 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.075e-05/0.1591, allocations: 11.06 kB / 294.6 MB, free: 21.6 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.846e-06/0.1591, allocations: 4.984 kB / 294.6 MB, free: 21.6 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000166/0.1593, allocations: 41.34 kB / 294.6 MB, free: 21.59 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002933/0.1596, allocations: 110.9 kB / 294.7 MB, free: 21.59 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000808/0.1604, allocations: 1.425 MB / 296.2 MB, free: 20.32 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002226/0.1606, allocations: 49.08 kB / 296.2 MB, free: 20.31 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.114e-05/0.1606, allocations: 16.3 kB / 296.2 MB, free: 20.31 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.0001679/0.1608, allocations: 137.2 kB / 296.4 MB, free: 20.19 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001204/0.1609, allocations: 83.34 kB / 296.4 MB, free: 20.19 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001287/0.161, allocations: 121 kB / 296.6 MB, free: 20.17 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-06/0.1611, allocations: 3.875 kB / 296.6 MB, free: 20.17 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.307e-06/0.1611, allocations: 5.688 kB / 296.6 MB, free: 20.16 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.462e-06/0.1611, allocations: 1.172 kB / 296.6 MB, free: 20.16 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001082/0.1622, allocations: 0.8003 MB / 297.4 MB, free: 19.94 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.1622, allocations: 5.266 kB / 297.4 MB, free: 19.94 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002168/0.1624, allocations: 84.11 kB / 297.5 MB, free: 19.94 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.982e-05/0.1625, allocations: 32.56 kB / 297.5 MB, free: 19.93 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.222e-05/0.1625, allocations: 10.52 kB / 297.5 MB, free: 19.93 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005754/0.1631, allocations: 1.393 MB / 298.9 MB, free: 18.66 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.1631, allocations: 6.031 kB / 298.9 MB, free: 18.66 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004375/0.1635, allocations: 420 kB / 299.3 MB, free: 18.49 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00021/0.1637, allocations: 175.9 kB / 299.5 MB, free: 18.42 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.387e-05/0.1638, allocations: 12.17 kB / 299.5 MB, free: 18.41 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001831/0.164, allocations: 33.11 kB / 299.5 MB, free: 18.41 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.339e-05/0.1641, allocations: 35.34 kB / 299.6 MB, free: 18.41 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.481e-05/0.1641, allocations: 5.594 kB / 299.6 MB, free: 18.41 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000808/0.1649, allocations: 0.7289 MB / 300.3 MB, free: 18.36 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1649, allocations: 0 / 300.3 MB, free: 18.36 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005208/0.1654, allocations: 209.5 kB / 300.5 MB, free: 18.34 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.001244/0.1666, allocations: 0.5653 MB / 301.1 MB, free: 18.17 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004371/0.1671, allocations: 303.8 kB / 301.4 MB, free: 18.04 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.251e-05/0.1671, allocations: 15.88 kB / 301.4 MB, free: 18.04 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001746/0.1673, allocations: 205 kB / 301.6 MB, free: 17.92 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004758/0.1678, allocations: 189.8 kB / 301.8 MB, free: 17.9 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002548/0.1703, allocations: 2.062 MB / 303.8 MB, free: 16.96 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002514/0.1706, allocations: 298.5 kB / 304.1 MB, free: 16.88 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002792/0.1708, allocations: 120.5 kB / 304.2 MB, free: 16.86 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003877/0.1712, allocations: 248.6 kB / 304.5 MB, free: 16.81 MB / 266.7 MB Notification: Performance of SimCode: time 1.253e-06/0.1712, allocations: 0 / 304.5 MB, free: 16.81 MB / 266.7 MB Notification: Performance of Templates: time 0.01805/0.1893, allocations: 14.94 MB / 319.4 MB, free: 5.219 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.085445231758058]