Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.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.001958/0.001958, allocations: 88.62 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.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.002474/0.002474, allocations: 149.4 kB / 24.26 MB, free: 184 kB / 18.57 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.491/1.491, allocations: 173.4 MB / 200.8 MB, free: 9.305 MB / 186.7 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.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.0.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.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.254e-06/2.254e-06, allocations: 0 / 267.3 MB, free: 6.746 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.164e-05/3.389e-05, allocations: 2.312 kB / 267.3 MB, free: 6.742 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.01332/0.01335, allocations: 5.189 MB / 272.5 MB, free: 1.523 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.007643/0.02099, allocations: 2.442 MB / 274.9 MB, free: 15.07 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001092/0.02209, allocations: 27.81 kB / 275 MB, free: 15.04 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002911/0.025, allocations: 0.754 MB / 275.7 MB, free: 14.29 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002137/0.02713, allocations: 0.5319 MB / 276.2 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002022/0.02916, allocations: 0.5107 MB / 276.8 MB, free: 13.24 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003537/0.03269, allocations: 1.644 MB / 278.4 MB, free: 11.59 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001184/0.03388, allocations: 383 kB / 278.8 MB, free: 11.19 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002249/0.03613, allocations: 0.8887 MB / 279.7 MB, free: 10.3 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00182/0.03795, allocations: 0.6273 MB / 280.3 MB, free: 9.668 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004768/0.03842, allocations: 132 kB / 280.4 MB, free: 9.539 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008895/0.03931, allocations: 207.9 kB / 280.6 MB, free: 9.336 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001165/0.04048, allocations: 0.6504 MB / 281.3 MB, free: 8.684 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001694/0.04217, allocations: 0.5687 MB / 281.8 MB, free: 8.113 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00508/0.04725, allocations: 2.465 MB / 284.3 MB, free: 5.641 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.04726, allocations: 0 / 284.3 MB, free: 5.641 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.04726, allocations: 0 / 284.3 MB, free: 5.641 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.288e-05/0.04734, allocations: 3.938 kB / 284.3 MB, free: 5.637 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: 215 * Number of variables: 215 Notification: Performance of Generate backend data structure: time 0.009219/0.05656, allocations: 2.53 MB / 286.8 MB, free: 3.066 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.36e-05/0.05661, allocations: 12.91 kB / 286.9 MB, free: 3.055 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008587/0.05747, allocations: 307.4 kB / 287.2 MB, free: 2.754 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004383/0.06186, allocations: 1.517 MB / 288.7 MB, free: 1.207 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002413/0.0621, allocations: 143.7 kB / 288.8 MB, free: 1.051 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002592/0.06236, allocations: 96.38 kB / 288.9 MB, free: 0.957 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1168/0.1792, allocations: 1.704 MB / 290.6 MB, free: 30.98 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.759e-05/0.1792, allocations: 0.9375 kB / 290.6 MB, free: 30.98 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001168/0.1793, allocations: 41.45 kB / 290.7 MB, free: 30.98 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.112e-05/0.1793, allocations: 20.59 kB / 290.7 MB, free: 30.98 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001502/0.1809, allocations: 0.7147 MB / 291.4 MB, free: 30.9 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006372/0.1872, allocations: 4.085 MB / 295.5 MB, free: 28.69 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001121/0.1883, allocations: 0.5293 MB / 296 MB, free: 28.5 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00074/0.1891, allocations: 355.1 kB / 296.3 MB, free: 28.39 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.041e-05/0.1891, allocations: 9.703 kB / 296.4 MB, free: 28.39 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.496e-05/0.1892, allocations: 47.41 kB / 296.4 MB, free: 28.34 MB / 266.7 MB Notification: Performance of pre-optimization done (n=44): time 1.883e-06/0.1892, allocations: 0 / 296.4 MB, free: 28.34 MB / 266.7 MB Notification: Performance of matching and sorting (n=44): time 0.001804/0.191, allocations: 0.8302 MB / 297.2 MB, free: 28.04 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.546e-05/0.191, allocations: 423.9 kB / 297.6 MB, free: 27.54 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003767/0.1948, allocations: 2.699 MB / 300.3 MB, free: 26.65 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.396e-05/0.1949, allocations: 42.05 kB / 300.4 MB, free: 26.61 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005641/0.1955, allocations: 0.8955 MB / 301.3 MB, free: 25.96 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001124/0.1956, allocations: 163 kB / 301.4 MB, free: 25.86 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002118/0.1958, allocations: 122.6 kB / 301.6 MB, free: 25.8 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.486e-05/0.1958, allocations: 331.7 kB / 301.9 MB, free: 25.48 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004996/0.1963, allocations: 257.3 kB / 302.1 MB, free: 25.4 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000652/0.197, allocations: 0.8854 MB / 303 MB, free: 24.55 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009115/0.1979, allocations: 0.614 MB / 303.6 MB, free: 24.16 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.544e-06/0.1979, allocations: 2.75 kB / 303.6 MB, free: 24.16 MB / 266.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001536/0.1994, allocations: 0.8852 MB / 304.5 MB, free: 23.79 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.779e-05/0.1995, allocations: 6.656 kB / 304.5 MB, free: 23.79 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.199e-05/0.1995, allocations: 4.531 kB / 304.5 MB, free: 23.79 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.615e-05/0.1995, allocations: 9 kB / 304.5 MB, free: 23.79 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005716/0.2001, allocations: 165.2 kB / 304.7 MB, free: 23.75 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.308e-05/0.2001, allocations: 5.906 kB / 304.7 MB, free: 23.75 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001009/0.2011, allocations: 160 kB / 304.9 MB, free: 23.68 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.475e-05/0.2011, allocations: 29.62 kB / 304.9 MB, free: 23.67 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.0006349/0.2018, allocations: 0.561 MB / 305.5 MB, free: 23.35 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002775/0.2021, allocations: 199.8 kB / 305.7 MB, free: 23.24 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001208/0.2033, allocations: 0.6844 MB / 306.3 MB, free: 22.88 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.6e-06/0.2033, allocations: 7.906 kB / 306.3 MB, free: 22.88 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.2033, allocations: 3.984 kB / 306.3 MB, free: 22.88 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.501e-06/0.2033, allocations: 3.938 kB / 306.4 MB, free: 22.87 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002732/0.206, allocations: 1.781 MB / 308.1 MB, free: 21.11 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.206, allocations: 0 / 308.1 MB, free: 21.11 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004667/0.2065, allocations: 107.9 kB / 308.2 MB, free: 21.01 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.911e-06/0.2065, allocations: 8.078 kB / 308.2 MB, free: 21 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.065e-05/0.2065, allocations: 12 kB / 308.3 MB, free: 20.99 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.779e-06/0.2065, allocations: 4 kB / 308.3 MB, free: 20.98 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.2065, allocations: 0 / 308.3 MB, free: 20.98 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001539/0.2081, allocations: 1.06 MB / 309.3 MB, free: 19.89 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006258/0.2087, allocations: 334.3 kB / 309.6 MB, free: 19.58 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002839/0.209, allocations: 18.73 kB / 309.7 MB, free: 19.56 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001063/0.2101, allocations: 144.7 kB / 309.8 MB, free: 19.42 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002798/0.2103, allocations: 151.7 kB / 310 MB, free: 19.27 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.938e-05/0.2104, allocations: 20 kB / 310 MB, free: 19.25 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001961/0.2123, allocations: 1.907 MB / 311.9 MB, free: 17.32 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2123, allocations: 0 / 311.9 MB, free: 17.32 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0008483/0.2132, allocations: 322.5 kB / 312.2 MB, free: 17.03 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.002184/0.2154, allocations: 0.5078 MB / 312.7 MB, free: 16.8 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001135/0.2165, allocations: 0.569 MB / 313.3 MB, free: 16.23 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.122e-06/0.2165, allocations: 4 kB / 313.3 MB, free: 16.22 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000537/0.2171, allocations: 332.8 kB / 313.6 MB, free: 15.9 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001474/0.2185, allocations: 305 kB / 313.9 MB, free: 15.6 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004981/0.2235, allocations: 3.445 MB / 317.3 MB, free: 12.11 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009944/0.2245, allocations: 0.8451 MB / 318.2 MB, free: 11.24 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0007572/0.2253, allocations: 290.4 kB / 318.5 MB, free: 10.95 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003745/0.2256, allocations: 104.5 kB / 318.6 MB, free: 10.84 MB / 266.7 MB Notification: Performance of SimCode: time 1.333e-06/0.2256, allocations: 0 / 318.6 MB, free: 10.84 MB / 266.7 MB Notification: Performance of Templates: time 0.03586/0.2615, allocations: 21.41 MB / 340 MB, free: 5.676 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/BatteryDischargeCharge/BatteryDischargeCharge.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.580157376942225]