Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.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.001862/0.001862, allocations: 92.31 kB / 20.96 MB, free: 3.477 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.00214/0.00214, allocations: 165.7 kB / 24.27 MB, free: 172 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.522/1.522, allocations: 177.1 MB / 204.6 MB, free: 5.582 MB / 186.7 MB " [Timeout remaining time 178] 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.BatteryDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=36000,variableFilter="time|battery1.limIntegrator.y|battery2.capacitor.1..v|battery2.capacitor.2..v|battery2.limIntegrator.y|energy1.y|energy2.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge") translateModel(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=36000,variableFilter="time|battery1.limIntegrator.y|battery2.capacitor.1..v|battery2.capacitor.2..v|battery2.limIntegrator.y|energy1.y|energy2.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.563e-06/1.563e-06, allocations: 0 / 272.3 MB, free: 1.828 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.732e-05/2.888e-05, allocations: 6.312 kB / 272.3 MB, free: 1.82 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.007983/0.008012, allocations: 5.219 MB / 277.5 MB, free: 12.57 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005124/0.01314, allocations: 2.609 MB / 280.1 MB, free: 9.953 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000833/0.01397, allocations: 31.81 kB / 280.2 MB, free: 9.922 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002368/0.01634, allocations: 0.7463 MB / 280.9 MB, free: 9.172 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001443/0.01778, allocations: 0.5785 MB / 281.5 MB, free: 8.59 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001231/0.01901, allocations: 0.5146 MB / 282 MB, free: 8.074 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0022/0.02121, allocations: 1.644 MB / 283.7 MB, free: 6.426 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007156/0.02193, allocations: 375.1 kB / 284 MB, free: 6.031 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001241/0.02317, allocations: 0.9004 MB / 284.9 MB, free: 5.129 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009243/0.02409, allocations: 0.6312 MB / 285.6 MB, free: 4.496 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003187/0.02441, allocations: 132 kB / 285.7 MB, free: 4.367 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004565/0.02487, allocations: 207.8 kB / 285.9 MB, free: 4.164 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007049/0.02557, allocations: 0.6621 MB / 286.5 MB, free: 3.5 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007328/0.0263, allocations: 0.5648 MB / 287.1 MB, free: 2.934 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002997/0.0293, allocations: 2.469 MB / 289.6 MB, free: 468 kB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.02931, allocations: 0 / 289.6 MB, free: 468 kB / 266.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.02931, allocations: 0 / 289.6 MB, free: 468 kB / 266.7 MB Notification: Performance of Transformations before backend: time 3.311e-05/0.02934, allocations: 0 / 289.6 MB, free: 468 kB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 215 * Number of variables: 215 Notification: Performance of Generate backend data structure: time 0.1252/0.1545, allocations: 2.551 MB / 292.1 MB, free: 27.89 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.828e-05/0.1546, allocations: 9.75 kB / 292.1 MB, free: 27.89 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006131/0.1552, allocations: 304.5 kB / 292.4 MB, free: 27.74 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002676/0.1579, allocations: 1.522 MB / 294 MB, free: 27 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001256/0.158, allocations: 149.1 kB / 294.1 MB, free: 26.87 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001518/0.1582, allocations: 94.19 kB / 294.2 MB, free: 26.84 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002009/0.1602, allocations: 1.705 MB / 295.9 MB, free: 25.54 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.372e-05/0.1602, allocations: 1.219 kB / 295.9 MB, free: 25.54 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.668e-05/0.1603, allocations: 42.05 kB / 295.9 MB, free: 25.51 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.332e-05/0.1603, allocations: 25.45 kB / 296 MB, free: 25.5 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00135/0.1616, allocations: 0.7196 MB / 296.7 MB, free: 25.25 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006796/0.1684, allocations: 4.082 MB / 300.8 MB, free: 22.9 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001173/0.1696, allocations: 0.5256 MB / 301.3 MB, free: 22.71 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007183/0.1703, allocations: 357 kB / 301.6 MB, free: 22.59 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.375e-05/0.1704, allocations: 9.328 kB / 301.7 MB, free: 22.59 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.59e-05/0.1704, allocations: 48 kB / 301.7 MB, free: 22.54 MB / 266.7 MB Notification: Performance of pre-optimization done (n=44): time 2.024e-06/0.1704, allocations: 4.312 kB / 301.7 MB, free: 22.54 MB / 266.7 MB Notification: Performance of matching and sorting (n=44): time 0.001902/0.1723, allocations: 0.8293 MB / 302.5 MB, free: 22.23 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000141/0.1725, allocations: 425.1 kB / 303 MB, free: 21.72 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003463/0.1759, allocations: 2.719 MB / 305.7 MB, free: 20.11 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.106e-05/0.176, allocations: 41.7 kB / 305.7 MB, free: 20.06 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005586/0.1766, allocations: 0.9005 MB / 306.6 MB, free: 19.15 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001022/0.1767, allocations: 162.4 kB / 306.8 MB, free: 19 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001852/0.1768, allocations: 127 kB / 306.9 MB, free: 18.87 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.694e-05/0.1769, allocations: 334 kB / 307.2 MB, free: 18.54 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004456/0.1774, allocations: 256.4 kB / 307.5 MB, free: 18.29 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006257/0.178, allocations: 0.8938 MB / 308.4 MB, free: 17.19 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008704/0.1789, allocations: 0.6175 MB / 309 MB, free: 16.5 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.052e-06/0.1789, allocations: 7.984 kB / 309 MB, free: 16.49 MB / 266.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001561/0.1804, allocations: 0.8868 MB / 309.9 MB, free: 15.59 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.948e-05/0.1804, allocations: 4 kB / 309.9 MB, free: 15.59 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.231e-05/0.1805, allocations: 8 kB / 309.9 MB, free: 15.58 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.017e-05/0.1805, allocations: 8 kB / 309.9 MB, free: 15.57 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005755/0.1811, allocations: 160.1 kB / 310.1 MB, free: 15.42 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.739e-05/0.1811, allocations: 11.94 kB / 310.1 MB, free: 15.41 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00109/0.1822, allocations: 155.4 kB / 310.2 MB, free: 15.25 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.432e-05/0.1822, allocations: 24 kB / 310.2 MB, free: 15.23 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 6 (pulseSeries.on2,pulseSeries.on1,energy2.local_reset,battery2.limIntegrator.local_reset,energy1.local_reset,battery1.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006331/0.1829, allocations: 0.5561 MB / 310.8 MB, free: 14.66 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002217/0.1831, allocations: 210.7 kB / 311 MB, free: 14.46 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001317/0.1844, allocations: 0.6881 MB / 311.7 MB, free: 13.76 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.733e-06/0.1844, allocations: 8 kB / 311.7 MB, free: 13.75 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.586e-06/0.1844, allocations: 0 / 311.7 MB, free: 13.75 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.053e-06/0.1844, allocations: 0 / 311.7 MB, free: 13.75 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003068/0.1875, allocations: 1.786 MB / 313.5 MB, free: 11.93 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.29e-06/0.1875, allocations: 4 kB / 313.5 MB, free: 11.93 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004626/0.188, allocations: 112 kB / 313.6 MB, free: 11.82 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.083e-06/0.188, allocations: 4 kB / 313.6 MB, free: 11.81 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.847e-05/0.188, allocations: 8.875 kB / 313.6 MB, free: 11.8 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.781e-06/0.188, allocations: 7.922 kB / 313.6 MB, free: 11.8 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/0.188, allocations: 4 kB / 313.6 MB, free: 11.79 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00155/0.1896, allocations: 1.061 MB / 314.7 MB, free: 10.71 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005706/0.1901, allocations: 334.6 kB / 315 MB, free: 10.38 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001711/0.1903, allocations: 18.12 kB / 315 MB, free: 10.36 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009313/0.1912, allocations: 143.8 kB / 315.2 MB, free: 10.22 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002584/0.1915, allocations: 151.7 kB / 315.3 MB, free: 10.07 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.688e-05/0.1915, allocations: 19.98 kB / 315.3 MB, free: 10.05 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001928/0.1935, allocations: 1.923 MB / 317.3 MB, free: 8.109 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1935, allocations: 0 / 317.3 MB, free: 8.109 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0008531/0.1943, allocations: 319.3 kB / 317.6 MB, free: 7.797 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (battery1.limIntegrator.y,energy1.y,battery2.limIntegrator.y,battery2.capacitor[1].v,battery2.capacitor[2].v,energy2.y) * Number of discrete variables: 2 (pulseSeries.on1,pulseSeries.on2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002302/0.1966, allocations: 0.5173 MB / 318.1 MB, free: 7.562 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001169/0.1978, allocations: 0.5694 MB / 318.7 MB, free: 6.996 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.681e-06/0.1978, allocations: 4.438 kB / 318.7 MB, free: 6.992 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000529/0.1983, allocations: 327.7 kB / 319 MB, free: 6.672 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001259/0.1996, allocations: 297.5 kB / 319.3 MB, free: 6.387 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004219/0.2038, allocations: 3.477 MB / 322.7 MB, free: 2.859 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006654/0.2045, allocations: 0.8571 MB / 323.6 MB, free: 1.961 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0006547/0.2051, allocations: 282.4 kB / 323.9 MB, free: 1.68 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000298/0.2054, allocations: 104.5 kB / 324 MB, free: 1.578 MB / 266.7 MB Notification: Performance of SimCode: time 9.22e-07/0.2054, allocations: 0 / 324 MB, free: 1.578 MB / 266.7 MB Notification: Performance of Templates: time 0.03992/0.2453, allocations: 21.43 MB / 345.4 MB, free: 12.4 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.sim & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/BatteryDischargeCharge/BatteryDischargeCharge.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.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.752058279933408]