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.001383/0.001383, allocations: 76.62 kB / 22.21 MB, free: 2.289 MB / 18.57 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.001091/0.001091, allocations: 143.1 kB / 25.6 MB, free: 8.91 MB / 18.57 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 1.038/1.038, allocations: 173.4 MB / 202.2 MB, free: 8.273 MB / 186.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.242e-06/1.242e-06, allocations: 0 / 269.2 MB, free: 9.785 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.198e-05/2.322e-05, allocations: 2.312 kB / 269.2 MB, free: 9.781 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.004131/0.004155, allocations: 3.884 MB / 273.1 MB, free: 5.891 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002992/0.007146, allocations: 1.866 MB / 274.9 MB, free: 4.027 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003751/0.007521, allocations: 12.44 kB / 274.9 MB, free: 4.016 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00118/0.008701, allocations: 0.5795 MB / 275.5 MB, free: 3.434 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006068/0.009308, allocations: 365.9 kB / 275.9 MB, free: 3.074 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006312/0.009939, allocations: 287.4 kB / 276.2 MB, free: 2.793 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001082/0.01102, allocations: 1.001 MB / 277.2 MB, free: 1.789 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000337/0.01136, allocations: 217 kB / 277.4 MB, free: 1.574 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006574/0.01202, allocations: 0.5418 MB / 277.9 MB, free: 1.031 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004732/0.01249, allocations: 447.1 kB / 278.3 MB, free: 0.5938 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 8.922e-05/0.01258, allocations: 76 kB / 278.4 MB, free: 0.5195 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002418/0.01282, allocations: 143.8 kB / 278.6 MB, free: 388 kB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002783/0.0131, allocations: 482.6 kB / 279 MB, free: 15.91 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002934/0.01339, allocations: 394.8 kB / 279.4 MB, free: 15.52 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009782/0.01437, allocations: 1.078 MB / 280.5 MB, free: 14.44 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.858e-06/0.01437, allocations: 0 / 280.5 MB, free: 14.44 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.01437, allocations: 0 / 280.5 MB, free: 14.44 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.292e-05/0.01439, allocations: 0 / 280.5 MB, free: 14.44 MB / 266.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.00197/0.01636, allocations: 1.909 MB / 282.4 MB, free: 12.48 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.18e-05/0.01639, allocations: 12.02 kB / 282.4 MB, free: 12.46 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001791/0.01657, allocations: 207.9 kB / 282.6 MB, free: 12.26 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007456/0.01731, allocations: 0.7685 MB / 283.4 MB, free: 11.46 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001122/0.01743, allocations: 174.1 kB / 283.6 MB, free: 11.26 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.027e-05/0.01749, allocations: 52.38 kB / 283.6 MB, free: 11.21 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006081/0.01809, allocations: 0.8408 MB / 284.5 MB, free: 10.21 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.359e-05/0.01811, allocations: 0 / 284.5 MB, free: 10.21 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.304e-05/0.01814, allocations: 20 kB / 284.5 MB, free: 10.2 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.042e-05/0.01815, allocations: 12 kB / 284.5 MB, free: 10.18 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001879/0.01834, allocations: 142.8 kB / 284.6 MB, free: 10.04 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002043/0.02038, allocations: 2.199 MB / 286.8 MB, free: 7.762 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003716/0.02075, allocations: 239.1 kB / 287.1 MB, free: 7.516 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002352/0.02099, allocations: 180 kB / 287.2 MB, free: 7.336 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.866e-05/0.02101, allocations: 4 kB / 287.2 MB, free: 7.332 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.693e-05/0.02103, allocations: 45.39 kB / 287.3 MB, free: 7.277 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 1.572e-06/0.02104, allocations: 0 / 287.3 MB, free: 7.277 MB / 266.7 MB Notification: Performance of matching and sorting (n=30): time 0.0009705/0.02201, allocations: 436.7 kB / 287.7 MB, free: 6.84 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.536e-05/0.02208, allocations: 261 kB / 288 MB, free: 6.523 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00114/0.02322, allocations: 1.528 MB / 289.5 MB, free: 4.961 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.509e-05/0.02325, allocations: 33.7 kB / 289.5 MB, free: 4.922 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004693/0.02372, allocations: 0.7993 MB / 290.3 MB, free: 4.113 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.425e-05/0.02378, allocations: 111 kB / 290.4 MB, free: 4.004 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.36e-05/0.02387, allocations: 95.64 kB / 290.5 MB, free: 3.898 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001065/0.02398, allocations: 0.4926 MB / 291 MB, free: 3.398 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.456e-05/0.02404, allocations: 40.7 kB / 291.1 MB, free: 3.359 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002017/0.02425, allocations: 433.2 kB / 291.5 MB, free: 2.812 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001983/0.02444, allocations: 225.1 kB / 291.7 MB, free: 2.551 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.02445, allocations: 0 / 291.7 MB, free: 2.551 MB / 266.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0004762/0.02492, allocations: 419.7 kB / 292.1 MB, free: 2.129 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.039e-05/0.02494, allocations: 8 kB / 292.1 MB, free: 2.121 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.702e-06/0.02495, allocations: 0 / 292.1 MB, free: 2.121 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001687/0.02512, allocations: 43.66 kB / 292.2 MB, free: 2.074 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002044/0.02532, allocations: 83.89 kB / 292.2 MB, free: 1.992 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001148/0.02647, allocations: 2.095 MB / 294.3 MB, free: 15.79 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001998/0.02667, allocations: 39.78 kB / 294.4 MB, free: 15.75 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.939e-05/0.02669, allocations: 15.98 kB / 294.4 MB, free: 15.73 MB / 282.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.0001713/0.02686, allocations: 188.4 kB / 294.6 MB, free: 15.54 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001162/0.02698, allocations: 147.1 kB / 294.7 MB, free: 15.39 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003752/0.02735, allocations: 125.3 kB / 294.8 MB, free: 15.26 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.02736, allocations: 4 kB / 294.8 MB, free: 15.26 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.365e-06/0.02736, allocations: 128 / 294.8 MB, free: 15.26 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.02736, allocations: 7.938 kB / 294.9 MB, free: 15.25 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001178/0.02854, allocations: 1.106 MB / 296 MB, free: 14.09 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.766e-06/0.02854, allocations: 0 / 296 MB, free: 14.09 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001681/0.02871, allocations: 63.89 kB / 296 MB, free: 14.03 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.286e-05/0.02881, allocations: 43.59 kB / 296.1 MB, free: 13.98 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.999e-05/0.02883, allocations: 8 kB / 296.1 MB, free: 13.98 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008873/0.02971, allocations: 2.04 MB / 298.1 MB, free: 11.82 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.02972, allocations: 11.92 kB / 298.1 MB, free: 11.81 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000493/0.03021, allocations: 0.5476 MB / 298.7 MB, free: 11.22 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002266/0.03044, allocations: 202.9 kB / 298.9 MB, free: 11.02 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.262e-05/0.03051, allocations: 20.05 kB / 298.9 MB, free: 11 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000194/0.0307, allocations: 35.98 kB / 298.9 MB, free: 10.96 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.146e-05/0.03076, allocations: 35.97 kB / 299 MB, free: 10.93 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.342e-05/0.03078, allocations: 4 kB / 299 MB, free: 10.93 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0006346/0.03141, allocations: 0.8486 MB / 299.8 MB, free: 10.08 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.03141, allocations: 3.938 kB / 299.8 MB, free: 10.07 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004779/0.03189, allocations: 215.6 kB / 300 MB, free: 9.863 MB / 282.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.0009262/0.03282, allocations: 438.5 kB / 300.5 MB, free: 9.598 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004167/0.03323, allocations: 364.6 kB / 300.8 MB, free: 9.223 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.03324, allocations: 0.5625 kB / 300.8 MB, free: 9.223 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002309/0.03347, allocations: 287.7 kB / 301.1 MB, free: 8.922 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000541/0.03401, allocations: 203 kB / 301.3 MB, free: 8.727 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00261/0.03662, allocations: 2.097 MB / 303.4 MB, free: 6.578 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002175/0.03684, allocations: 302.6 kB / 303.7 MB, free: 6.262 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002292/0.03706, allocations: 119.6 kB / 303.8 MB, free: 6.141 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003867/0.03745, allocations: 294.1 kB / 304.1 MB, free: 5.852 MB / 282.7 MB Notification: Performance of SimCode: time 5.61e-07/0.03745, allocations: 0 / 304.1 MB, free: 5.852 MB / 282.7 MB Notification: Performance of Templates: time 0.02043/0.05788, allocations: 15.14 MB / 319.2 MB, free: 6.891 MB / 298.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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.2506171851418912]