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.001156/0.001156, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001676/0.002832, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 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.001038/0.001038, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00137/0.002408, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 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.9377/0.9377, allocations: 177.5 MB / 190 MB, free: 4.812 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09248/1.03, allocations: 53.88 MB / 243.9 MB, free: 14.86 MB / 250.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.433e-06/1.433e-06, allocations: 0 / 245.2 MB, free: 13.59 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.287e-05/2.431e-05, allocations: 2.312 kB / 245.2 MB, free: 13.59 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.009319/0.009343, allocations: 4.015 MB / 249.2 MB, free: 9.551 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002832/0.01218, allocations: 2.09 MB / 251.3 MB, free: 7.449 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003291/0.01547, allocations: 15.88 kB / 251.3 MB, free: 7.434 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001147/0.01661, allocations: 0.6106 MB / 251.9 MB, free: 6.82 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006577/0.01727, allocations: 397.8 kB / 252.3 MB, free: 6.43 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006259/0.0179, allocations: 291.3 kB / 252.6 MB, free: 6.145 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.004058/0.02195, allocations: 1.005 MB / 253.6 MB, free: 5.137 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003408/0.0223, allocations: 230.9 kB / 253.8 MB, free: 4.902 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006786/0.02297, allocations: 0.6461 MB / 254.5 MB, free: 4.258 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004615/0.02344, allocations: 419 kB / 254.9 MB, free: 3.848 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 9.58e-05/0.02353, allocations: 80 kB / 255 MB, free: 3.77 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002558/0.02379, allocations: 139.9 kB / 255.1 MB, free: 3.633 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002896/0.02408, allocations: 438.8 kB / 255.5 MB, free: 3.203 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003351/0.02743, allocations: 303.1 kB / 255.8 MB, free: 2.906 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001057/0.02848, allocations: 1.047 MB / 256.9 MB, free: 1.855 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.267e-05/0.0285, allocations: 0 / 256.9 MB, free: 1.855 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.0285, allocations: 0 / 256.9 MB, free: 1.855 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.669e-05/0.02851, allocations: 0 / 256.9 MB, free: 1.855 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.005056/0.03357, allocations: 1.888 MB / 258.8 MB, free: 15.93 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.028e-05/0.0336, allocations: 8.031 kB / 258.8 MB, free: 15.93 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002024/0.0338, allocations: 136.8 kB / 258.9 MB, free: 15.79 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008665/0.03467, allocations: 0.6685 MB / 259.6 MB, free: 15.09 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000117/0.03479, allocations: 178 kB / 259.7 MB, free: 14.89 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.225e-05/0.03486, allocations: 60.31 kB / 259.8 MB, free: 14.83 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006834/0.03554, allocations: 0.8038 MB / 260.6 MB, free: 13.89 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.452e-05/0.03556, allocations: 4.188 kB / 260.6 MB, free: 13.89 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.927e-05/0.0356, allocations: 28.38 kB / 260.6 MB, free: 13.86 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.513e-05/0.03561, allocations: 15.94 kB / 260.6 MB, free: 13.84 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000217/0.03583, allocations: 122.9 kB / 260.8 MB, free: 13.72 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005174/0.041, allocations: 1.609 MB / 262.4 MB, free: 12.05 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003869/0.04139, allocations: 222.3 kB / 262.6 MB, free: 11.82 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002691/0.04166, allocations: 164.8 kB / 262.8 MB, free: 11.66 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.277e-05/0.04168, allocations: 7.984 kB / 262.8 MB, free: 11.65 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.68e-05/0.04171, allocations: 39.06 kB / 262.8 MB, free: 11.6 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 1.513e-06/0.04171, allocations: 0 / 262.8 MB, free: 11.6 MB / 266.7 MB Notification: Performance of matching and sorting (n=30): time 0.003828/0.04554, allocations: 323 kB / 263.1 MB, free: 11.28 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.944e-05/0.04557, allocations: 59.34 kB / 263.2 MB, free: 11.21 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001289/0.04686, allocations: 1.34 MB / 264.5 MB, free: 9.844 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.529e-05/0.04688, allocations: 33.7 kB / 264.5 MB, free: 9.805 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002348/0.04712, allocations: 397.5 kB / 264.9 MB, free: 9.41 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.905e-05/0.04719, allocations: 107 kB / 265 MB, free: 9.305 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001053/0.04729, allocations: 78 kB / 265.1 MB, free: 9.219 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.111e-05/0.04737, allocations: 321.9 kB / 265.4 MB, free: 8.898 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.142e-05/0.04744, allocations: 44.72 kB / 265.5 MB, free: 8.855 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002111/0.04765, allocations: 381.3 kB / 265.8 MB, free: 8.379 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002209/0.04787, allocations: 192.4 kB / 266 MB, free: 8.16 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.04788, allocations: 4 kB / 266 MB, free: 8.156 MB / 266.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.003577/0.05145, allocations: 305.7 kB / 266.3 MB, free: 7.848 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.635e-05/0.05147, allocations: 7.562 kB / 266.3 MB, free: 7.844 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.05148, allocations: 8 kB / 266.4 MB, free: 7.836 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001607/0.05164, allocations: 44.81 kB / 266.4 MB, free: 7.789 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003512/0.05199, allocations: 112.5 kB / 266.5 MB, free: 7.68 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001143/0.05313, allocations: 1.427 MB / 267.9 MB, free: 6.168 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003583/0.05349, allocations: 47.72 kB / 268 MB, free: 6.121 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.47e-05/0.05351, allocations: 8 kB / 268 MB, free: 6.113 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.0002879/0.0538, allocations: 136.5 kB / 268.1 MB, free: 5.969 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001492/0.05395, allocations: 95.89 kB / 268.2 MB, free: 5.875 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001604/0.05411, allocations: 125.3 kB / 268.3 MB, free: 5.746 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.05411, allocations: 0 / 268.3 MB, free: 5.746 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.555e-06/0.05412, allocations: 0 / 268.3 MB, free: 5.746 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.089e-06/0.05412, allocations: 7.938 kB / 268.3 MB, free: 5.738 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001421/0.05554, allocations: 0.7993 MB / 269.1 MB, free: 4.902 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.576e-06/0.05555, allocations: 0 / 269.1 MB, free: 4.902 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003282/0.05587, allocations: 83.92 kB / 269.2 MB, free: 4.82 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003006/0.05618, allocations: 167 kB / 269.4 MB, free: 4.656 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001417/0.05632, allocations: 48.81 kB / 269.4 MB, free: 4.605 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.416e-05/0.05634, allocations: 12.06 kB / 269.4 MB, free: 4.594 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001052/0.05739, allocations: 1.387 MB / 270.8 MB, free: 3.125 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.457e-06/0.0574, allocations: 3.938 kB / 270.8 MB, free: 3.121 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006708/0.05807, allocations: 422.2 kB / 271.3 MB, free: 2.684 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001097/0.05818, allocations: 15.94 kB / 271.3 MB, free: 2.668 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002979/0.05847, allocations: 31.97 kB / 271.3 MB, free: 2.637 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.73e-05/0.05854, allocations: 32.17 kB / 271.3 MB, free: 2.605 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.988e-05/0.05856, allocations: 8 kB / 271.3 MB, free: 2.598 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0009361/0.0595, allocations: 0.7291 MB / 272.1 MB, free: 1.863 MB / 266.7 MB Notification: Performance of sort global known variables: time 1e-07/0.0595, allocations: 0 / 272.1 MB, free: 1.863 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007207/0.06022, allocations: 211.6 kB / 272.3 MB, free: 1.656 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.001928/0.06215, allocations: 0.6272 MB / 272.9 MB, free: 1.289 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007173/0.06286, allocations: 294.1 kB / 273.2 MB, free: 0.9883 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.091e-05/0.0629, allocations: 19.98 kB / 273.2 MB, free: 0.9688 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003012/0.0632, allocations: 236.2 kB / 273.4 MB, free: 0.7227 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001441/0.06464, allocations: 1.456 MB / 274.9 MB, free: 15.02 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006052/0.07069, allocations: 2.084 MB / 277 MB, free: 12.88 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002141/0.0709, allocations: 298.7 kB / 277.3 MB, free: 12.57 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002584/0.07116, allocations: 123.8 kB / 277.4 MB, free: 12.44 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003659/0.07153, allocations: 261.2 kB / 277.6 MB, free: 12.19 MB / 282.7 MB Notification: Performance of SimCode: time 1.803e-06/0.07153, allocations: 4 kB / 277.6 MB, free: 12.18 MB / 282.7 MB Notification: Performance of Templates: time 0.1153/0.1868, allocations: 15.72 MB / 293.4 MB, free: 29.45 MB / 282.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.022388933226466]