Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009241/0.0009241, allocations: 88.34 kB / 22.22 MB, free: 2.281 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009493/0.0009493, allocations: 169.3 kB / 25.61 MB, free: 8.914 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.037/1.037, allocations: 177 MB / 205.9 MB, free: 4.445 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.403e-06/1.403e-06, allocations: 0 / 274.1 MB, free: 4.281 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.022e-05/2.162e-05, allocations: 3.406 kB / 274.1 MB, free: 4.277 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.005537/0.005559, allocations: 5.598 MB / 279.7 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004519/0.01008, allocations: 2.68 MB / 282.4 MB, free: 11.97 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007746/0.01085, allocations: 31.81 kB / 282.4 MB, free: 11.94 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001404/0.01226, allocations: 0.7462 MB / 283.2 MB, free: 11.19 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001047/0.0133, allocations: 0.5824 MB / 283.7 MB, free: 10.61 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009883/0.01429, allocations: 0.5146 MB / 284.3 MB, free: 10.09 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001871/0.01616, allocations: 1.636 MB / 285.9 MB, free: 8.445 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006023/0.01676, allocations: 391 kB / 286.3 MB, free: 8.039 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00114/0.0179, allocations: 0.8888 MB / 287.2 MB, free: 7.148 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008623/0.01877, allocations: 0.6468 MB / 287.8 MB, free: 6.5 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002279/0.019, allocations: 136 kB / 287.9 MB, free: 6.367 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004058/0.0194, allocations: 215.8 kB / 288.2 MB, free: 6.156 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003421/0.02282, allocations: 0.6543 MB / 288.8 MB, free: 5.5 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000667/0.02349, allocations: 0.5804 MB / 289.4 MB, free: 4.918 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001356/0.02485, allocations: 1.518 MB / 290.9 MB, free: 3.395 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.02485, allocations: 4 kB / 290.9 MB, free: 3.391 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.02485, allocations: 0 / 290.9 MB, free: 3.391 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.959e-05/0.02489, allocations: 0 / 290.9 MB, free: 3.391 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.002916/0.02781, allocations: 2.648 MB / 293.6 MB, free: 0.6914 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.458e-05/0.02784, allocations: 8.031 kB / 293.6 MB, free: 0.6836 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002968/0.02814, allocations: 299.5 kB / 293.9 MB, free: 400 kB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001091/0.02923, allocations: 1.107 MB / 295 MB, free: 15.22 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.603e-05/0.02932, allocations: 147.7 kB / 295.1 MB, free: 15.06 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.213e-05/0.02942, allocations: 96.38 kB / 295.2 MB, free: 14.97 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009018/0.03032, allocations: 1.388 MB / 296.6 MB, free: 13.33 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.658e-05/0.03033, allocations: 192 / 296.6 MB, free: 13.33 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.576e-05/0.03039, allocations: 44.12 kB / 296.6 MB, free: 13.29 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.445e-05/0.03041, allocations: 20 kB / 296.7 MB, free: 13.27 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003221/0.03073, allocations: 241.7 kB / 296.9 MB, free: 13.03 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003662/0.03439, allocations: 4.186 MB / 301.1 MB, free: 8.68 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000434/0.03482, allocations: 319.5 kB / 301.4 MB, free: 8.355 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002317/0.03505, allocations: 176.1 kB / 301.6 MB, free: 8.18 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.932e-05/0.03509, allocations: 12 kB / 301.6 MB, free: 8.168 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.058e-05/0.03512, allocations: 41.39 kB / 301.6 MB, free: 8.117 MB / 282.7 MB Notification: Performance of pre-optimization done (n=44): time 1.413e-06/0.03513, allocations: 3.938 kB / 301.6 MB, free: 8.113 MB / 282.7 MB Notification: Performance of matching and sorting (n=44): time 0.0005811/0.03571, allocations: 442.1 kB / 302 MB, free: 7.676 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002443/0.03595, allocations: 423.2 kB / 302.5 MB, free: 7.164 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001485/0.03744, allocations: 1.957 MB / 304.4 MB, free: 5.152 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.687e-05/0.03747, allocations: 37.7 kB / 304.5 MB, free: 5.109 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006181/0.03809, allocations: 1.076 MB / 305.5 MB, free: 4.023 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.16e-05/0.03818, allocations: 170.6 kB / 305.7 MB, free: 3.855 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001319/0.03831, allocations: 131.9 kB / 305.8 MB, free: 3.719 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0004219/0.03874, allocations: 0.5004 MB / 306.3 MB, free: 3.211 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000104/0.03884, allocations: 61.27 kB / 306.4 MB, free: 3.152 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003522/0.03919, allocations: 0.7885 MB / 307.2 MB, free: 2.109 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003149/0.03951, allocations: 431.7 kB / 307.6 MB, free: 1.586 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.03951, allocations: 4 kB / 307.6 MB, free: 1.582 MB / 282.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0005869/0.0401, allocations: 0.5467 MB / 308.1 MB, free: 1.023 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.382e-05/0.04011, allocations: 4.75 kB / 308.2 MB, free: 1.02 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.018e-05/0.04012, allocations: 15.97 kB / 308.2 MB, free: 1.004 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.182e-05/0.04013, allocations: 12 kB / 308.2 MB, free: 0.9922 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002949/0.04043, allocations: 147.7 kB / 308.3 MB, free: 0.8477 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.486e-06/0.04044, allocations: 12 kB / 308.3 MB, free: 0.8359 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003735/0.04081, allocations: 115.5 kB / 308.4 MB, free: 0.7227 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.531e-05/0.04085, allocations: 24 kB / 308.5 MB, free: 0.6992 MB / 282.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.0002085/0.04105, allocations: 216.2 kB / 308.7 MB, free: 488 kB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001576/0.04121, allocations: 202.8 kB / 308.9 MB, free: 284 kB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004726/0.04169, allocations: 392.1 kB / 309.3 MB, free: 15.88 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.04169, allocations: 4 kB / 309.3 MB, free: 15.88 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.765e-06/0.04169, allocations: 4 kB / 309.3 MB, free: 15.88 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.0417, allocations: 3.984 kB / 309.3 MB, free: 15.87 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00137/0.04307, allocations: 1.352 MB / 310.6 MB, free: 14.47 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.04307, allocations: 0 / 310.6 MB, free: 14.47 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002421/0.04331, allocations: 99.88 kB / 310.7 MB, free: 14.37 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.739e-06/0.04332, allocations: 4 kB / 310.7 MB, free: 14.37 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.526e-05/0.04334, allocations: 12 kB / 310.7 MB, free: 14.36 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.68e-06/0.04335, allocations: 15.86 kB / 310.8 MB, free: 14.34 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.04335, allocations: 0 / 310.8 MB, free: 14.34 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005956/0.04394, allocations: 0.6538 MB / 311.4 MB, free: 13.65 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003257/0.04427, allocations: 278.6 kB / 311.7 MB, free: 13.38 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001033/0.04437, allocations: 12 kB / 311.7 MB, free: 13.36 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003838/0.04476, allocations: 99.84 kB / 311.8 MB, free: 13.27 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000135/0.04489, allocations: 91.84 kB / 311.9 MB, free: 13.18 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.339e-05/0.04492, allocations: 15.98 kB / 311.9 MB, free: 13.16 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0008286/0.04574, allocations: 1.048 MB / 312.9 MB, free: 12.09 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.04574, allocations: 0 / 312.9 MB, free: 12.09 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005299/0.04627, allocations: 311.4 kB / 313.2 MB, free: 11.79 MB / 298.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.0009191/0.04719, allocations: 461.7 kB / 313.7 MB, free: 11.48 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003824/0.04758, allocations: 273.4 kB / 314 MB, free: 11.21 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.596e-06/0.04758, allocations: 0 / 314 MB, free: 11.21 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001446/0.04772, allocations: 135.4 kB / 314.1 MB, free: 11.07 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007078/0.04843, allocations: 298.2 kB / 314.4 MB, free: 10.79 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003234/0.05167, allocations: 2.818 MB / 317.2 MB, free: 7.902 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002895/0.05195, allocations: 375.1 kB / 317.6 MB, free: 7.512 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0003531/0.05231, allocations: 178.5 kB / 317.7 MB, free: 7.332 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006334/0.05294, allocations: 422 kB / 318.2 MB, free: 6.918 MB / 298.7 MB Notification: Performance of SimCode: time 6.01e-07/0.05294, allocations: 0 / 318.2 MB, free: 6.918 MB / 298.7 MB Notification: Performance of Templates: time 0.02773/0.08067, allocations: 23.23 MB / 341.4 MB, free: 15.89 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.8549686800688505]