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.001082/0.001082, allocations: 117.6 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001136/0.001136, allocations: 199.9 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.458/1.458, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001088/0.001088, allocations: 59.91 kB / 358.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2962/0.2973, allocations: 50.54 MB / 409.2 MB, free: 1.773 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.006946/0.3043, allocations: 5.844 MB / 415.1 MB, free: 11.91 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004221/0.3085, allocations: 2.735 MB / 417.8 MB, free: 9.16 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005006/0.309, allocations: 27.88 kB / 417.8 MB, free: 9.133 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001565/0.3106, allocations: 0.7752 MB / 418.6 MB, free: 8.355 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001083/0.3117, allocations: 0.5516 MB / 419.2 MB, free: 7.801 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001106/0.3129, allocations: 0.5179 MB / 419.7 MB, free: 7.289 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001649/0.3145, allocations: 1.602 MB / 421.3 MB, free: 5.68 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007437/0.3153, allocations: 0.6001 MB / 421.9 MB, free: 5.051 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000631/0.3159, allocations: 0.6073 MB / 422.5 MB, free: 4.441 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000782/0.3167, allocations: 0.7471 MB / 423.2 MB, free: 3.691 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000179/0.3169, allocations: 132 kB / 423.4 MB, free: 3.562 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00035/0.3172, allocations: 211.9 kB / 423.6 MB, free: 3.355 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005275/0.3178, allocations: 0.6504 MB / 424.2 MB, free: 2.703 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000906/0.3187, allocations: 0.9204 MB / 425.1 MB, free: 1.777 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002526/0.3212, allocations: 2.488 MB / 427.6 MB, free: 15.28 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.754e-06/0.3213, allocations: 4 kB / 427.6 MB, free: 15.28 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.3213, allocations: 0 / 427.6 MB, free: 15.28 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.377e-05/0.3213, allocations: 0 / 427.6 MB, free: 15.28 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.004671/0.326, allocations: 2.591 MB / 430.2 MB, free: 12.62 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.801e-05/0.326, allocations: 8.031 kB / 430.2 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00036/0.3264, allocations: 222.2 kB / 430.5 MB, free: 12.4 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002243/0.3287, allocations: 1.551 MB / 432 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001039/0.3288, allocations: 92.27 kB / 432.1 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001177/0.3289, allocations: 91.94 kB / 432.2 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001686/0.3306, allocations: 1.104 MB / 433.3 MB, free: 9.406 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.103e-05/0.3306, allocations: 0 / 433.3 MB, free: 9.406 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.354e-05/0.3307, allocations: 36 kB / 433.3 MB, free: 9.371 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.991e-05/0.3308, allocations: 24 kB / 433.3 MB, free: 9.348 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001283/0.332, allocations: 0.7143 MB / 434.1 MB, free: 8.637 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006319/0.3384, allocations: 4.595 MB / 438.7 MB, free: 3.867 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001242/0.3396, allocations: 0.9453 MB / 439.6 MB, free: 2.82 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006928/0.3403, allocations: 378 kB / 440 MB, free: 2.449 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.079e-05/0.3404, allocations: 8 kB / 440 MB, free: 2.441 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.772e-05/0.3405, allocations: 42.56 kB / 440 MB, free: 2.391 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.004e-06/0.3405, allocations: 4 kB / 440 MB, free: 2.387 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.001663/0.3421, allocations: 0.8199 MB / 440.8 MB, free: 1.559 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002112/0.3424, allocations: 427.2 kB / 441.3 MB, free: 1.043 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003382/0.3458, allocations: 2.76 MB / 444 MB, free: 14.24 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.072e-05/0.3458, allocations: 37.7 kB / 444.1 MB, free: 14.2 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008313/0.3467, allocations: 0.8863 MB / 444.9 MB, free: 13.3 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001286/0.3468, allocations: 157.7 kB / 445.1 MB, free: 13.14 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002089/0.347, allocations: 130.2 kB / 445.2 MB, free: 13.01 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001634/0.3472, allocations: 333.9 kB / 445.6 MB, free: 12.68 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000585/0.3478, allocations: 249.2 kB / 445.8 MB, free: 12.43 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007066/0.3485, allocations: 0.5363 MB / 446.3 MB, free: 11.78 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001055/0.3496, allocations: 0.6133 MB / 446.9 MB, free: 11.09 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.183e-06/0.3496, allocations: 4 kB / 446.9 MB, free: 11.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.00161/0.3512, allocations: 0.8528 MB / 447.8 MB, free: 10.23 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.453e-05/0.3512, allocations: 8 kB / 447.8 MB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.485e-05/0.3512, allocations: 12.52 kB / 447.8 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.353e-05/0.3513, allocations: 12 kB / 447.8 MB, free: 10.2 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005822/0.3519, allocations: 155.8 kB / 448 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.945e-05/0.3519, allocations: 15.88 kB / 448 MB, free: 10.03 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008975/0.3528, allocations: 155.2 kB / 448.2 MB, free: 9.875 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.279e-05/0.3529, allocations: 32 kB / 448.2 MB, free: 9.844 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.0006514/0.3535, allocations: 0.5522 MB / 448.7 MB, free: 9.281 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002321/0.3538, allocations: 181.8 kB / 448.9 MB, free: 9.102 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001329/0.3551, allocations: 0.7079 MB / 449.6 MB, free: 8.391 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.533e-06/0.3551, allocations: 4 kB / 449.6 MB, free: 8.387 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/0.3551, allocations: 3.938 kB / 449.6 MB, free: 8.383 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.06e-06/0.3551, allocations: 0 / 449.6 MB, free: 8.383 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003248/0.3584, allocations: 2.121 MB / 451.8 MB, free: 6.188 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/0.3584, allocations: 7.938 kB / 451.8 MB, free: 6.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004724/0.3589, allocations: 107.9 kB / 451.9 MB, free: 6.074 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.617e-06/0.3589, allocations: 0 / 451.9 MB, free: 6.074 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.485e-05/0.359, allocations: 16.09 kB / 451.9 MB, free: 6.059 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.564e-06/0.359, allocations: 0 / 451.9 MB, free: 6.059 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.359, allocations: 4 kB / 451.9 MB, free: 6.055 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001729/0.3607, allocations: 1.051 MB / 452.9 MB, free: 4.973 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005799/0.3613, allocations: 414.6 kB / 453.3 MB, free: 4.547 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001611/0.3615, allocations: 16 kB / 453.4 MB, free: 4.531 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009827/0.3625, allocations: 139.8 kB / 453.5 MB, free: 4.395 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002901/0.3628, allocations: 147.8 kB / 453.6 MB, free: 4.25 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.493e-05/0.3628, allocations: 19.94 kB / 453.7 MB, free: 4.23 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002477/0.3653, allocations: 1.96 MB / 455.6 MB, free: 2.25 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3653, allocations: 0 / 455.6 MB, free: 2.25 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008077/0.3661, allocations: 315.3 kB / 455.9 MB, free: 1.941 MB / 366.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.001074/0.3672, allocations: 482.4 kB / 456.4 MB, free: 1.621 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001206/0.3684, allocations: 0.596 MB / 457 MB, free: 1.023 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.3685, allocations: 3.938 kB / 457 MB, free: 1.02 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006229/0.3691, allocations: 340.7 kB / 457.3 MB, free: 0.6875 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001256/0.3704, allocations: 322.8 kB / 457.6 MB, free: 384 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005069/0.3754, allocations: 3.489 MB / 461.1 MB, free: 12.84 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001045/0.3765, allocations: 1.437 MB / 462.6 MB, free: 11.37 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006866/0.3772, allocations: 303.1 kB / 462.9 MB, free: 11.07 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002931/0.3775, allocations: 103.4 kB / 463 MB, free: 10.97 MB / 382.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3775, allocations: 0 / 463 MB, free: 10.97 MB / 382.1 MB Notification: Performance of Templates: time 0.03526/0.4128, allocations: 21.39 MB / 484.4 MB, free: 5.734 MB / 398.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