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.0008799/0.0008799, allocations: 85.91 kB / 21.43 MB, free: 3.07 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.001012/0.001012, allocations: 166.6 kB / 24.82 MB, free: 8.938 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 0.9764/0.9764, allocations: 177 MB / 205.1 MB, free: 5.477 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 1.994e-06/1.994e-06, allocations: 0 / 273.3 MB, free: 1.254 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.074e-05/2.273e-05, allocations: 5.266 kB / 273.3 MB, free: 1.25 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.004047/0.004069, allocations: 3.946 MB / 277.3 MB, free: 13.28 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002667/0.006737, allocations: 2.013 MB / 279.3 MB, free: 11.25 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003015/0.007038, allocations: 15.94 kB / 279.3 MB, free: 11.24 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001099/0.008137, allocations: 0.5717 MB / 279.9 MB, free: 10.66 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005969/0.008734, allocations: 409.8 kB / 280.3 MB, free: 10.26 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000514/0.009248, allocations: 295.3 kB / 280.5 MB, free: 9.973 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009181/0.01017, allocations: 1.005 MB / 281.5 MB, free: 8.965 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002897/0.01046, allocations: 213 kB / 281.8 MB, free: 8.758 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005298/0.01099, allocations: 0.5418 MB / 282.3 MB, free: 8.215 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004568/0.01144, allocations: 451 kB / 282.7 MB, free: 7.773 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.454e-05/0.01154, allocations: 80 kB / 282.8 MB, free: 7.695 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002032/0.01174, allocations: 139.9 kB / 283 MB, free: 7.559 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002341/0.01197, allocations: 482.6 kB / 283.4 MB, free: 7.086 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002661/0.01224, allocations: 390.8 kB / 283.8 MB, free: 6.703 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008386/0.01308, allocations: 1.086 MB / 284.9 MB, free: 5.613 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.144e-06/0.01308, allocations: 4 kB / 284.9 MB, free: 5.609 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.11e-07/0.01308, allocations: 0 / 284.9 MB, free: 5.609 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.427e-05/0.0131, allocations: 0 / 284.9 MB, free: 5.609 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.00168/0.01478, allocations: 1.913 MB / 286.8 MB, free: 3.645 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.34e-05/0.01481, allocations: 15.98 kB / 286.8 MB, free: 3.629 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001862/0.015, allocations: 207.9 kB / 287 MB, free: 3.426 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007122/0.01571, allocations: 0.7765 MB / 287.8 MB, free: 2.613 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.905e-05/0.01581, allocations: 174.1 kB / 288 MB, free: 2.414 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.035e-05/0.01587, allocations: 60.31 kB / 288 MB, free: 2.355 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005895/0.01646, allocations: 0.8294 MB / 288.9 MB, free: 1.375 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.196e-05/0.01647, allocations: 192 / 288.9 MB, free: 1.375 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.216e-05/0.0165, allocations: 24.12 kB / 288.9 MB, free: 1.352 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.308e-06/0.01651, allocations: 16 kB / 288.9 MB, free: 1.336 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001806/0.01669, allocations: 138.8 kB / 289 MB, free: 1.199 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.12/0.1367, allocations: 2.208 MB / 291.2 MB, free: 22.95 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004782/0.1372, allocations: 235.1 kB / 291.5 MB, free: 22.91 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003182/0.1375, allocations: 180 kB / 291.7 MB, free: 22.9 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.532e-05/0.1375, allocations: 6.406 kB / 291.7 MB, free: 22.9 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.772e-05/0.1376, allocations: 42 kB / 291.7 MB, free: 22.86 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 3.096e-06/0.1376, allocations: 0 / 291.7 MB, free: 22.86 MB / 266.7 MB Notification: Performance of matching and sorting (n=30): time 0.0009193/0.1385, allocations: 433.9 kB / 292.1 MB, free: 22.81 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.3e-05/0.1385, allocations: 263.5 kB / 292.4 MB, free: 22.5 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001662/0.1402, allocations: 1.541 MB / 293.9 MB, free: 22.25 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.497e-05/0.1402, allocations: 37.36 kB / 294 MB, free: 22.22 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004478/0.1407, allocations: 0.799 MB / 294.8 MB, free: 22.04 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.005e-05/0.1408, allocations: 114.5 kB / 294.9 MB, free: 21.98 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.707e-05/0.1409, allocations: 87.62 kB / 295 MB, free: 21.95 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.423e-05/0.1409, allocations: 0.4995 MB / 295.5 MB, free: 21.47 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.307e-05/0.141, allocations: 40.8 kB / 295.5 MB, free: 21.47 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001588/0.1411, allocations: 431.8 kB / 295.9 MB, free: 21.01 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002053/0.1414, allocations: 231.2 kB / 296.1 MB, free: 20.88 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.1414, allocations: 1.062 kB / 296.1 MB, free: 20.88 MB / 266.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005739/0.1419, allocations: 410.5 kB / 296.5 MB, free: 20.76 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/0.1419, allocations: 6.453 kB / 296.5 MB, free: 20.76 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.142, allocations: 2.406 kB / 296.6 MB, free: 20.76 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001586/0.1421, allocations: 56.89 kB / 296.6 MB, free: 20.75 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002067/0.1423, allocations: 79.19 kB / 296.7 MB, free: 20.75 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008548/0.1432, allocations: 2.082 MB / 298.8 MB, free: 18.82 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002632/0.1434, allocations: 46.28 kB / 298.8 MB, free: 18.8 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.82e-05/0.1435, allocations: 10.62 kB / 298.8 MB, free: 18.8 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.0001736/0.1436, allocations: 184.1 kB / 299 MB, free: 18.64 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001265/0.1438, allocations: 146.1 kB / 299.1 MB, free: 18.57 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000121/0.1439, allocations: 121.9 kB / 299.3 MB, free: 18.55 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.74e-06/0.1439, allocations: 7.406 kB / 299.3 MB, free: 18.54 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.1439, allocations: 3.875 kB / 299.3 MB, free: 18.54 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.581e-06/0.1439, allocations: 2.891 kB / 299.3 MB, free: 18.54 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001389/0.1453, allocations: 1.101 MB / 300.4 MB, free: 18.22 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.1453, allocations: 1.125 kB / 300.4 MB, free: 18.22 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001675/0.1455, allocations: 63.72 kB / 300.4 MB, free: 18.22 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001006/0.1456, allocations: 47.48 kB / 300.5 MB, free: 18.21 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.171e-05/0.1456, allocations: 8.141 kB / 300.5 MB, free: 18.21 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007158/0.1463, allocations: 2.044 MB / 302.5 MB, free: 16.27 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.1463, allocations: 0.6094 kB / 302.5 MB, free: 16.27 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000615/0.1469, allocations: 0.5734 MB / 303.1 MB, free: 15.92 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002324/0.1471, allocations: 203.4 kB / 303.3 MB, free: 15.8 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.178e-05/0.1472, allocations: 17.22 kB / 303.3 MB, free: 15.79 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001969/0.1474, allocations: 32.72 kB / 303.4 MB, free: 15.79 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.234e-05/0.1475, allocations: 32.72 kB / 303.4 MB, free: 15.78 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.814e-05/0.1475, allocations: 10.39 kB / 303.4 MB, free: 15.78 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0008637/0.1484, allocations: 0.8602 MB / 304.3 MB, free: 15.54 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1484, allocations: 1.219 kB / 304.3 MB, free: 15.54 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005773/0.149, allocations: 205.3 kB / 304.5 MB, free: 15.52 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.001041/0.15, allocations: 442.9 kB / 304.9 MB, free: 15.38 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005956/0.1506, allocations: 364.3 kB / 305.3 MB, free: 15.18 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.179e-06/0.1506, allocations: 8.938 kB / 305.3 MB, free: 15.18 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001917/0.1508, allocations: 270.5 kB / 305.5 MB, free: 14.98 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007135/0.1515, allocations: 196.9 kB / 305.7 MB, free: 14.89 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002754/0.1543, allocations: 2.109 MB / 307.8 MB, free: 13.8 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002728/0.1545, allocations: 309.5 kB / 308.1 MB, free: 13.68 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003004/0.1548, allocations: 123.8 kB / 308.3 MB, free: 13.66 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004259/0.1553, allocations: 286.2 kB / 308.5 MB, free: 13.59 MB / 266.7 MB Notification: Performance of SimCode: time 1.854e-06/0.1553, allocations: 3.719 kB / 308.5 MB, free: 13.59 MB / 266.7 MB Notification: Performance of Templates: time 0.01567/0.1709, allocations: 14.84 MB / 323.4 MB, free: 1.336 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 -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.093277855310589]