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.001512/0.001512, allocations: 83.59 kB / 21.18 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.001029/0.001029, allocations: 165 kB / 24.56 MB, free: 12 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 0.9847/0.9847, allocations: 177.1 MB / 205 MB, free: 5.633 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.833e-06/1.833e-06, allocations: 0 / 273 MB, free: 1.562 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.65e-05/2.833e-05, allocations: 2.312 kB / 273 MB, free: 1.559 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.004399/0.004428, allocations: 4.001 MB / 277 MB, free: 13.54 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002998/0.007426, allocations: 2.041 MB / 279 MB, free: 11.48 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004364/0.007862, allocations: 15.94 kB / 279 MB, free: 11.47 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001498/0.009361, allocations: 0.5717 MB / 279.6 MB, free: 10.89 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007665/0.01013, allocations: 405.8 kB / 280 MB, free: 10.5 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006146/0.01074, allocations: 295.3 kB / 280.3 MB, free: 10.21 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001278/0.01202, allocations: 1.013 MB / 281.3 MB, free: 9.195 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000346/0.01237, allocations: 217 kB / 281.5 MB, free: 8.984 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006126/0.01298, allocations: 0.5457 MB / 282 MB, free: 8.438 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000522/0.0135, allocations: 459 kB / 282.5 MB, free: 7.988 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.379e-05/0.01359, allocations: 80 kB / 282.6 MB, free: 7.91 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002243/0.01382, allocations: 139.9 kB / 282.7 MB, free: 7.773 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002765/0.01409, allocations: 482.6 kB / 283.2 MB, free: 7.301 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003309/0.01443, allocations: 394.8 kB / 283.6 MB, free: 6.914 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001011/0.01544, allocations: 1.078 MB / 284.6 MB, free: 5.832 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.01544, allocations: 7.984 kB / 284.7 MB, free: 5.824 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.382e-06/0.01544, allocations: 0 / 284.7 MB, free: 5.824 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.83e-05/0.01547, allocations: 0 / 284.7 MB, free: 5.824 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.002162/0.01763, allocations: 1.956 MB / 286.6 MB, free: 3.816 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.48e-05/0.01768, allocations: 12.03 kB / 286.6 MB, free: 3.805 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002514/0.01793, allocations: 207.9 kB / 286.8 MB, free: 3.602 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000998/0.01893, allocations: 0.843 MB / 287.7 MB, free: 2.723 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00013/0.01906, allocations: 182 kB / 287.8 MB, free: 2.516 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.468e-05/0.01912, allocations: 60.33 kB / 287.9 MB, free: 2.457 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008557/0.01998, allocations: 0.8605 MB / 288.8 MB, free: 1.449 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.154e-05/0.01999, allocations: 0 / 288.8 MB, free: 1.449 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.654e-05/0.02003, allocations: 28 kB / 288.8 MB, free: 1.422 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.188e-05/0.02004, allocations: 12 kB / 288.8 MB, free: 1.41 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003166/0.02036, allocations: 181.8 kB / 289 MB, free: 1.23 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1223/0.1427, allocations: 2.561 MB / 291.5 MB, free: 22.32 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005363/0.1432, allocations: 255 kB / 291.8 MB, free: 22.29 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003391/0.1436, allocations: 191.6 kB / 292 MB, free: 22.27 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.558e-05/0.1436, allocations: 6.844 kB / 292 MB, free: 22.27 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.896e-05/0.1436, allocations: 43.39 kB / 292 MB, free: 22.23 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 3.246e-06/0.1436, allocations: 0.625 kB / 292 MB, free: 22.23 MB / 266.7 MB Notification: Performance of matching and sorting (n=30): time 0.001002/0.1446, allocations: 468.1 kB / 292.5 MB, free: 22.18 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.361e-05/0.1447, allocations: 264.8 kB / 292.7 MB, free: 21.87 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00195/0.1466, allocations: 1.631 MB / 294.4 MB, free: 21.62 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.744e-05/0.1467, allocations: 35.92 kB / 294.4 MB, free: 21.59 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000433/0.1471, allocations: 0.8 MB / 295.2 MB, free: 21.41 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.988e-05/0.1472, allocations: 109.9 kB / 295.3 MB, free: 21.36 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001137/0.1473, allocations: 86.72 kB / 295.4 MB, free: 21.32 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.301e-05/0.1474, allocations: 0.4973 MB / 295.9 MB, free: 20.84 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001089/0.1475, allocations: 51.34 kB / 295.9 MB, free: 20.84 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002163/0.1477, allocations: 447.3 kB / 296.4 MB, free: 20.38 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002635/0.1479, allocations: 245.5 kB / 296.6 MB, free: 20.25 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.1479, allocations: 1.031 kB / 296.6 MB, free: 20.25 MB / 266.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006804/0.1486, allocations: 440.7 kB / 297.1 MB, free: 20.13 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.937e-05/0.1486, allocations: 6.75 kB / 297.1 MB, free: 20.13 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.1487, allocations: 2.641 kB / 297.1 MB, free: 20.13 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002048/0.1489, allocations: 49.23 kB / 297.1 MB, free: 20.12 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002258/0.1491, allocations: 89.3 kB / 297.2 MB, free: 20.12 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009199/0.15, allocations: 2.112 MB / 299.3 MB, free: 18.16 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002601/0.1503, allocations: 50.48 kB / 299.4 MB, free: 18.15 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.306e-05/0.1503, allocations: 16.53 kB / 299.4 MB, free: 18.15 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.0001674/0.1505, allocations: 182.8 kB / 299.6 MB, free: 17.99 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001201/0.1506, allocations: 150.8 kB / 299.7 MB, free: 17.91 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001054/0.1507, allocations: 126.3 kB / 299.8 MB, free: 17.89 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.888e-06/0.1507, allocations: 7.047 kB / 299.8 MB, free: 17.89 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.526e-06/0.1507, allocations: 1.188 kB / 299.8 MB, free: 17.89 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.1507, allocations: 3.234 kB / 299.8 MB, free: 17.89 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001824/0.1525, allocations: 1.421 MB / 301.3 MB, free: 17.28 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/0.1525, allocations: 1.062 kB / 301.3 MB, free: 17.28 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001993/0.1527, allocations: 68.8 kB / 301.3 MB, free: 17.27 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001183/0.1528, allocations: 42.75 kB / 301.4 MB, free: 17.26 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.847e-05/0.1529, allocations: 12.22 kB / 301.4 MB, free: 17.25 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000766/0.1536, allocations: 2.077 MB / 303.5 MB, free: 15.23 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.297e-06/0.1536, allocations: 5.688 kB / 303.5 MB, free: 15.22 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006862/0.1543, allocations: 0.5887 MB / 304.1 MB, free: 14.86 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002933/0.1546, allocations: 243.1 kB / 304.3 MB, free: 14.74 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000102/0.1547, allocations: 10.17 kB / 304.3 MB, free: 14.73 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002063/0.1549, allocations: 37.61 kB / 304.3 MB, free: 14.73 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.742e-05/0.155, allocations: 32.94 kB / 304.4 MB, free: 14.72 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.286e-05/0.155, allocations: 7.516 kB / 304.4 MB, free: 14.72 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001306/0.1563, allocations: 0.9436 MB / 305.3 MB, free: 14.39 MB / 266.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1563, allocations: 0 / 305.3 MB, free: 14.39 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006998/0.157, allocations: 209.8 kB / 305.5 MB, free: 14.36 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.00122/0.1583, allocations: 446.9 kB / 306 MB, free: 14.22 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005932/0.1589, allocations: 389.3 kB / 306.3 MB, free: 14 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.1589, allocations: 1.375 kB / 306.3 MB, free: 14 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002489/0.1591, allocations: 291.5 kB / 306.6 MB, free: 13.8 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005951/0.1597, allocations: 196.4 kB / 306.8 MB, free: 13.72 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003097/0.1628, allocations: 2.122 MB / 308.9 MB, free: 12.61 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002706/0.1631, allocations: 305.8 kB / 309.2 MB, free: 12.5 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003544/0.1634, allocations: 139.2 kB / 309.4 MB, free: 12.48 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001467/0.1636, allocations: 66.83 kB / 309.4 MB, free: 12.47 MB / 266.7 MB Notification: Performance of SimCode: time 2.324e-06/0.1636, allocations: 0 / 309.4 MB, free: 12.47 MB / 266.7 MB Notification: Performance of Templates: time 0.01696/0.1805, allocations: 14.65 MB / 324.1 MB, free: 28 kB / 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.178032909054309]