Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008693/0.0008693, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001095/0.001964, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0006653/0.0006653, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009342/0.001599, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8415/0.8415, allocations: 173.4 MB / 186 MB, free: 7.539 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1554/0.9969, allocations: 52.49 MB / 238.5 MB, free: 7.637 MB / 234.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.522e-06/1.522e-06, allocations: 0 / 239.7 MB, free: 6.387 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.131e-05/1.283e-05, allocations: 2.312 kB / 239.7 MB, free: 6.383 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.003696/0.003709, allocations: 3.971 MB / 243.7 MB, free: 2.414 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002102/0.005811, allocations: 1.928 MB / 245.6 MB, free: 500 kB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002042/0.006015, allocations: 11.94 kB / 245.6 MB, free: 488 kB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008275/0.006842, allocations: 0.6106 MB / 246.3 MB, free: 15.87 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003798/0.007222, allocations: 358 kB / 246.6 MB, free: 15.52 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004123/0.007635, allocations: 297.1 kB / 246.9 MB, free: 15.23 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007551/0.00839, allocations: 0.9951 MB / 247.9 MB, free: 14.23 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002817/0.008671, allocations: 223 kB / 248.1 MB, free: 14 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000531/0.009202, allocations: 0.6499 MB / 248.8 MB, free: 13.35 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003834/0.009586, allocations: 423 kB / 249.2 MB, free: 12.94 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003363/0.009922, allocations: 76 kB / 249.2 MB, free: 12.86 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001656/0.01009, allocations: 136.6 kB / 249.4 MB, free: 12.73 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000211/0.0103, allocations: 434.8 kB / 249.8 MB, free: 12.3 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002138/0.01051, allocations: 303.8 kB / 250.1 MB, free: 12.01 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007343/0.01125, allocations: 1.041 MB / 251.1 MB, free: 10.96 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.254e-05/0.01126, allocations: 0 / 251.1 MB, free: 10.96 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.01e-07/0.01126, allocations: 0 / 251.1 MB, free: 10.96 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.382e-05/0.01128, allocations: 3.938 kB / 251.1 MB, free: 10.96 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.001636/0.01292, allocations: 1.866 MB / 253 MB, free: 9.066 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.81e-05/0.01295, allocations: 8.031 kB / 253 MB, free: 9.059 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001496/0.0131, allocations: 137.3 kB / 253.1 MB, free: 8.926 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006354/0.01373, allocations: 0.6707 MB / 253.8 MB, free: 8.223 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.833e-05/0.01383, allocations: 178.1 kB / 254 MB, free: 8.02 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.826e-05/0.01389, allocations: 56.38 kB / 254 MB, free: 7.965 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005181/0.01441, allocations: 0.8037 MB / 254.9 MB, free: 7.023 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.156e-05/0.01442, allocations: 0 / 254.9 MB, free: 7.023 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.047e-05/0.01445, allocations: 27.98 kB / 254.9 MB, free: 6.996 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.979e-06/0.01446, allocations: 12 kB / 254.9 MB, free: 6.984 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001621/0.01462, allocations: 122.9 kB / 255 MB, free: 6.863 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00183/0.01645, allocations: 1.629 MB / 256.6 MB, free: 5.172 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002959/0.01675, allocations: 210.8 kB / 256.8 MB, free: 4.957 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000206/0.01695, allocations: 172.7 kB / 257 MB, free: 4.785 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.809e-05/0.01697, allocations: 4 kB / 257 MB, free: 4.781 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.283e-05/0.01699, allocations: 38.56 kB / 257.1 MB, free: 4.734 MB / 250.7 MB Notification: Performance of pre-optimization done (n=30): time 1.412e-06/0.017, allocations: 0 / 257.1 MB, free: 4.734 MB / 250.7 MB Notification: Performance of matching and sorting (n=30): time 0.0005312/0.01753, allocations: 326.7 kB / 257.4 MB, free: 4.406 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.506e-05/0.01755, allocations: 59.41 kB / 257.4 MB, free: 4.336 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008962/0.01845, allocations: 1.328 MB / 258.8 MB, free: 2.984 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.621e-05/0.01847, allocations: 37.7 kB / 258.8 MB, free: 2.941 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001876/0.01866, allocations: 389.4 kB / 259.2 MB, free: 2.551 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.411e-05/0.01872, allocations: 111 kB / 259.3 MB, free: 2.441 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.081e-05/0.0188, allocations: 81.98 kB / 259.4 MB, free: 2.352 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.218e-05/0.01887, allocations: 325.9 kB / 259.7 MB, free: 2.027 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.101e-05/0.01892, allocations: 32.73 kB / 259.7 MB, free: 1.996 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001627/0.01908, allocations: 381 kB / 260.1 MB, free: 1.52 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001647/0.01925, allocations: 200.7 kB / 260.3 MB, free: 1.289 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.01925, allocations: 0 / 260.3 MB, free: 1.289 MB / 250.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003641/0.01961, allocations: 309.7 kB / 260.6 MB, free: 0.9766 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.406e-05/0.01963, allocations: 8 kB / 260.6 MB, free: 0.9688 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.01963, allocations: 0 / 260.6 MB, free: 0.9688 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001335/0.01977, allocations: 44.83 kB / 260.6 MB, free: 0.9219 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002523/0.02002, allocations: 116 kB / 260.8 MB, free: 0.8086 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000781/0.0208, allocations: 1.433 MB / 262.2 MB, free: 15.29 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001724/0.02097, allocations: 43.8 kB / 262.2 MB, free: 15.25 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.655e-05/0.02099, allocations: 15.98 kB / 262.2 MB, free: 15.23 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.0001391/0.02113, allocations: 144.5 kB / 262.4 MB, free: 15.08 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.964e-05/0.02121, allocations: 79.91 kB / 262.5 MB, free: 15 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.315e-05/0.0213, allocations: 121.2 kB / 262.6 MB, free: 14.88 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.372e-06/0.0213, allocations: 0 / 262.6 MB, free: 14.88 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.124e-06/0.0213, allocations: 4 kB / 262.6 MB, free: 14.87 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.02131, allocations: 3.984 kB / 262.6 MB, free: 14.87 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001082/0.02239, allocations: 0.7953 MB / 263.4 MB, free: 14.04 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.953e-06/0.02239, allocations: 0 / 263.4 MB, free: 14.04 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000211/0.0226, allocations: 99.06 kB / 263.5 MB, free: 13.94 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001831/0.02279, allocations: 171 kB / 263.6 MB, free: 13.77 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.753e-05/0.02286, allocations: 32.83 kB / 263.7 MB, free: 13.74 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.838e-05/0.02288, allocations: 15.98 kB / 263.7 MB, free: 13.72 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006355/0.02352, allocations: 1.394 MB / 265.1 MB, free: 12.25 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/0.02352, allocations: 11.92 kB / 265.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003689/0.02389, allocations: 419.1 kB / 265.5 MB, free: 11.8 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.836e-05/0.02395, allocations: 8 kB / 265.5 MB, free: 11.79 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001708/0.02412, allocations: 36.03 kB / 265.6 MB, free: 11.76 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.301e-05/0.02417, allocations: 28.19 kB / 265.6 MB, free: 11.73 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.226e-05/0.02419, allocations: 8.125 kB / 265.6 MB, free: 11.72 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0005217/0.02471, allocations: 0.7208 MB / 266.3 MB, free: 11 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02471, allocations: 3.938 kB / 266.3 MB, free: 10.99 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003588/0.02507, allocations: 207.6 kB / 266.5 MB, free: 10.79 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.001237/0.0263, allocations: 0.6405 MB / 267.2 MB, free: 10.46 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000341/0.02664, allocations: 303.7 kB / 267.5 MB, free: 10.15 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.649e-05/0.02666, allocations: 16 kB / 267.5 MB, free: 10.14 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001755/0.02684, allocations: 231.3 kB / 267.7 MB, free: 9.895 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008302/0.02767, allocations: 1.452 MB / 269.1 MB, free: 8.195 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004995/0.03266, allocations: 2.075 MB / 271.2 MB, free: 6.066 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001931/0.03285, allocations: 302.7 kB / 271.5 MB, free: 5.75 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001896/0.03304, allocations: 119.8 kB / 271.6 MB, free: 5.629 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003565/0.0334, allocations: 261.2 kB / 271.9 MB, free: 5.375 MB / 266.7 MB Notification: Performance of SimCode: time 6.81e-07/0.0334, allocations: 0 / 271.9 MB, free: 5.375 MB / 266.7 MB Notification: Performance of Templates: time 0.0169/0.0503, allocations: 15.73 MB / 287.6 MB, free: 5.852 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCVcharging/CCCVcharging.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7700535422191024]