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.001247/0.001247, allocations: 82.19 kB / 20.68 MB, free: 1.039 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.0014/0.0014, allocations: 163.5 kB / 23.95 MB, free: 4.168 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 1.51/1.51, allocations: 177.1 MB / 204.3 MB, free: 9.172 MB / 190.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 1.443e-06/1.443e-06, allocations: 0 / 325 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.272e-05/2.416e-05, allocations: 7.594 kB / 325.1 MB, free: 0.543 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.005614/0.005638, allocations: 3.704 MB / 328.8 MB, free: 14.08 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003614/0.009252, allocations: 1.948 MB / 330.7 MB, free: 12.77 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004706/0.009723, allocations: 18 kB / 330.7 MB, free: 12.76 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001511/0.01123, allocations: 0.5718 MB / 331.3 MB, free: 12.56 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000973/0.01221, allocations: 403.7 kB / 331.7 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007544/0.01296, allocations: 295.7 kB / 332 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001525/0.01449, allocations: 1.016 MB / 333 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005346/0.01502, allocations: 214 kB / 333.2 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009023/0.01592, allocations: 0.5409 MB / 333.7 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007283/0.01665, allocations: 444 kB / 334.2 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001239/0.01677, allocations: 80.62 kB / 334.3 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003236/0.0171, allocations: 138.1 kB / 334.4 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004464/0.01754, allocations: 487.1 kB / 334.9 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00047/0.01801, allocations: 383.7 kB / 335.2 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001849/0.01986, allocations: 1.727 MB / 337 MB, free: 9.004 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.603e-06/0.01987, allocations: 3.984 kB / 337 MB, free: 9 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.01987, allocations: 0 / 337 MB, free: 9 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.487e-05/0.0199, allocations: 1.562 kB / 337 MB, free: 9 MB / 302.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.003118/0.02301, allocations: 1.785 MB / 338.8 MB, free: 7.398 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.232e-05/0.02306, allocations: 16.03 kB / 338.8 MB, free: 7.383 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002533/0.02331, allocations: 167.9 kB / 338.9 MB, free: 7.219 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001825/0.02513, allocations: 1.137 MB / 340.1 MB, free: 6.047 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001687/0.0253, allocations: 174.1 kB / 340.2 MB, free: 5.848 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.58e-05/0.0254, allocations: 48.38 kB / 340.3 MB, free: 5.801 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001412/0.02681, allocations: 1.015 MB / 341.3 MB, free: 4.656 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.61e-05/0.02683, allocations: 4 kB / 341.3 MB, free: 4.652 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.131e-05/0.02689, allocations: 27.94 kB / 341.3 MB, free: 4.625 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.443e-05/0.0269, allocations: 12 kB / 341.4 MB, free: 4.613 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000852/0.02775, allocations: 431.7 kB / 341.8 MB, free: 4.188 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004347/0.0321, allocations: 2.514 MB / 344.3 MB, free: 1.59 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001007/0.03311, allocations: 406.4 kB / 344.7 MB, free: 1.184 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006688/0.03378, allocations: 296.5 kB / 345 MB, free: 0.8906 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.697e-05/0.0338, allocations: 4 kB / 345 MB, free: 0.8867 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.493e-05/0.03384, allocations: 42.56 kB / 345 MB, free: 0.8359 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 2.074e-06/0.03384, allocations: 4 kB / 345 MB, free: 0.832 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.001961/0.0358, allocations: 0.6968 MB / 345.7 MB, free: 128 kB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001987/0.036, allocations: 265 kB / 346 MB, free: 15.8 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003032/0.03903, allocations: 2.21 MB / 348.2 MB, free: 13.58 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.354e-05/0.0391, allocations: 33.7 kB / 348.2 MB, free: 13.54 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006497/0.03975, allocations: 0.6627 MB / 348.9 MB, free: 12.87 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001022/0.03985, allocations: 114.9 kB / 349 MB, free: 12.75 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001512/0.04, allocations: 78.06 kB / 349.1 MB, free: 12.67 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001612/0.04016, allocations: 326 kB / 349.4 MB, free: 12.34 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000354/0.04052, allocations: 152.7 kB / 349.5 MB, free: 12.2 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006051/0.04112, allocations: 0.4982 MB / 350 MB, free: 11.59 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007544/0.04188, allocations: 399.8 kB / 350.4 MB, free: 11.17 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-06/0.04188, allocations: 4 kB / 350.4 MB, free: 11.17 MB / 318.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001491/0.04337, allocations: 0.6453 MB / 351.1 MB, free: 10.51 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.754e-05/0.04339, allocations: 4 kB / 351.1 MB, free: 10.51 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.687e-06/0.0434, allocations: 7.938 kB / 351.1 MB, free: 10.5 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003058/0.0437, allocations: 68.94 kB / 351.2 MB, free: 10.43 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003923/0.04409, allocations: 87.88 kB / 351.2 MB, free: 10.34 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00194/0.04603, allocations: 1.633 MB / 352.9 MB, free: 8.613 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005355/0.04657, allocations: 51.75 kB / 352.9 MB, free: 8.562 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.058e-05/0.0466, allocations: 12 kB / 352.9 MB, free: 8.551 MB / 318.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.0008051/0.04741, allocations: 489.5 kB / 353.4 MB, free: 8.062 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002181/0.04762, allocations: 143 kB / 353.6 MB, free: 7.922 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002244/0.04785, allocations: 161.4 kB / 353.7 MB, free: 7.762 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.569e-06/0.04785, allocations: 8.094 kB / 353.7 MB, free: 7.754 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.419e-05/0.04787, allocations: 4 kB / 353.7 MB, free: 7.75 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.04787, allocations: 0 / 353.7 MB, free: 7.75 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002748/0.05062, allocations: 1.424 MB / 355.2 MB, free: 6.277 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.05062, allocations: 0 / 355.2 MB, free: 6.277 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003474/0.05097, allocations: 67.95 kB / 355.2 MB, free: 6.211 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001947/0.05116, allocations: 60.83 kB / 355.3 MB, free: 6.148 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.001e-05/0.0512, allocations: 11.98 kB / 355.3 MB, free: 6.137 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001715/0.05292, allocations: 1.582 MB / 356.9 MB, free: 4.449 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.05292, allocations: 0 / 356.9 MB, free: 4.449 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001678/0.0546, allocations: 0.8038 MB / 357.7 MB, free: 3.621 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005634/0.05516, allocations: 255 kB / 357.9 MB, free: 3.371 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001241/0.05529, allocations: 8 kB / 357.9 MB, free: 3.363 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004973/0.05578, allocations: 52.08 kB / 358 MB, free: 3.312 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000101/0.05588, allocations: 31.95 kB / 358 MB, free: 3.281 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.225e-05/0.05592, allocations: 19.86 kB / 358 MB, free: 3.262 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002385/0.0583, allocations: 1.579 MB / 359.6 MB, free: 1.684 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.0583, allocations: 0 / 359.6 MB, free: 1.684 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008192/0.05912, allocations: 215.5 kB / 359.8 MB, free: 1.473 MB / 318.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.001884/0.061, allocations: 0.4944 MB / 360.3 MB, free: 1.184 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001289/0.06229, allocations: 498.2 kB / 360.8 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.0623, allocations: 0 / 360.8 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005786/0.06288, allocations: 303.2 kB / 361.1 MB, free: 384 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001053/0.06393, allocations: 188.1 kB / 361.3 MB, free: 200 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004819/0.06875, allocations: 2.584 MB / 363.9 MB, free: 13.57 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008088/0.06956, allocations: 0.668 MB / 364.5 MB, free: 12.87 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0005863/0.07014, allocations: 207.5 kB / 364.7 MB, free: 12.66 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002091/0.07035, allocations: 68.5 kB / 364.8 MB, free: 12.59 MB / 334.1 MB Notification: Performance of SimCode: time 1.342e-06/0.07035, allocations: 0 / 364.8 MB, free: 12.59 MB / 334.1 MB Notification: Performance of Templates: time 0.02812/0.09848, allocations: 13.96 MB / 378.8 MB, free: 14.79 MB / 350.1 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=480 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCVcharging/CCCVcharging.csv","/var/lib/jenkins/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: 4.915284242480993]