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.002012/0.002012, allocations: 95.61 kB / 20.96 MB, free: 3.457 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.002129/0.002129, allocations: 161.3 kB / 24.27 MB, free: 148 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.554/1.554, allocations: 177.1 MB / 204.6 MB, free: 5.59 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 2.134e-06/2.134e-06, allocations: 0 / 272.3 MB, free: 1.84 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.236e-05/3.45e-05, allocations: 3.156 kB / 272.3 MB, free: 1.836 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.009465/0.009499, allocations: 5.673 MB / 278 MB, free: 12.14 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005561/0.01506, allocations: 2.688 MB / 280.7 MB, free: 9.438 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007654/0.01582, allocations: 27.81 kB / 280.7 MB, free: 9.41 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002007/0.01783, allocations: 0.7541 MB / 281.4 MB, free: 8.652 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0016/0.01943, allocations: 0.5863 MB / 282 MB, free: 8.062 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001474/0.02091, allocations: 0.5146 MB / 282.5 MB, free: 7.547 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00245/0.02336, allocations: 1.64 MB / 284.2 MB, free: 5.902 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007726/0.02413, allocations: 379.1 kB / 284.6 MB, free: 5.504 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001646/0.02578, allocations: 0.8965 MB / 285.5 MB, free: 4.605 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001074/0.02685, allocations: 0.6546 MB / 286.1 MB, free: 3.949 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002374/0.02709, allocations: 132 kB / 286.2 MB, free: 3.82 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005455/0.02763, allocations: 211.8 kB / 286.4 MB, free: 3.613 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007485/0.02838, allocations: 0.6621 MB / 287.1 MB, free: 2.949 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008261/0.02921, allocations: 0.5726 MB / 287.7 MB, free: 2.375 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1347/0.1639, allocations: 2.472 MB / 290.2 MB, free: 18.26 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.1639, allocations: 3.938 kB / 290.2 MB, free: 18.26 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.253e-06/0.1639, allocations: 0.7188 kB / 290.2 MB, free: 18.26 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.211e-05/0.164, allocations: 0 / 290.2 MB, free: 18.26 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.005242/0.1693, allocations: 2.792 MB / 292.9 MB, free: 16.99 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.841e-05/0.1693, allocations: 10.06 kB / 293 MB, free: 16.99 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000494/0.1698, allocations: 301.5 kB / 293.3 MB, free: 16.86 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002322/0.1721, allocations: 1.226 MB / 294.5 MB, free: 16.41 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001361/0.1722, allocations: 151 kB / 294.6 MB, free: 16.31 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001624/0.1724, allocations: 95.08 kB / 294.7 MB, free: 16.31 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001862/0.1743, allocations: 1.738 MB / 296.5 MB, free: 15.23 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.53e-05/0.1743, allocations: 3.984 kB / 296.5 MB, free: 15.23 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.93e-05/0.1744, allocations: 40.16 kB / 296.5 MB, free: 15.23 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.993e-05/0.1744, allocations: 23.2 kB / 296.5 MB, free: 15.23 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001171/0.1756, allocations: 0.6147 MB / 297.1 MB, free: 15.21 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006922/0.1825, allocations: 4.905 MB / 302 MB, free: 12.78 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00101/0.1835, allocations: 481.4 kB / 302.5 MB, free: 12.59 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006382/0.1841, allocations: 317.2 kB / 302.8 MB, free: 12.49 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.587e-05/0.1842, allocations: 11.2 kB / 302.8 MB, free: 12.49 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.673e-05/0.1842, allocations: 48.19 kB / 302.9 MB, free: 12.44 MB / 266.7 MB Notification: Performance of pre-optimization done (n=44): time 3.316e-06/0.1843, allocations: 0.6562 kB / 302.9 MB, free: 12.44 MB / 266.7 MB Notification: Performance of matching and sorting (n=44): time 0.001785/0.186, allocations: 0.7042 MB / 303.6 MB, free: 12.16 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001112/0.1861, allocations: 423.7 kB / 304 MB, free: 11.65 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003111/0.1893, allocations: 2.377 MB / 306.4 MB, free: 10.67 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.072e-05/0.1893, allocations: 37.64 kB / 306.4 MB, free: 10.63 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006848/0.19, allocations: 1.127 MB / 307.5 MB, free: 9.781 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001163/0.1901, allocations: 180 kB / 307.7 MB, free: 9.648 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002085/0.1903, allocations: 151.2 kB / 307.9 MB, free: 9.562 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.698e-05/0.1904, allocations: 0.5275 MB / 308.4 MB, free: 9.055 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003692/0.1908, allocations: 199.3 kB / 308.6 MB, free: 8.996 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005576/0.1914, allocations: 0.9412 MB / 309.5 MB, free: 8 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007514/0.1921, allocations: 0.6681 MB / 310.2 MB, free: 7.535 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.661e-06/0.1921, allocations: 0 / 310.2 MB, free: 7.535 MB / 266.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.00147/0.1936, allocations: 0.8018 MB / 311 MB, free: 7.227 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.22e-05/0.1936, allocations: 6.531 kB / 311 MB, free: 7.227 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.065e-05/0.1936, allocations: 7.688 kB / 311 MB, free: 7.227 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.324e-05/0.1937, allocations: 12.38 kB / 311 MB, free: 7.227 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005288/0.1942, allocations: 154.9 kB / 311.2 MB, free: 7.215 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.516e-05/0.1942, allocations: 12.16 kB / 311.2 MB, free: 7.215 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009031/0.1951, allocations: 117.2 kB / 311.3 MB, free: 7.172 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.953e-05/0.1952, allocations: 30.34 kB / 311.3 MB, free: 7.164 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.0005073/0.1957, allocations: 336.5 kB / 311.7 MB, free: 6.918 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002475/0.1959, allocations: 199 kB / 311.9 MB, free: 6.812 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001113/0.197, allocations: 0.5671 MB / 312.4 MB, free: 6.574 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.181e-06/0.197, allocations: 6.172 kB / 312.4 MB, free: 6.574 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/0.197, allocations: 5.516 kB / 312.4 MB, free: 6.574 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.541e-06/0.197, allocations: 0 / 312.4 MB, free: 6.574 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003249/0.2003, allocations: 2.199 MB / 314.6 MB, free: 4.902 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.2003, allocations: 0 / 314.6 MB, free: 4.902 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004142/0.2007, allocations: 101.7 kB / 314.7 MB, free: 4.82 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.332e-06/0.2007, allocations: 4 kB / 314.7 MB, free: 4.816 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.793e-05/0.2008, allocations: 19.72 kB / 314.8 MB, free: 4.801 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.417e-06/0.2008, allocations: 0 / 314.8 MB, free: 4.801 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.2008, allocations: 7.75 kB / 314.8 MB, free: 4.797 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00129/0.2021, allocations: 0.9734 MB / 315.7 MB, free: 3.84 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007438/0.2028, allocations: 314.5 kB / 316 MB, free: 3.531 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001652/0.203, allocations: 15.94 kB / 316.1 MB, free: 3.516 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007442/0.2037, allocations: 99.22 kB / 316.2 MB, free: 3.422 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003214/0.204, allocations: 206.5 kB / 316.4 MB, free: 3.223 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.886e-05/0.2041, allocations: 18.52 kB / 316.4 MB, free: 3.207 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001665/0.2057, allocations: 1.387 MB / 317.8 MB, free: 1.801 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2057, allocations: 0 / 317.8 MB, free: 1.801 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0009195/0.2067, allocations: 319.3 kB / 318.1 MB, free: 1.488 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.003326/0.21, allocations: 0.5131 MB / 318.6 MB, free: 1.25 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.00109/0.2111, allocations: 0.5096 MB / 319.1 MB, free: 0.7617 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.412e-06/0.2111, allocations: 4 kB / 319.1 MB, free: 0.7578 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003765/0.2115, allocations: 233.5 kB / 319.3 MB, free: 0.5352 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001333/0.2128, allocations: 307.9 kB / 319.6 MB, free: 248 kB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005831/0.2186, allocations: 2.963 MB / 322.6 MB, free: 13.23 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001042/0.2197, allocations: 0.8061 MB / 323.4 MB, free: 12.38 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0008526/0.2205, allocations: 206.4 kB / 323.6 MB, free: 12.17 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003268/0.2208, allocations: 100.5 kB / 323.7 MB, free: 12.07 MB / 282.7 MB Notification: Performance of SimCode: time 2.084e-06/0.2208, allocations: 4 kB / 323.7 MB, free: 12.07 MB / 282.7 MB Notification: Performance of Templates: time 0.04223/0.2631, allocations: 21.34 MB / 345 MB, free: 7.016 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) [Timeout 240] 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.826274497085251]