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.0008448/0.0008448, allocations: 88.28 kB / 21.44 MB, free: 3.129 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.004238/0.004238, allocations: 158.5 kB / 24.7 MB, free: 9.441 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 0.8489/0.8489, allocations: 177 MB / 204.8 MB, free: 5.75 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.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=36000,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.495e-06/2.495e-06, allocations: 0 / 325.8 MB, free: 15.42 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.195e-05/3.444e-05, allocations: 6.781 kB / 325.8 MB, free: 15.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.005458/0.005492, allocations: 5.216 MB / 331 MB, free: 10.16 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00387/0.009362, allocations: 2.617 MB / 333.6 MB, free: 7.535 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008234/0.01019, allocations: 31.81 kB / 333.6 MB, free: 7.504 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001445/0.01163, allocations: 0.7346 MB / 334.4 MB, free: 6.766 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001035/0.01267, allocations: 0.5863 MB / 334.9 MB, free: 6.176 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009433/0.01361, allocations: 0.5207 MB / 335.5 MB, free: 5.66 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001546/0.01515, allocations: 1.648 MB / 337.1 MB, free: 4.004 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005179/0.01567, allocations: 387 kB / 337.5 MB, free: 3.605 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001427/0.0171, allocations: 0.8887 MB / 338.4 MB, free: 2.715 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005936/0.01769, allocations: 0.6312 MB / 339 MB, free: 2.082 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001196/0.01781, allocations: 132 kB / 339.1 MB, free: 1.953 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003422/0.01816, allocations: 215.8 kB / 339.4 MB, free: 1.742 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003683/0.01852, allocations: 0.6543 MB / 340 MB, free: 1.082 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004031/0.01893, allocations: 0.5687 MB / 340.6 MB, free: 0.5117 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001839/0.02077, allocations: 2.465 MB / 343 MB, free: 14.04 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.02077, allocations: 0 / 343 MB, free: 14.04 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.02077, allocations: 0 / 343 MB, free: 14.04 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.522e-05/0.02081, allocations: 0 / 343 MB, free: 14.04 MB / 314.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.00356/0.02437, allocations: 2.553 MB / 345.6 MB, free: 11.44 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.398e-05/0.02441, allocations: 11.98 kB / 345.6 MB, free: 11.43 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002449/0.02466, allocations: 231.5 kB / 345.8 MB, free: 11.2 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001664/0.02632, allocations: 1.506 MB / 347.3 MB, free: 9.641 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001105/0.02643, allocations: 143.7 kB / 347.5 MB, free: 9.48 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.962e-05/0.02652, allocations: 88.31 kB / 347.6 MB, free: 9.395 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001401/0.02792, allocations: 1.715 MB / 349.3 MB, free: 7.457 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.717e-05/0.02794, allocations: 192 / 349.3 MB, free: 7.457 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.825e-05/0.028, allocations: 44.12 kB / 349.3 MB, free: 7.414 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.447e-05/0.02801, allocations: 20 kB / 349.3 MB, free: 7.395 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008692/0.02888, allocations: 0.7221 MB / 350.1 MB, free: 6.672 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004576/0.03346, allocations: 4.035 MB / 354.1 MB, free: 2.484 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007522/0.03421, allocations: 0.5157 MB / 354.6 MB, free: 1.957 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004632/0.03467, allocations: 365.7 kB / 355 MB, free: 1.598 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.651e-05/0.03472, allocations: 4 kB / 355 MB, free: 1.594 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.29e-05/0.03475, allocations: 46.56 kB / 355 MB, free: 1.539 MB / 314.7 MB Notification: Performance of pre-optimization done (n=44): time 2.525e-06/0.03475, allocations: 0 / 355 MB, free: 1.539 MB / 314.7 MB Notification: Performance of matching and sorting (n=44): time 0.001186/0.03594, allocations: 0.8259 MB / 355.8 MB, free: 0.707 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001408/0.03608, allocations: 423.2 kB / 356.3 MB, free: 200 kB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002791/0.03887, allocations: 2.719 MB / 359 MB, free: 13.43 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.035e-05/0.03896, allocations: 37.7 kB / 359 MB, free: 13.38 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004925/0.03945, allocations: 0.9066 MB / 359.9 MB, free: 12.47 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001171/0.03957, allocations: 166.5 kB / 360.1 MB, free: 12.31 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000145/0.03972, allocations: 122.3 kB / 360.2 MB, free: 12.18 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.507e-05/0.0398, allocations: 329.9 kB / 360.5 MB, free: 11.86 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003422/0.04014, allocations: 257.1 kB / 360.8 MB, free: 11.61 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005774/0.04072, allocations: 0.8868 MB / 361.7 MB, free: 10.51 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006321/0.04135, allocations: 0.622 MB / 362.3 MB, free: 9.812 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.571e-06/0.04136, allocations: 7.938 kB / 362.3 MB, free: 9.805 MB / 330.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001105/0.04246, allocations: 0.8517 MB / 363.1 MB, free: 8.945 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.75e-05/0.04249, allocations: 11.12 kB / 363.2 MB, free: 8.938 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.236e-05/0.0425, allocations: 8 kB / 363.2 MB, free: 8.93 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.468e-05/0.04253, allocations: 8 kB / 363.2 MB, free: 8.922 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003352/0.04286, allocations: 160 kB / 363.3 MB, free: 8.766 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.177e-05/0.04287, allocations: 15.94 kB / 363.3 MB, free: 8.75 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005855/0.04346, allocations: 155.4 kB / 363.5 MB, free: 8.598 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.927e-05/0.0435, allocations: 28 kB / 363.5 MB, free: 8.57 MB / 330.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.0006444/0.04414, allocations: 0.5639 MB / 364.1 MB, free: 7.996 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001741/0.04432, allocations: 182.8 kB / 364.3 MB, free: 7.816 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008299/0.04515, allocations: 0.6986 MB / 365 MB, free: 7.109 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.04515, allocations: 4 kB / 365 MB, free: 7.105 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.04516, allocations: 4 kB / 365 MB, free: 7.102 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.04516, allocations: 3.984 kB / 365 MB, free: 7.098 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002296/0.04746, allocations: 1.788 MB / 366.8 MB, free: 5.258 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.04746, allocations: 0 / 366.8 MB, free: 5.258 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002693/0.04773, allocations: 108 kB / 366.9 MB, free: 5.152 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.21e-06/0.04774, allocations: 8 kB / 366.9 MB, free: 5.145 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.425e-05/0.04776, allocations: 11.94 kB / 366.9 MB, free: 5.133 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.699e-06/0.04777, allocations: 4 kB / 366.9 MB, free: 5.129 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/0.04777, allocations: 0 / 366.9 MB, free: 5.129 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001132/0.0489, allocations: 1.04 MB / 367.9 MB, free: 4.059 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005016/0.0494, allocations: 338.7 kB / 368.3 MB, free: 3.727 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001093/0.04951, allocations: 15.94 kB / 368.3 MB, free: 3.711 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005369/0.05005, allocations: 139.8 kB / 368.4 MB, free: 3.574 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002074/0.05026, allocations: 155.7 kB / 368.6 MB, free: 3.422 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.806e-05/0.05028, allocations: 16 kB / 368.6 MB, free: 3.406 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.00182/0.0521, allocations: 1.931 MB / 370.5 MB, free: 1.453 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.31e-07/0.05211, allocations: 0 / 370.5 MB, free: 1.453 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007666/0.05287, allocations: 315.3 kB / 370.8 MB, free: 1.145 MB / 330.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.0008794/0.05375, allocations: 0.4949 MB / 371.3 MB, free: 0.8125 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0008407/0.05459, allocations: 0.5764 MB / 371.9 MB, free: 240 kB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.19e-06/0.0546, allocations: 1.125 kB / 371.9 MB, free: 240 kB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004014/0.055, allocations: 331.9 kB / 372.2 MB, free: 15.91 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008927/0.05589, allocations: 292.4 kB / 372.5 MB, free: 15.63 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004416/0.06031, allocations: 3.5 MB / 376 MB, free: 12.07 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006283/0.06094, allocations: 0.8454 MB / 376.9 MB, free: 11.19 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003856/0.06132, allocations: 108.4 kB / 377 MB, free: 11.08 MB / 346.7 MB Notification: Performance of SimCode: time 1.643e-06/0.06132, allocations: 4 kB / 377 MB, free: 11.08 MB / 346.7 MB Notification: Performance of Templates: time 0.02506/0.08638, allocations: 23.38 MB / 400.3 MB, free: 3.754 MB / 362.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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 6.524484327994287]