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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=72000,variableFilter="time|battery1.limIntegrator.y|battery2.capacitor.1..v|battery2.capacitor.2..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=72000,variableFilter="time|battery1.limIntegrator.y|battery2.capacitor.1..v|battery2.capacitor.2..v|battery2.limIntegrator.y|energy1.y|energy2.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008449/0.0008448, allocations: 99.14 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008932/0.0008931, allocations: 191.8 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.478/1.478, allocations: 227.7 MB / 246.4 MB, free: 9.785 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002376/0.0002376, allocations: 7.984 kB / 307.1 MB, free: 0.9297 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.122/0.1223, allocations: 51.53 MB / 358.6 MB, free: 13.4 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.005946/0.1283, allocations: 5.075 MB / 363.7 MB, free: 8.301 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004619/0.1329, allocations: 2.542 MB / 366.2 MB, free: 5.75 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008076/0.1338, allocations: 23.88 kB / 366.3 MB, free: 5.727 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001715/0.1355, allocations: 0.6966 MB / 367 MB, free: 5.027 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Electrical/Batteries/BatteryStacks/CellRCStack.mo:14:26-14:33:writable] Warning: 'each' used when modifying non-array element v. Notification: Performance of NFTyping.typeBindings: time 0.001193/0.1367, allocations: 485.6 kB / 367.4 MB, free: 4.551 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001108/0.1378, allocations: 386 kB / 367.8 MB, free: 4.18 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001769/0.1396, allocations: 1.391 MB / 369.2 MB, free: 2.785 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007891/0.1404, allocations: 455.2 kB / 369.6 MB, free: 2.32 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008834/0.1413, allocations: 494 kB / 370.1 MB, free: 1.836 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007384/0.142, allocations: 0.6068 MB / 370.7 MB, free: 1.227 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001163/0.1422, allocations: 56 kB / 370.8 MB, free: 1.172 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003469/0.1425, allocations: 127.9 kB / 370.9 MB, free: 1.047 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005584/0.1431, allocations: 0.5608 MB / 371.5 MB, free: 496 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000346/0.1434, allocations: 336.6 kB / 371.8 MB, free: 152 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2354/0.3788, allocations: 1.952 MB / 373.8 MB, free: 10.93 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.464e-06/0.3789, allocations: 1.844 kB / 373.8 MB, free: 10.93 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.3789, allocations: 3.375 kB / 373.8 MB, free: 10.93 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.378e-05/0.379, allocations: 0 / 373.8 MB, free: 10.93 MB / 302.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.004946/0.3839, allocations: 2.336 MB / 376.1 MB, free: 9.785 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.02e-05/0.384, allocations: 13.16 kB / 376.1 MB, free: 9.785 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000462/0.3844, allocations: 222.6 kB / 376.3 MB, free: 9.672 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002636/0.3871, allocations: 1.446 MB / 377.8 MB, free: 9.234 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004931/0.3876, allocations: 185.8 kB / 378 MB, free: 9.199 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000149/0.3878, allocations: 82.25 kB / 378 MB, free: 9.199 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002157/0.3899, allocations: 1.137 MB / 379.2 MB, free: 8.938 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.062e-05/0.39, allocations: 2.25 kB / 379.2 MB, free: 8.938 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.981e-05/0.3901, allocations: 38.83 kB / 379.2 MB, free: 8.938 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.04e-05/0.3901, allocations: 21.53 kB / 379.2 MB, free: 8.938 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001723/0.3918, allocations: 0.7416 MB / 380 MB, free: 8.926 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007764/0.3996, allocations: 4.716 MB / 384.7 MB, free: 7.355 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001416/0.4011, allocations: 0.9913 MB / 385.7 MB, free: 6.848 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008268/0.4019, allocations: 423.1 kB / 386.1 MB, free: 6.832 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.38e-05/0.402, allocations: 6.234 kB / 386.1 MB, free: 6.832 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.662e-05/0.402, allocations: 41.41 kB / 386.1 MB, free: 6.793 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 1.923e-06/0.402, allocations: 0 / 386.1 MB, free: 6.793 MB / 302.1 MB Notification: Performance of matching and sorting (n=44): time 0.002132/0.4042, allocations: 0.9082 MB / 387.1 MB, free: 6.645 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001026/0.4043, allocations: 422.4 kB / 387.5 MB, free: 6.145 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004444/0.4087, allocations: 2.764 MB / 390.2 MB, free: 5.652 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.617e-05/0.4088, allocations: 38.2 kB / 390.3 MB, free: 5.613 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006121/0.4094, allocations: 0.8818 MB / 391.1 MB, free: 4.852 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001184/0.4096, allocations: 158.5 kB / 391.3 MB, free: 4.719 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.152e-05/0.4096, allocations: 9.938 kB / 391.3 MB, free: 4.711 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.809e-05/0.4097, allocations: 336.1 kB / 391.6 MB, free: 4.383 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006052/0.4103, allocations: 283.5 kB / 391.9 MB, free: 4.25 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007139/0.411, allocations: 0.5627 MB / 392.5 MB, free: 3.766 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006015/0.4116, allocations: 311.8 kB / 392.8 MB, free: 3.621 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.001e-06/0.4116, allocations: 2.688 kB / 392.8 MB, free: 3.621 MB / 302.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001815/0.4135, allocations: 0.9041 MB / 393.7 MB, free: 3.199 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.366e-05/0.4135, allocations: 7.188 kB / 393.7 MB, free: 3.199 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.282e-05/0.4135, allocations: 6.594 kB / 393.7 MB, free: 3.199 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.561e-05/0.4136, allocations: 12.97 kB / 393.7 MB, free: 3.195 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006172/0.4142, allocations: 175.7 kB / 393.9 MB, free: 3.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.72e-05/0.4142, allocations: 12.16 kB / 393.9 MB, free: 3.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001187/0.4154, allocations: 214 kB / 394.1 MB, free: 3.062 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.503e-05/0.4155, allocations: 34.58 kB / 394.1 MB, free: 3.051 MB / 302.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.on1,pulseSeries.on2,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001264/0.4167, allocations: 0.5586 MB / 394.7 MB, free: 2.734 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003151/0.4171, allocations: 180.1 kB / 394.9 MB, free: 2.641 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001547/0.4186, allocations: 0.7599 MB / 395.6 MB, free: 2.238 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.304e-06/0.4186, allocations: 4.75 kB / 395.6 MB, free: 2.238 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.765e-06/0.4187, allocations: 4 kB / 395.6 MB, free: 2.234 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/0.4187, allocations: 3.219 kB / 395.7 MB, free: 2.234 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003585/0.4223, allocations: 2.195 MB / 397.8 MB, free: 0.7969 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.4223, allocations: 0 / 397.8 MB, free: 0.7969 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004831/0.4228, allocations: 129.5 kB / 398 MB, free: 0.7656 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.814e-06/0.4228, allocations: 7.266 kB / 398 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.757e-05/0.4228, allocations: 19.48 kB / 398 MB, free: 0.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.93e-06/0.4228, allocations: 0 / 398 MB, free: 0.75 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/0.4228, allocations: 3.969 kB / 398 MB, free: 0.75 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001853/0.4247, allocations: 1.127 MB / 399.1 MB, free: 112 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007362/0.4255, allocations: 419.6 kB / 399.5 MB, free: 15.8 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001927/0.4257, allocations: 14.19 kB / 399.6 MB, free: 15.8 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001048/0.4267, allocations: 210.9 kB / 399.8 MB, free: 15.72 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003008/0.427, allocations: 150.2 kB / 399.9 MB, free: 15.64 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.178e-05/0.4271, allocations: 17.84 kB / 399.9 MB, free: 15.64 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.00301/0.4301, allocations: 1.966 MB / 401.9 MB, free: 14.19 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.4301, allocations: 0 / 401.9 MB, free: 14.19 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001139/0.4312, allocations: 315.2 kB / 402.2 MB, free: 13.88 MB / 318.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001209/0.4325, allocations: 472.5 kB / 402.7 MB, free: 13.6 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001471/0.4339, allocations: 0.6479 MB / 403.3 MB, free: 12.97 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 7.854e-06/0.434, allocations: 4 kB / 403.3 MB, free: 12.97 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007443/0.4347, allocations: 380.6 kB / 403.7 MB, free: 12.61 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001449/0.4362, allocations: 304.6 kB / 404 MB, free: 12.31 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006003/0.4422, allocations: 3.984 MB / 408 MB, free: 8.289 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001098/0.4433, allocations: 1.437 MB / 409.4 MB, free: 6.824 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0008827/0.4442, allocations: 299.1 kB / 409.7 MB, free: 6.527 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003103/0.4445, allocations: 103.4 kB / 409.8 MB, free: 6.43 MB / 318.1 MB Notification: Performance of SimCode: time 6.21e-07/0.4445, allocations: 0 / 409.8 MB, free: 6.43 MB / 318.1 MB Notification: Performance of Templates: time 0.0334/0.4779, allocations: 18.64 MB / 428.4 MB, free: 3.992 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches