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.001638/0.001638, allocations: 111 kB / 21.18 MB, free: 0.6758 MB / 14.72 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.001953/0.001953, allocations: 209.2 kB / 24.47 MB, free: 3.977 MB / 14.72 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 2.041/2.041, allocations: 230.6 MB / 258.2 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] 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.1..v|battery.capacitor.2..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.1..v|battery.capacitor.2..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 0.001803/0.001803, allocations: 39.94 kB / 378.9 MB, free: 2.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3686/0.3704, allocations: 53.36 MB / 432.3 MB, free: 6.742 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.01809/0.3885, allocations: 3.716 MB / 436 MB, free: 3.02 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003711/0.3922, allocations: 1.944 MB / 438 MB, free: 1.066 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002692/0.3925, allocations: 15.88 kB / 438 MB, free: 1.051 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01028/0.4028, allocations: 0.5717 MB / 438.6 MB, free: 492 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000936/0.4037, allocations: 390 kB / 438.9 MB, free: 100 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007415/0.4044, allocations: 297.9 kB / 439.2 MB, free: 15.81 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001357/0.4058, allocations: 0.9847 MB / 440.2 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005298/0.4063, allocations: 229 kB / 440.4 MB, free: 14.6 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004699/0.4068, allocations: 394.8 kB / 440.8 MB, free: 14.21 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007171/0.4075, allocations: 0.5139 MB / 441.3 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001394/0.4076, allocations: 80 kB / 441.4 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002952/0.4079, allocations: 131.9 kB / 441.5 MB, free: 13.49 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000408/0.4083, allocations: 486.6 kB / 442 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005466/0.4089, allocations: 497 kB / 442.5 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002214/0.4111, allocations: 1.778 MB / 444.3 MB, free: 10.74 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.4111, allocations: 4 kB / 444.3 MB, free: 10.73 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.4111, allocations: 0 / 444.3 MB, free: 10.73 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.299e-05/0.4111, allocations: 0 / 444.3 MB, free: 10.73 MB / 350.1 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.003807/0.4149, allocations: 1.8 MB / 446.1 MB, free: 8.891 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.678e-05/0.415, allocations: 8.031 kB / 446.1 MB, free: 8.883 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003015/0.4153, allocations: 167.9 kB / 446.3 MB, free: 8.719 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002409/0.4177, allocations: 1.138 MB / 447.4 MB, free: 7.547 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001809/0.4179, allocations: 174.1 kB / 447.6 MB, free: 7.348 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001125/0.418, allocations: 55.89 kB / 447.6 MB, free: 7.293 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001813/0.4198, allocations: 1.007 MB / 448.6 MB, free: 6.156 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.936e-05/0.4198, allocations: 4 kB / 448.6 MB, free: 6.152 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.09e-05/0.4199, allocations: 27.94 kB / 448.7 MB, free: 6.125 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.907e-05/0.4199, allocations: 12 kB / 448.7 MB, free: 6.113 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001138/0.421, allocations: 431.7 kB / 449.1 MB, free: 5.688 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005259/0.4263, allocations: 2.529 MB / 451.6 MB, free: 3.078 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001414/0.4277, allocations: 401.3 kB / 452 MB, free: 2.68 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009027/0.4286, allocations: 288.7 kB / 452.3 MB, free: 2.395 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.572e-05/0.4286, allocations: 4 kB / 452.3 MB, free: 2.391 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.847e-05/0.4287, allocations: 42.5 kB / 452.3 MB, free: 2.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 2.164e-06/0.4287, allocations: 0 / 452.3 MB, free: 2.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.00229/0.431, allocations: 0.6969 MB / 453 MB, free: 1.633 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001723/0.4312, allocations: 265 kB / 453.3 MB, free: 1.312 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003866/0.435, allocations: 2.214 MB / 455.5 MB, free: 15.08 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.522e-05/0.4351, allocations: 33.7 kB / 455.5 MB, free: 15.04 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007605/0.4358, allocations: 0.6588 MB / 456.2 MB, free: 14.38 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001145/0.436, allocations: 111.1 kB / 456.3 MB, free: 14.27 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001738/0.4361, allocations: 78.06 kB / 456.4 MB, free: 14.18 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001696/0.4363, allocations: 318 kB / 456.7 MB, free: 13.87 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004552/0.4368, allocations: 164.6 kB / 456.9 MB, free: 13.71 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000706/0.4375, allocations: 0.4982 MB / 457.4 MB, free: 13.11 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009465/0.4384, allocations: 396.6 kB / 457.7 MB, free: 12.69 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.695e-06/0.4384, allocations: 7.984 kB / 457.7 MB, free: 12.68 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001728/0.4401, allocations: 0.6528 MB / 458.4 MB, free: 12.02 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.826e-05/0.4402, allocations: 4 kB / 458.4 MB, free: 12.01 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.538e-06/0.4402, allocations: 4 kB / 458.4 MB, free: 12.01 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003501/0.4405, allocations: 64.75 kB / 458.5 MB, free: 11.94 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000509/0.441, allocations: 92.02 kB / 458.6 MB, free: 11.85 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002164/0.4432, allocations: 1.629 MB / 460.2 MB, free: 10.12 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005556/0.4438, allocations: 59.78 kB / 460.3 MB, free: 10.06 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.614e-05/0.4438, allocations: 12 kB / 460.3 MB, free: 10.05 MB / 366.1 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.0007853/0.4446, allocations: 493.4 kB / 460.7 MB, free: 9.559 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002547/0.4448, allocations: 135.1 kB / 460.9 MB, free: 9.426 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002815/0.4451, allocations: 161.3 kB / 461 MB, free: 9.262 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-06/0.4451, allocations: 4 kB / 461 MB, free: 9.258 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.4451, allocations: 3.938 kB / 461 MB, free: 9.254 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.4451, allocations: 0 / 461 MB, free: 9.254 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003646/0.4488, allocations: 1.428 MB / 462.5 MB, free: 7.773 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.4488, allocations: 0 / 462.5 MB, free: 7.773 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004635/0.4492, allocations: 76.02 kB / 462.5 MB, free: 7.699 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002281/0.4495, allocations: 56.81 kB / 462.6 MB, free: 7.641 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.197e-05/0.4495, allocations: 8 kB / 462.6 MB, free: 7.633 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001976/0.4515, allocations: 1.59 MB / 464.2 MB, free: 5.938 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.4515, allocations: 3.938 kB / 464.2 MB, free: 5.934 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001944/0.4534, allocations: 0.8028 MB / 465 MB, free: 5.105 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008066/0.4542, allocations: 255 kB / 465.3 MB, free: 4.855 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001573/0.4544, allocations: 8 kB / 465.3 MB, free: 4.848 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006234/0.455, allocations: 43.95 kB / 465.3 MB, free: 4.805 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000104/0.4551, allocations: 39.88 kB / 465.3 MB, free: 4.766 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.127e-05/0.4551, allocations: 12 kB / 465.4 MB, free: 4.754 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002713/0.4579, allocations: 1.583 MB / 466.9 MB, free: 3.172 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4579, allocations: 0 / 466.9 MB, free: 3.172 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009196/0.4588, allocations: 211.6 kB / 467.1 MB, free: 2.965 MB / 366.1 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.002128/0.4609, allocations: 0.4957 MB / 467.6 MB, free: 2.68 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001325/0.4622, allocations: 498.5 kB / 468.1 MB, free: 2.18 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.948e-06/0.4622, allocations: 0 / 468.1 MB, free: 2.18 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000687/0.4629, allocations: 298.5 kB / 468.4 MB, free: 1.875 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001143/0.4641, allocations: 190.4 kB / 468.6 MB, free: 1.695 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005376/0.4694, allocations: 2.672 MB / 471.3 MB, free: 14.98 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001021/0.4705, allocations: 0.6642 MB / 471.9 MB, free: 14.29 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006126/0.4711, allocations: 207.5 kB / 472.1 MB, free: 14.09 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002579/0.4713, allocations: 75.36 kB / 472.2 MB, free: 14.01 MB / 382.1 MB Notification: Performance of SimCode: time 6.62e-07/0.4713, allocations: 0 / 472.2 MB, free: 14.01 MB / 382.1 MB Notification: Performance of Templates: time 0.03611/0.5074, allocations: 15.35 MB / 487.6 MB, free: 14.81 MB / 398.1 MB " [Timeout remaining time 659] 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=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCVcharging/CCCVcharging.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.365640901000006]