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.002031/0.002031, allocations: 123 kB / 17.79 MB, free: 5.266 MB / 14.72 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.002291/0.002291, allocations: 185.2 kB / 20.73 MB, free: 2.332 MB / 14.72 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.506/1.506, allocations: 225.6 MB / 249.1 MB, free: 3.641 MB / 190.1 MB " [Timeout remaining time 178] 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.1..v|battery.capacitor.2..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.1..v|battery.capacitor.2..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 0.002403/0.002403, allocations: 47.92 kB / 366.1 MB, free: 392 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1352/0.1376, allocations: 52.14 MB / 418.2 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.006309/0.1439, allocations: 4.016 MB / 422.3 MB, free: 8.113 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003541/0.1475, allocations: 1.92 MB / 424.2 MB, free: 6.184 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004754/0.1479, allocations: 12 kB / 424.2 MB, free: 6.172 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001675/0.1496, allocations: 0.5876 MB / 424.8 MB, free: 5.582 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009825/0.1506, allocations: 354.2 kB / 425.1 MB, free: 5.234 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009404/0.1515, allocations: 291.3 kB / 425.4 MB, free: 4.953 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001677/0.1532, allocations: 0.9741 MB / 426.4 MB, free: 3.973 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005424/0.1538, allocations: 252.6 kB / 426.6 MB, free: 3.719 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006516/0.1544, allocations: 390.7 kB / 427 MB, free: 3.336 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008436/0.1553, allocations: 0.5061 MB / 427.5 MB, free: 2.828 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001729/0.1554, allocations: 76 kB / 427.6 MB, free: 2.754 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003541/0.1558, allocations: 148 kB / 427.7 MB, free: 2.609 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004487/0.1562, allocations: 470.6 kB / 428.2 MB, free: 2.148 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007499/0.157, allocations: 0.629 MB / 428.8 MB, free: 1.516 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002161/0.1591, allocations: 1.762 MB / 430.6 MB, free: 15.75 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.1591, allocations: 0 / 430.6 MB, free: 15.75 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.1591, allocations: 4 kB / 430.6 MB, free: 15.74 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.026e-05/0.1592, allocations: 0 / 430.6 MB, free: 15.74 MB / 366.1 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.003233/0.1624, allocations: 1.856 MB / 432.4 MB, free: 13.83 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.21e-05/0.1625, allocations: 12.03 kB / 432.5 MB, free: 13.82 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003165/0.1628, allocations: 163.9 kB / 432.6 MB, free: 13.66 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002005/0.1648, allocations: 1.194 MB / 433.8 MB, free: 12.41 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001307/0.1649, allocations: 96.97 kB / 433.9 MB, free: 12.31 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001423/0.165, allocations: 55.92 kB / 434 MB, free: 12.25 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001382/0.1664, allocations: 0.6518 MB / 434.6 MB, free: 11.55 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.94e-05/0.1665, allocations: 3.984 kB / 434.6 MB, free: 11.55 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.819e-05/0.1665, allocations: 24 kB / 434.6 MB, free: 11.53 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.635e-05/0.1665, allocations: 12 kB / 434.7 MB, free: 11.52 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008622/0.1674, allocations: 435.7 kB / 435.1 MB, free: 11.09 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005008/0.1724, allocations: 2.876 MB / 438 MB, free: 8.113 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001017/0.1734, allocations: 394.5 kB / 438.3 MB, free: 7.719 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006672/0.1741, allocations: 293.2 kB / 438.6 MB, free: 7.43 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.853e-05/0.1741, allocations: 4 kB / 438.6 MB, free: 7.426 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.992e-05/0.1742, allocations: 46.55 kB / 438.7 MB, free: 7.371 MB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 2.875e-06/0.1742, allocations: 3.938 kB / 438.7 MB, free: 7.367 MB / 366.1 MB Notification: Performance of matching and sorting (n=30): time 0.002009/0.1762, allocations: 0.7718 MB / 439.5 MB, free: 6.566 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001555/0.1763, allocations: 261 kB / 439.7 MB, free: 6.25 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00331/0.1796, allocations: 2.242 MB / 441.9 MB, free: 3.996 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.47e-05/0.1797, allocations: 33.7 kB / 442 MB, free: 3.957 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006639/0.1804, allocations: 0.6357 MB / 442.6 MB, free: 3.312 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001123/0.1805, allocations: 111.1 kB / 442.7 MB, free: 3.203 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001575/0.1806, allocations: 82.02 kB / 442.8 MB, free: 3.113 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001561/0.1808, allocations: 325.8 kB / 443.1 MB, free: 2.789 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003766/0.1812, allocations: 160.7 kB / 443.3 MB, free: 2.633 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004901/0.1817, allocations: 304.6 kB / 443.6 MB, free: 2.281 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007834/0.1824, allocations: 396.5 kB / 444 MB, free: 1.863 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.1824, allocations: 0 / 444 MB, free: 1.863 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001486/0.1839, allocations: 0.6492 MB / 444.6 MB, free: 1.203 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.041e-05/0.184, allocations: 8 kB / 444.6 MB, free: 1.195 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.699e-06/0.184, allocations: 3.938 kB / 444.6 MB, free: 1.191 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00033/0.1843, allocations: 72.88 kB / 444.7 MB, free: 1.117 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003957/0.1847, allocations: 91.88 kB / 444.8 MB, free: 1.027 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2229/0.4076, allocations: 1.763 MB / 446.6 MB, free: 28.31 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008821/0.4085, allocations: 48.12 kB / 446.6 MB, free: 28.31 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.244e-05/0.4085, allocations: 17.25 kB / 446.6 MB, free: 28.31 MB / 366.1 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.0006902/0.4092, allocations: 495 kB / 447.1 MB, free: 28.19 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001779/0.4094, allocations: 139 kB / 447.2 MB, free: 28.19 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001856/0.4096, allocations: 163.5 kB / 447.4 MB, free: 28.17 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.446e-06/0.4096, allocations: 1.875 kB / 447.4 MB, free: 28.17 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.4096, allocations: 3.406 kB / 447.4 MB, free: 28.17 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.4096, allocations: 1.781 kB / 447.4 MB, free: 28.17 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002395/0.412, allocations: 1.655 MB / 449.1 MB, free: 27.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.39e-06/0.412, allocations: 6.484 kB / 449.1 MB, free: 27.82 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003238/0.4123, allocations: 71.36 kB / 449.1 MB, free: 27.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001817/0.4125, allocations: 55.16 kB / 449.2 MB, free: 27.82 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.539e-05/0.4125, allocations: 10.36 kB / 449.2 MB, free: 27.82 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001148/0.4137, allocations: 1.721 MB / 450.9 MB, free: 26.34 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.4137, allocations: 1.625 kB / 450.9 MB, free: 26.34 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001318/0.415, allocations: 0.8028 MB / 451.7 MB, free: 26.13 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003981/0.4154, allocations: 332.6 kB / 452 MB, free: 25.96 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001147/0.4155, allocations: 10.61 kB / 452.1 MB, free: 25.96 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004543/0.4159, allocations: 54.61 kB / 452.1 MB, free: 25.96 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.093e-05/0.416, allocations: 29.11 kB / 452.1 MB, free: 25.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.415e-05/0.4161, allocations: 14.44 kB / 452.2 MB, free: 25.96 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002123/0.4182, allocations: 1.6 MB / 453.8 MB, free: 25.85 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4182, allocations: 0 / 453.8 MB, free: 25.85 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000787/0.419, allocations: 209.2 kB / 454 MB, free: 25.84 MB / 366.1 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.001888/0.4209, allocations: 466.4 kB / 454.4 MB, free: 25.71 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001537/0.4224, allocations: 497.1 kB / 454.9 MB, free: 25.59 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.117e-06/0.4224, allocations: 3.25 kB / 454.9 MB, free: 25.59 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006058/0.423, allocations: 297.6 kB / 455.2 MB, free: 25.48 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001015/0.424, allocations: 210.6 kB / 455.4 MB, free: 25.46 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004086/0.4281, allocations: 2.667 MB / 458.1 MB, free: 24.45 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001093/0.4292, allocations: 1.261 MB / 459.3 MB, free: 23.66 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006821/0.4299, allocations: 216 kB / 459.5 MB, free: 23.64 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002471/0.4301, allocations: 68.12 kB / 459.6 MB, free: 23.64 MB / 366.1 MB Notification: Performance of SimCode: time 8.52e-07/0.4301, allocations: 0 / 459.6 MB, free: 23.64 MB / 366.1 MB Notification: Performance of Templates: time 0.03002/0.4601, allocations: 14.26 MB / 473.9 MB, free: 18.96 MB / 366.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.324576813727617]