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.00121/0.00121, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001807/0.003017, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.001057/0.001057, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001075/0.002132, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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 0.9652/0.9652, allocations: 177.2 MB / 189.6 MB, free: 5.316 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09345/1.059, allocations: 53.65 MB / 243.3 MB, free: 15.59 MB / 250.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.353e-06/1.353e-06, allocations: 0 / 244.5 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.204e-05/2.34e-05, allocations: 2.312 kB / 244.5 MB, free: 14.34 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.004922/0.004945, allocations: 4.015 MB / 248.5 MB, free: 10.3 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002543/0.007489, allocations: 2.083 MB / 250.6 MB, free: 8.207 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002895/0.007778, allocations: 19.88 kB / 250.6 MB, free: 8.188 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009434/0.008721, allocations: 0.6106 MB / 251.2 MB, free: 7.574 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005687/0.00929, allocations: 397.8 kB / 251.6 MB, free: 7.184 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004999/0.00979, allocations: 287.4 kB / 251.9 MB, free: 6.902 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001012/0.0108, allocations: 1.001 MB / 252.9 MB, free: 5.898 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003236/0.01113, allocations: 226.9 kB / 253.1 MB, free: 5.668 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007364/0.01186, allocations: 0.6422 MB / 253.8 MB, free: 5.023 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005081/0.01237, allocations: 427 kB / 254.2 MB, free: 4.605 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 9.666e-05/0.01247, allocations: 80 kB / 254.3 MB, free: 4.527 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002502/0.01272, allocations: 135.9 kB / 254.4 MB, free: 4.395 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002555/0.01297, allocations: 442.8 kB / 254.8 MB, free: 3.961 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002613/0.01323, allocations: 303.1 kB / 255.1 MB, free: 3.664 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008593/0.01409, allocations: 1.039 MB / 256.2 MB, free: 2.621 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.687e-05/0.01411, allocations: 0 / 256.2 MB, free: 2.621 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.684e-06/0.01411, allocations: 0 / 256.2 MB, free: 2.621 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.857e-05/0.01415, allocations: 0 / 256.2 MB, free: 2.621 MB / 250.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.001905/0.01606, allocations: 1.892 MB / 258.1 MB, free: 0.6953 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.13e-05/0.01609, allocations: 12.03 kB / 258.1 MB, free: 0.6836 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001622/0.01625, allocations: 136.8 kB / 258.2 MB, free: 0.5508 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007568/0.01701, allocations: 0.6647 MB / 258.9 MB, free: 15.85 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001131/0.01712, allocations: 174.1 kB / 259 MB, free: 15.65 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.802e-05/0.01718, allocations: 56.38 kB / 259.1 MB, free: 15.59 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005659/0.01774, allocations: 0.8193 MB / 259.9 MB, free: 14.64 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.324e-05/0.01776, allocations: 3.984 kB / 259.9 MB, free: 14.64 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.152e-05/0.01779, allocations: 24 kB / 259.9 MB, free: 14.61 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.048e-05/0.0178, allocations: 12 kB / 260 MB, free: 14.6 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001667/0.01796, allocations: 122.9 kB / 260.1 MB, free: 14.48 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001828/0.01979, allocations: 1.621 MB / 261.7 MB, free: 12.8 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003552/0.02015, allocations: 216.8 kB / 261.9 MB, free: 12.58 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002232/0.02037, allocations: 164.7 kB / 262.1 MB, free: 12.42 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.27e-05/0.02039, allocations: 7.938 kB / 262.1 MB, free: 12.41 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.814e-05/0.02042, allocations: 46.55 kB / 262.1 MB, free: 12.36 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 1.563e-06/0.02042, allocations: 0 / 262.1 MB, free: 12.36 MB / 266.7 MB Notification: Performance of matching and sorting (n=30): time 0.0006316/0.02106, allocations: 331.4 kB / 262.4 MB, free: 12.02 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.749e-05/0.02109, allocations: 59.41 kB / 262.5 MB, free: 11.95 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001015/0.02211, allocations: 1.344 MB / 263.8 MB, free: 10.59 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.515e-05/0.02213, allocations: 33.7 kB / 263.9 MB, free: 10.55 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001878/0.02232, allocations: 385.5 kB / 264.3 MB, free: 10.16 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.012e-05/0.02238, allocations: 119 kB / 264.4 MB, free: 10.05 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.19e-05/0.02246, allocations: 74.05 kB / 264.4 MB, free: 9.969 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.027e-05/0.02254, allocations: 321.9 kB / 264.8 MB, free: 9.648 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.17e-05/0.02259, allocations: 32.73 kB / 264.8 MB, free: 9.617 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001779/0.02277, allocations: 389 kB / 265.2 MB, free: 9.133 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001773/0.02295, allocations: 198.7 kB / 265.4 MB, free: 8.906 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.02295, allocations: 0 / 265.4 MB, free: 8.906 MB / 266.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003752/0.02333, allocations: 297.9 kB / 265.7 MB, free: 8.605 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.99e-05/0.02335, allocations: 7.984 kB / 265.7 MB, free: 8.598 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.02336, allocations: 4 kB / 265.7 MB, free: 8.594 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001536/0.02351, allocations: 36.84 kB / 265.7 MB, free: 8.555 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000281/0.02379, allocations: 116 kB / 265.8 MB, free: 8.441 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008209/0.02461, allocations: 1.43 MB / 267.2 MB, free: 6.926 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001845/0.0248, allocations: 43.77 kB / 267.3 MB, free: 6.883 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.752e-05/0.02481, allocations: 12 kB / 267.3 MB, free: 6.871 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.0001786/0.02499, allocations: 148.5 kB / 267.4 MB, free: 6.715 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.631e-05/0.02508, allocations: 83.89 kB / 267.5 MB, free: 6.633 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001028/0.02518, allocations: 121.3 kB / 267.6 MB, free: 6.508 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.726e-06/0.02518, allocations: 4 kB / 267.6 MB, free: 6.504 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.605e-06/0.02519, allocations: 0 / 267.6 MB, free: 6.504 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.02519, allocations: 3.938 kB / 267.7 MB, free: 6.5 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009236/0.02611, allocations: 0.8031 MB / 268.5 MB, free: 5.656 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.564e-06/0.02612, allocations: 0 / 268.5 MB, free: 5.656 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002123/0.02633, allocations: 92.45 kB / 268.5 MB, free: 5.566 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002057/0.02653, allocations: 167 kB / 268.7 MB, free: 5.402 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.752e-05/0.02662, allocations: 36.91 kB / 268.7 MB, free: 5.363 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.854e-05/0.02664, allocations: 8 kB / 268.8 MB, free: 5.355 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006567/0.0273, allocations: 1.395 MB / 270.1 MB, free: 3.879 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.0273, allocations: 7.938 kB / 270.2 MB, free: 3.871 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003843/0.02768, allocations: 417.9 kB / 270.6 MB, free: 3.438 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.478e-05/0.02775, allocations: 8 kB / 270.6 MB, free: 3.43 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001687/0.02792, allocations: 35.97 kB / 270.6 MB, free: 3.395 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.032e-05/0.02797, allocations: 32.17 kB / 270.6 MB, free: 3.363 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.426e-05/0.02798, allocations: 8 kB / 270.6 MB, free: 3.355 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0005279/0.02851, allocations: 0.7252 MB / 271.4 MB, free: 2.625 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02851, allocations: 0 / 271.4 MB, free: 2.625 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003996/0.02891, allocations: 211.6 kB / 271.6 MB, free: 2.418 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.00134/0.03025, allocations: 0.6325 MB / 272.2 MB, free: 2.098 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003472/0.0306, allocations: 290.4 kB / 272.5 MB, free: 1.801 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.911e-05/0.03062, allocations: 20.56 kB / 272.5 MB, free: 1.781 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001626/0.03078, allocations: 223.5 kB / 272.7 MB, free: 1.547 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004764/0.03126, allocations: 261.6 kB / 273 MB, free: 1.297 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09857/0.1298, allocations: 2.079 MB / 275.1 MB, free: 20.55 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002791/0.1301, allocations: 296.1 kB / 275.4 MB, free: 20.48 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003845/0.1305, allocations: 119.1 kB / 275.5 MB, free: 20.46 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000391/0.1309, allocations: 254.6 kB / 275.7 MB, free: 20.42 MB / 266.7 MB Notification: Performance of SimCode: time 1.873e-06/0.1309, allocations: 0 / 275.7 MB, free: 20.42 MB / 266.7 MB Notification: Performance of Templates: time 0.02102/0.1519, allocations: 15.54 MB / 291.3 MB, free: 15.02 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 -ignoreHideResult -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.085874466225505]