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.001026/0.001026, allocations: 91.5 kB / 21.2 MB, free: 3.375 MB / 18.57 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.001012/0.001012, allocations: 156.5 kB / 24.55 MB, free: 20 kB / 18.57 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 1.045/1.045, allocations: 177 MB / 204.8 MB, free: 5.602 MB / 186.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.763e-06/1.763e-06, allocations: 0 / 272.9 MB, free: 1.492 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.809e-05/2.986e-05, allocations: 9.062 kB / 272.9 MB, free: 1.484 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.00436/0.00439, allocations: 4.016 MB / 276.9 MB, free: 13.44 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002692/0.007081, allocations: 2.029 MB / 278.9 MB, free: 11.4 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003386/0.00742, allocations: 15.88 kB / 279 MB, free: 11.39 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001236/0.008656, allocations: 0.5756 MB / 279.5 MB, free: 10.81 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000594/0.00925, allocations: 405.8 kB / 279.9 MB, free: 10.41 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004832/0.009734, allocations: 287.3 kB / 280.2 MB, free: 10.13 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009926/0.01073, allocations: 1.017 MB / 281.2 MB, free: 9.109 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003103/0.01104, allocations: 221 kB / 281.4 MB, free: 8.895 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004923/0.01153, allocations: 0.5419 MB / 282 MB, free: 8.352 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004506/0.01198, allocations: 459 kB / 282.4 MB, free: 7.902 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.374e-05/0.01206, allocations: 80 kB / 282.5 MB, free: 7.824 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002045/0.01227, allocations: 135.9 kB / 282.6 MB, free: 7.691 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002596/0.01253, allocations: 490.6 kB / 283.1 MB, free: 7.211 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002759/0.0128, allocations: 378.9 kB / 283.5 MB, free: 6.84 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001083/0.01389, allocations: 1.086 MB / 284.6 MB, free: 5.75 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.01389, allocations: 0 / 284.6 MB, free: 5.75 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.01389, allocations: 4 kB / 284.6 MB, free: 5.746 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.314e-05/0.01392, allocations: 4 kB / 284.6 MB, free: 5.742 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.002186/0.0161, allocations: 1.96 MB / 286.5 MB, free: 3.73 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.2e-05/0.01615, allocations: 11.98 kB / 286.6 MB, free: 3.719 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003815/0.01654, allocations: 211.9 kB / 286.8 MB, free: 3.512 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001352/0.01789, allocations: 0.843 MB / 287.6 MB, free: 2.633 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001574/0.01805, allocations: 174.1 kB / 287.8 MB, free: 2.434 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.332e-05/0.01814, allocations: 56.33 kB / 287.8 MB, free: 2.379 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009615/0.0191, allocations: 0.8606 MB / 288.7 MB, free: 1.367 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.61e-05/0.01912, allocations: 192 / 288.7 MB, free: 1.367 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.217e-05/0.01917, allocations: 28.12 kB / 288.7 MB, free: 1.34 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.794e-05/0.01919, allocations: 15.94 kB / 288.7 MB, free: 1.324 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004657/0.01965, allocations: 189.8 kB / 288.9 MB, free: 1.137 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1261/0.1457, allocations: 2.556 MB / 291.5 MB, free: 22.75 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005401/0.1463, allocations: 256.8 kB / 291.7 MB, free: 22.71 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003317/0.1466, allocations: 189.1 kB / 291.9 MB, free: 22.7 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.852e-05/0.1466, allocations: 7.531 kB / 291.9 MB, free: 22.7 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.523e-05/0.1467, allocations: 41.77 kB / 292 MB, free: 22.66 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 2.995e-06/0.1467, allocations: 0.875 kB / 292 MB, free: 22.66 MB / 266.7 MB Notification: Performance of matching and sorting (n=30): time 0.0009468/0.1476, allocations: 468.1 kB / 292.4 MB, free: 22.61 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.69e-05/0.1477, allocations: 262.9 kB / 292.7 MB, free: 22.3 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001691/0.1493, allocations: 1.632 MB / 294.3 MB, free: 22.05 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.812e-05/0.1494, allocations: 32.39 kB / 294.3 MB, free: 22.02 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004341/0.1498, allocations: 0.8008 MB / 295.1 MB, free: 21.85 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.609e-05/0.1499, allocations: 112.3 kB / 295.2 MB, free: 21.79 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.85e-05/0.15, allocations: 86.53 kB / 295.3 MB, free: 21.76 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.377e-05/0.15, allocations: 0.4939 MB / 295.8 MB, free: 21.28 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001101/0.1501, allocations: 55.03 kB / 295.9 MB, free: 21.28 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001891/0.1503, allocations: 443.6 kB / 296.3 MB, free: 20.81 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002492/0.1506, allocations: 246.9 kB / 296.6 MB, free: 20.66 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.1506, allocations: 1.188 kB / 296.6 MB, free: 20.66 MB / 266.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006289/0.1512, allocations: 445.8 kB / 297 MB, free: 20.48 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.729e-05/0.1512, allocations: 6.031 kB / 297 MB, free: 20.48 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/0.1512, allocations: 3 kB / 297 MB, free: 20.48 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002022/0.1514, allocations: 50.8 kB / 297 MB, free: 20.46 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002196/0.1516, allocations: 88.56 kB / 297.1 MB, free: 20.46 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009045/0.1526, allocations: 2.113 MB / 299.2 MB, free: 18.43 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000238/0.1528, allocations: 45.7 kB / 299.3 MB, free: 18.41 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.204e-05/0.1528, allocations: 17.92 kB / 299.3 MB, free: 18.41 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 (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.0001612/0.153, allocations: 184 kB / 299.5 MB, free: 18.23 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001188/0.1531, allocations: 150 kB / 299.6 MB, free: 18.15 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.993e-05/0.1532, allocations: 121 kB / 299.8 MB, free: 18.09 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.1532, allocations: 3.469 kB / 299.8 MB, free: 18.09 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.1532, allocations: 4.812 kB / 299.8 MB, free: 18.09 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-06/0.1532, allocations: 1.781 kB / 299.8 MB, free: 18.09 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001612/0.1548, allocations: 1.424 MB / 301.2 MB, free: 17.34 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.1548, allocations: 0 / 301.2 MB, free: 17.34 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001868/0.155, allocations: 62.39 kB / 301.2 MB, free: 17.34 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001051/0.1551, allocations: 50.09 kB / 301.3 MB, free: 17.32 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.577e-05/0.1551, allocations: 8.547 kB / 301.3 MB, free: 17.32 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006732/0.1558, allocations: 2.079 MB / 303.4 MB, free: 15.3 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.1558, allocations: 1.672 kB / 303.4 MB, free: 15.3 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005994/0.1564, allocations: 0.5936 MB / 304 MB, free: 14.93 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002918/0.1567, allocations: 245.1 kB / 304.2 MB, free: 14.8 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.86e-05/0.1568, allocations: 13.69 kB / 304.2 MB, free: 14.8 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002071/0.157, allocations: 34.88 kB / 304.3 MB, free: 14.79 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.173e-05/0.1571, allocations: 35.53 kB / 304.3 MB, free: 14.79 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.65e-05/0.1571, allocations: 12.06 kB / 304.3 MB, free: 14.79 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001013/0.1581, allocations: 0.943 MB / 305.3 MB, free: 14.46 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1581, allocations: 0 / 305.3 MB, free: 14.46 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005317/0.1586, allocations: 205.2 kB / 305.5 MB, free: 14.43 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.0009835/0.1596, allocations: 437.2 kB / 305.9 MB, free: 14.3 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005472/0.1602, allocations: 386.5 kB / 306.3 MB, free: 14.08 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.516e-06/0.1602, allocations: 1.938 kB / 306.3 MB, free: 14.08 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002286/0.1604, allocations: 287.8 kB / 306.5 MB, free: 13.88 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005594/0.161, allocations: 212.8 kB / 306.7 MB, free: 13.78 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002653/0.1636, allocations: 2.119 MB / 308.9 MB, free: 12.68 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002206/0.1638, allocations: 309.5 kB / 309.2 MB, free: 12.56 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002687/0.1641, allocations: 146 kB / 309.3 MB, free: 12.54 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001284/0.1642, allocations: 67.67 kB / 309.4 MB, free: 12.53 MB / 266.7 MB Notification: Performance of SimCode: time 1.833e-06/0.1642, allocations: 0 / 309.4 MB, free: 12.53 MB / 266.7 MB Notification: Performance of Templates: time 0.01762/0.1818, allocations: 14 MB / 323.4 MB, free: 0.6641 MB / 266.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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.3032510741613805]