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.001313/0.001313, allocations: 114.2 kB / 19.04 MB, free: 3.281 MB / 14.72 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.0013/0.0013, allocations: 188.5 kB / 22.21 MB, free: 112 kB / 14.72 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.446/1.446, allocations: 225.6 MB / 250.8 MB, free: 13.41 MB / 206.1 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 0.001493/0.001493, allocations: 47.92 kB / 368.7 MB, free: 10.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3184/0.3199, allocations: 52.14 MB / 420.9 MB, free: 15.13 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.01162/0.3315, allocations: 5.854 MB / 426.7 MB, free: 9.25 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006501/0.338, allocations: 2.602 MB / 429.3 MB, free: 6.637 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001227/0.3393, allocations: 23.88 kB / 429.3 MB, free: 6.613 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002292/0.3415, allocations: 0.7674 MB / 430.1 MB, free: 5.848 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001615/0.3432, allocations: 0.5205 MB / 430.6 MB, free: 5.324 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00152/0.3447, allocations: 0.505 MB / 431.1 MB, free: 4.824 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002728/0.3474, allocations: 1.584 MB / 432.7 MB, free: 3.23 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008316/0.3482, allocations: 402.6 kB / 433.1 MB, free: 2.816 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001135/0.3494, allocations: 0.6151 MB / 433.7 MB, free: 2.199 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001408/0.3508, allocations: 0.7705 MB / 434.5 MB, free: 1.426 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004111/0.3512, allocations: 132 kB / 434.6 MB, free: 1.297 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007293/0.3519, allocations: 215.9 kB / 434.8 MB, free: 1.086 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008518/0.3528, allocations: 0.6427 MB / 435.5 MB, free: 452 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001725/0.3545, allocations: 0.9166 MB / 436.4 MB, free: 15.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003559/0.3581, allocations: 2.498 MB / 438.9 MB, free: 13.01 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.3581, allocations: 0 / 438.9 MB, free: 13.01 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.3581, allocations: 0 / 438.9 MB, free: 13.01 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.716e-05/0.3581, allocations: 0 / 438.9 MB, free: 13.01 MB / 350.1 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.005816/0.3639, allocations: 2.639 MB / 441.5 MB, free: 10.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.286e-05/0.364, allocations: 8.031 kB / 441.5 MB, free: 10.31 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004475/0.3644, allocations: 235.4 kB / 441.8 MB, free: 10.08 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002519/0.367, allocations: 1.548 MB / 443.3 MB, free: 8.484 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001281/0.3671, allocations: 100.2 kB / 443.4 MB, free: 8.383 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001368/0.3672, allocations: 87.94 kB / 443.5 MB, free: 8.297 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002167/0.3694, allocations: 1.1 MB / 444.6 MB, free: 7.117 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.703e-05/0.3694, allocations: 3.938 kB / 444.6 MB, free: 7.113 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001019/0.3695, allocations: 40 kB / 444.6 MB, free: 7.074 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.277e-05/0.3695, allocations: 20 kB / 444.7 MB, free: 7.055 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001508/0.371, allocations: 0.7182 MB / 445.4 MB, free: 6.336 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0085/0.3795, allocations: 4.6 MB / 450 MB, free: 1.562 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001499/0.381, allocations: 0.9218 MB / 450.9 MB, free: 0.543 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000797/0.3818, allocations: 350 kB / 451.2 MB, free: 200 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.348e-05/0.3819, allocations: 11.98 kB / 451.2 MB, free: 188 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.815e-05/0.382, allocations: 42.56 kB / 451.3 MB, free: 136 kB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.976e-06/0.382, allocations: 4 kB / 451.3 MB, free: 132 kB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.002053/0.384, allocations: 0.8326 MB / 452.1 MB, free: 15.29 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002732/0.3843, allocations: 423.2 kB / 452.5 MB, free: 14.78 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004129/0.3884, allocations: 2.739 MB / 455.3 MB, free: 12 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001261/0.3885, allocations: 37.7 kB / 455.3 MB, free: 11.95 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009133/0.3895, allocations: 0.8796 MB / 456.2 MB, free: 11.07 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001896/0.3896, allocations: 166.6 kB / 456.4 MB, free: 10.9 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002396/0.3899, allocations: 130.3 kB / 456.5 MB, free: 10.77 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001781/0.3901, allocations: 326 kB / 456.8 MB, free: 10.45 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006049/0.3907, allocations: 253.2 kB / 457.1 MB, free: 10.2 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009248/0.3916, allocations: 0.5363 MB / 457.6 MB, free: 9.539 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00117/0.3928, allocations: 0.621 MB / 458.2 MB, free: 8.84 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.222e-06/0.3928, allocations: 0 / 458.2 MB, free: 8.84 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001981/0.3947, allocations: 0.8617 MB / 459.1 MB, free: 7.969 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.355e-05/0.3948, allocations: 8 kB / 459.1 MB, free: 7.961 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.124e-05/0.3948, allocations: 4.531 kB / 459.1 MB, free: 7.957 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.606e-05/0.3948, allocations: 12 kB / 459.1 MB, free: 7.945 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006063/0.3954, allocations: 159.7 kB / 459.3 MB, free: 7.789 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.091e-05/0.3954, allocations: 19.86 kB / 459.3 MB, free: 7.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001122/0.3966, allocations: 163.3 kB / 459.4 MB, free: 7.609 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.197e-05/0.3966, allocations: 32 kB / 459.5 MB, free: 7.578 MB / 366.1 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.001141/0.3978, allocations: 0.5522 MB / 460 MB, free: 7.016 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003626/0.3981, allocations: 186.8 kB / 460.2 MB, free: 6.832 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001534/0.3997, allocations: 0.6961 MB / 460.9 MB, free: 6.133 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.916e-06/0.3997, allocations: 4 kB / 460.9 MB, free: 6.129 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.055e-06/0.3997, allocations: 3.938 kB / 460.9 MB, free: 6.125 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.165e-06/0.3997, allocations: 7.922 kB / 460.9 MB, free: 6.117 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003648/0.4033, allocations: 2.117 MB / 463 MB, free: 3.926 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.989e-06/0.4034, allocations: 0 / 463 MB, free: 3.926 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004965/0.4038, allocations: 111.9 kB / 463.1 MB, free: 3.816 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.235e-06/0.4039, allocations: 4 kB / 463.1 MB, free: 3.812 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.96e-05/0.4039, allocations: 12.09 kB / 463.1 MB, free: 3.801 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.891e-06/0.4039, allocations: 4 kB / 463.2 MB, free: 3.797 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.674e-06/0.4039, allocations: 0 / 463.2 MB, free: 3.797 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001902/0.4058, allocations: 1.06 MB / 464.2 MB, free: 2.707 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000707/0.4065, allocations: 415.8 kB / 464.6 MB, free: 2.281 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001731/0.4067, allocations: 16 kB / 464.6 MB, free: 2.266 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009579/0.4076, allocations: 139.8 kB / 464.8 MB, free: 2.129 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003171/0.408, allocations: 147.8 kB / 464.9 MB, free: 1.984 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.503e-05/0.408, allocations: 19.94 kB / 464.9 MB, free: 1.965 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002885/0.4109, allocations: 1.947 MB / 466.9 MB, free: 15.99 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.4109, allocations: 4 kB / 466.9 MB, free: 15.99 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000974/0.4119, allocations: 319.3 kB / 467.2 MB, free: 15.68 MB / 382.1 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.001835/0.4137, allocations: 478.5 kB / 467.7 MB, free: 15.38 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001365/0.4151, allocations: 0.5687 MB / 468.2 MB, free: 14.81 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.814e-06/0.4151, allocations: 4 kB / 468.2 MB, free: 14.81 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006611/0.4157, allocations: 324.8 kB / 468.6 MB, free: 14.49 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001463/0.4172, allocations: 317.7 kB / 468.9 MB, free: 14.18 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005885/0.4231, allocations: 3.551 MB / 472.4 MB, free: 10.59 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001205/0.4243, allocations: 1.429 MB / 473.8 MB, free: 9.125 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000815/0.4251, allocations: 290.8 kB / 474.1 MB, free: 8.836 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003189/0.4254, allocations: 103.4 kB / 474.2 MB, free: 8.734 MB / 382.1 MB Notification: Performance of SimCode: time 1.162e-06/0.4254, allocations: 0 / 474.2 MB, free: 8.734 MB / 382.1 MB Notification: Performance of Templates: time 0.04256/0.468, allocations: 21.65 MB / 495.9 MB, free: 3.277 MB / 398.1 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.725352252833545]