Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009573/0.0009573, allocations: 83.58 kB / 21.19 MB, free: 3.383 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001003/0.001003, allocations: 161 kB / 24.56 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.051/1.051, allocations: 177.1 MB / 205 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.132e-06/1.132e-06, allocations: 0 / 273 MB, free: 1.547 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.699e-05/1.812e-05, allocations: 2.312 kB / 273 MB, free: 1.543 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.004133/0.004151, allocations: 4.004 MB / 277 MB, free: 13.52 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002462/0.006613, allocations: 2.037 MB / 279 MB, free: 11.47 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002755/0.006889, allocations: 19.88 kB / 279 MB, free: 11.45 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009524/0.007841, allocations: 0.5639 MB / 279.6 MB, free: 10.89 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004594/0.0083, allocations: 409.8 kB / 280 MB, free: 10.48 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000383/0.008683, allocations: 295.3 kB / 280.3 MB, free: 10.2 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009007/0.009584, allocations: 1.009 MB / 281.3 MB, free: 9.184 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003144/0.009898, allocations: 213 kB / 281.5 MB, free: 8.977 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005637/0.01046, allocations: 0.5458 MB / 282 MB, free: 8.43 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005207/0.01098, allocations: 466.9 kB / 282.5 MB, free: 7.973 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.874e-05/0.01108, allocations: 80 kB / 282.6 MB, free: 7.895 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002045/0.01129, allocations: 131.9 kB / 282.7 MB, free: 7.766 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003263/0.01161, allocations: 490.6 kB / 283.2 MB, free: 7.285 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003443/0.01196, allocations: 386.8 kB / 283.6 MB, free: 6.906 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001028/0.01298, allocations: 1.086 MB / 284.6 MB, free: 5.816 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.594e-06/0.01299, allocations: 0 / 284.6 MB, free: 5.816 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.91e-07/0.01299, allocations: 0 / 284.6 MB, free: 5.816 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.423e-05/0.01301, allocations: 0 / 284.6 MB, free: 5.816 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.002172/0.01518, allocations: 1.96 MB / 286.6 MB, free: 3.805 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.851e-05/0.01522, allocations: 8.031 kB / 286.6 MB, free: 3.797 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002393/0.01546, allocations: 211.9 kB / 286.8 MB, free: 3.59 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001007/0.01647, allocations: 0.843 MB / 287.7 MB, free: 2.711 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001389/0.01661, allocations: 174.1 kB / 287.8 MB, free: 2.512 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.662e-05/0.01668, allocations: 60.33 kB / 287.9 MB, free: 2.453 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000752/0.01744, allocations: 0.8682 MB / 288.8 MB, free: 1.438 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.669e-05/0.01745, allocations: 0 / 288.8 MB, free: 1.438 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.96e-05/0.01749, allocations: 20 kB / 288.8 MB, free: 1.418 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.636e-05/0.01751, allocations: 12 kB / 288.8 MB, free: 1.406 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003285/0.01784, allocations: 185.8 kB / 289 MB, free: 1.223 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1456/0.1635, allocations: 2.557 MB / 291.5 MB, free: 23.18 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005455/0.164, allocations: 256.5 kB / 291.8 MB, free: 23.15 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003598/0.1644, allocations: 191.3 kB / 292 MB, free: 23.14 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.34e-05/0.1644, allocations: 5.719 kB / 292 MB, free: 23.14 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.011e-05/0.1644, allocations: 43.09 kB / 292 MB, free: 23.09 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 1.593e-06/0.1644, allocations: 3.828 kB / 292 MB, free: 23.09 MB / 266.7 MB Notification: Performance of matching and sorting (n=30): time 0.001051/0.1655, allocations: 469.8 kB / 292.5 MB, free: 23.04 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.915e-05/0.1655, allocations: 266.7 kB / 292.7 MB, free: 22.73 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002086/0.1676, allocations: 1.632 MB / 294.4 MB, free: 22.48 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.273e-05/0.1677, allocations: 32.95 kB / 294.4 MB, free: 22.45 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000521/0.1682, allocations: 0.7981 MB / 295.2 MB, free: 22.28 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.635e-05/0.1683, allocations: 117 kB / 295.3 MB, free: 22.22 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001098/0.1684, allocations: 84.3 kB / 295.4 MB, free: 22.19 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.053e-05/0.1684, allocations: 0.4954 MB / 295.9 MB, free: 21.71 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001183/0.1686, allocations: 54.11 kB / 295.9 MB, free: 21.71 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002209/0.1688, allocations: 444.4 kB / 296.4 MB, free: 21.24 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002637/0.169, allocations: 247.8 kB / 296.6 MB, free: 21.1 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.496e-06/0.169, allocations: 1 kB / 296.6 MB, free: 21.1 MB / 266.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006495/0.1697, allocations: 445.7 kB / 297.1 MB, free: 20.93 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.136e-05/0.1697, allocations: 7.516 kB / 297.1 MB, free: 20.93 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.264e-06/0.1697, allocations: 1.5 kB / 297.1 MB, free: 20.93 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002213/0.1699, allocations: 47.31 kB / 297.1 MB, free: 20.91 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002196/0.1702, allocations: 86.91 kB / 297.2 MB, free: 20.91 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000929/0.1711, allocations: 2.119 MB / 299.3 MB, free: 18.88 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002218/0.1713, allocations: 44.59 kB / 299.4 MB, free: 18.86 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.143e-05/0.1713, allocations: 15.19 kB / 299.4 MB, free: 18.86 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.000152/0.1715, allocations: 179.9 kB / 299.5 MB, free: 18.68 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001391/0.1716, allocations: 149.9 kB / 299.7 MB, free: 18.6 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001093/0.1717, allocations: 125.5 kB / 299.8 MB, free: 18.53 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.1717, allocations: 2.438 kB / 299.8 MB, free: 18.53 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.1717, allocations: 8.312 kB / 299.8 MB, free: 18.53 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.1717, allocations: 2.25 kB / 299.8 MB, free: 18.53 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001769/0.1735, allocations: 1.416 MB / 301.2 MB, free: 17.79 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.1735, allocations: 1.094 kB / 301.2 MB, free: 17.79 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001828/0.1737, allocations: 72.36 kB / 301.3 MB, free: 17.79 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001007/0.1738, allocations: 37.95 kB / 301.4 MB, free: 17.77 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.071e-05/0.1738, allocations: 11.97 kB / 301.4 MB, free: 17.77 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007588/0.1746, allocations: 2.086 MB / 303.5 MB, free: 15.74 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.1746, allocations: 5.516 kB / 303.5 MB, free: 15.74 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005933/0.1752, allocations: 0.5919 MB / 304 MB, free: 15.38 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003438/0.1755, allocations: 239.8 kB / 304.3 MB, free: 15.25 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.847e-05/0.1756, allocations: 8.484 kB / 304.3 MB, free: 15.25 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000203/0.1758, allocations: 37.62 kB / 304.3 MB, free: 15.25 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.228e-05/0.1759, allocations: 28.2 kB / 304.4 MB, free: 15.24 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.63e-05/0.1759, allocations: 12.59 kB / 304.4 MB, free: 15.24 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001035/0.1769, allocations: 0.9433 MB / 305.3 MB, free: 14.91 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1769, allocations: 0 / 305.3 MB, free: 14.91 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005153/0.1775, allocations: 209.2 kB / 305.5 MB, free: 14.88 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.001015/0.1785, allocations: 452.9 kB / 306 MB, free: 14.73 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005128/0.179, allocations: 389.7 kB / 306.3 MB, free: 14.52 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.179, allocations: 1.875 kB / 306.3 MB, free: 14.52 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002146/0.1792, allocations: 284.2 kB / 306.6 MB, free: 14.32 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005418/0.1797, allocations: 198.6 kB / 306.8 MB, free: 14.23 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002564/0.1823, allocations: 2.121 MB / 308.9 MB, free: 13.12 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002003/0.1825, allocations: 309.6 kB / 309.2 MB, free: 13.01 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002268/0.1827, allocations: 143.4 kB / 309.4 MB, free: 12.98 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001179/0.1829, allocations: 67.97 kB / 309.4 MB, free: 12.98 MB / 266.7 MB Notification: Performance of SimCode: time 4.51e-07/0.1829, allocations: 0 / 309.4 MB, free: 12.98 MB / 266.7 MB Notification: Performance of Templates: time 0.01614/0.199, allocations: 14.01 MB / 323.5 MB, free: 1.152 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.sim & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.475656350143254]