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.001678/0.001678, 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.001756/0.001756, allocations: 165 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.047/1.047, allocations: 177.1 MB / 205 MB, free: 5.301 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.BatteryDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=36000,variableFilter="time|battery1.limIntegrator.y|battery2.capacitor.[0-9,]+..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.[0-9,]+..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.773e-06/1.773e-06, allocations: 0 / 273 MB, free: 1.426 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.503e-05/2.68e-05, allocations: 5.266 kB / 273 MB, free: 1.422 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.005909/0.005936, allocations: 5.74 MB / 278.7 MB, free: 11.66 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00384/0.009775, allocations: 2.707 MB / 281.4 MB, free: 8.938 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004301/0.01021, allocations: 27.81 kB / 281.4 MB, free: 8.91 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00139/0.0116, allocations: 0.7502 MB / 282.2 MB, free: 8.156 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007371/0.01233, allocations: 0.5785 MB / 282.8 MB, free: 7.574 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007233/0.01306, allocations: 0.5068 MB / 283.3 MB, free: 7.066 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001202/0.01426, allocations: 1.644 MB / 284.9 MB, free: 5.418 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004755/0.01473, allocations: 387 kB / 285.3 MB, free: 5.012 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007319/0.01546, allocations: 0.8927 MB / 286.2 MB, free: 4.117 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006035/0.01607, allocations: 0.6546 MB / 286.8 MB, free: 3.461 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000142/0.01621, allocations: 136 kB / 287 MB, free: 3.328 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000277/0.01649, allocations: 215.8 kB / 287.2 MB, free: 3.117 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004012/0.01689, allocations: 0.6543 MB / 287.8 MB, free: 2.461 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004295/0.01732, allocations: 0.5726 MB / 288.4 MB, free: 1.887 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001195/0.01851, allocations: 1.522 MB / 289.9 MB, free: 368 kB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.01852, allocations: 0 / 289.9 MB, free: 368 kB / 266.7 MB Notification: Performance of FrontEnd: time 9.92e-07/0.01852, allocations: 0 / 289.9 MB, free: 368 kB / 266.7 MB Notification: Performance of Transformations before backend: time 1.871e-05/0.01854, allocations: 4 kB / 289.9 MB, free: 364 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.1588/0.1773, allocations: 2.666 MB / 292.6 MB, free: 24.15 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.979e-05/0.1774, allocations: 11.25 kB / 292.6 MB, free: 24.15 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007516/0.1781, allocations: 304 kB / 292.9 MB, free: 24.02 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002985/0.1811, allocations: 1.193 MB / 294.1 MB, free: 23.55 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001968/0.1813, allocations: 149.8 kB / 294.2 MB, free: 23.45 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001807/0.1815, allocations: 93.66 kB / 294.3 MB, free: 23.45 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00195/0.1834, allocations: 1.435 MB / 295.8 MB, free: 22.37 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.117e-05/0.1835, allocations: 1.094 kB / 295.8 MB, free: 22.37 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.898e-05/0.1836, allocations: 45.03 kB / 295.8 MB, free: 22.37 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.751e-05/0.1836, allocations: 21.19 kB / 295.8 MB, free: 22.37 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009934/0.1846, allocations: 313.4 kB / 296.1 MB, free: 22.35 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007896/0.1925, allocations: 4.201 MB / 300.3 MB, free: 19.94 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009321/0.1934, allocations: 344 kB / 300.7 MB, free: 19.82 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00054/0.194, allocations: 195.2 kB / 300.9 MB, free: 19.77 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.733e-05/0.194, allocations: 12.53 kB / 300.9 MB, free: 19.77 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.266e-05/0.1941, allocations: 47.17 kB / 300.9 MB, free: 19.73 MB / 266.7 MB Notification: Performance of pre-optimization done (n=44): time 4.419e-06/0.1941, allocations: 0 / 300.9 MB, free: 19.73 MB / 266.7 MB Notification: Performance of matching and sorting (n=44): time 0.001498/0.1956, allocations: 481.8 kB / 301.4 MB, free: 19.54 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001455/0.1957, allocations: 421.2 kB / 301.8 MB, free: 19.04 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00392/0.1996, allocations: 2.026 MB / 303.8 MB, free: 18.23 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 9.228e-05/0.1997, allocations: 39.31 kB / 303.9 MB, free: 18.2 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008857/0.2006, allocations: 1.063 MB / 304.9 MB, free: 17.38 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001625/0.2008, allocations: 162.5 kB / 305.1 MB, free: 17.25 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002255/0.201, allocations: 129.1 kB / 305.2 MB, free: 17.18 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001273/0.2011, allocations: 0.5063 MB / 305.7 MB, free: 16.68 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002753/0.2014, allocations: 80.28 kB / 305.8 MB, free: 16.67 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005891/0.202, allocations: 0.8023 MB / 306.6 MB, free: 15.73 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000735/0.2027, allocations: 459.8 kB / 307.1 MB, free: 15.36 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.255e-05/0.2027, allocations: 1 kB / 307.1 MB, free: 15.36 MB / 266.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001115/0.2039, allocations: 0.5979 MB / 307.7 MB, free: 15.14 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.47e-05/0.2039, allocations: 7.031 kB / 307.7 MB, free: 15.14 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.217e-05/0.2039, allocations: 4.125 kB / 307.7 MB, free: 15.14 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.003e-05/0.2039, allocations: 11.03 kB / 307.7 MB, free: 15.14 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003818/0.2043, allocations: 147.2 kB / 307.8 MB, free: 15.14 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.741e-05/0.2043, allocations: 13.11 kB / 307.8 MB, free: 15.14 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006312/0.205, allocations: 120.1 kB / 308 MB, free: 15.09 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.254e-05/0.205, allocations: 29.5 kB / 308 MB, free: 15.09 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.0003185/0.2053, allocations: 207.7 kB / 308.2 MB, free: 14.9 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001729/0.2055, allocations: 196 kB / 308.4 MB, free: 14.8 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005888/0.2061, allocations: 431.3 kB / 308.8 MB, free: 14.62 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.965e-06/0.2061, allocations: 3.562 kB / 308.8 MB, free: 14.62 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.815e-06/0.2061, allocations: 0 / 308.8 MB, free: 14.62 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.378e-06/0.2061, allocations: 1.688 kB / 308.8 MB, free: 14.62 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002279/0.2084, allocations: 1.753 MB / 310.6 MB, free: 13.75 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.721e-06/0.2084, allocations: 3.812 kB / 310.6 MB, free: 13.75 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003166/0.2087, allocations: 101.9 kB / 310.7 MB, free: 13.69 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.843e-06/0.2087, allocations: 3.719 kB / 310.7 MB, free: 13.69 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.494e-05/0.2088, allocations: 28.02 kB / 310.7 MB, free: 13.66 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.839e-06/0.2088, allocations: 0 / 310.7 MB, free: 13.66 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.2088, allocations: 4 kB / 310.7 MB, free: 13.66 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006865/0.2095, allocations: 0.6926 MB / 311.4 MB, free: 12.94 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003885/0.2099, allocations: 317.2 kB / 311.7 MB, free: 12.63 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001068/0.21, allocations: 19.92 kB / 311.7 MB, free: 12.61 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004057/0.2104, allocations: 99.91 kB / 311.8 MB, free: 12.52 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002358/0.2106, allocations: 195.6 kB / 312 MB, free: 12.32 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.856e-05/0.2106, allocations: 16 kB / 312 MB, free: 12.31 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001062/0.2117, allocations: 1.181 MB / 313.2 MB, free: 11.11 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2117, allocations: 0 / 313.2 MB, free: 11.11 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006838/0.2124, allocations: 319.3 kB / 313.5 MB, free: 10.79 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.00104/0.2134, allocations: 457.8 kB / 314 MB, free: 10.57 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005457/0.214, allocations: 302.7 kB / 314.3 MB, free: 10.29 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/0.214, allocations: 1.625 kB / 314.3 MB, free: 10.29 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001639/0.2141, allocations: 147.6 kB / 314.4 MB, free: 10.16 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009319/0.2151, allocations: 299.9 kB / 314.7 MB, free: 9.863 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005001/0.2201, allocations: 2.847 MB / 317.5 MB, free: 6.969 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002705/0.2203, allocations: 379.1 kB / 317.9 MB, free: 6.574 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0007134/0.221, allocations: 202.4 kB / 318.1 MB, free: 6.371 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002304/0.2213, allocations: 104.5 kB / 318.2 MB, free: 6.27 MB / 266.7 MB Notification: Performance of SimCode: time 2.946e-06/0.2213, allocations: 1.312 kB / 318.2 MB, free: 6.27 MB / 266.7 MB Notification: Performance of Templates: time 0.02442/0.2457, allocations: 21.38 MB / 339.6 MB, free: 1.152 MB / 282.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","",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.8173621180467308]