Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008006/0.0008006, allocations: 87.62 kB / 21.43 MB, free: 3.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00305/0.00305, allocations: 160.7 kB / 24.7 MB, free: 9.41 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8811/0.8811, allocations: 177.1 MB / 205 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.633e-06/1.633e-06, allocations: 0 / 325.8 MB, free: 15.44 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.17e-05/2.333e-05, allocations: 2.281 kB / 325.8 MB, free: 15.44 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.00662/0.006643, allocations: 5.227 MB / 331 MB, free: 10.18 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003891/0.01053, allocations: 2.609 MB / 333.7 MB, free: 7.562 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003902/0.01092, allocations: 31.81 kB / 333.7 MB, free: 7.531 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0015/0.01242, allocations: 0.7385 MB / 334.4 MB, free: 6.789 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009469/0.01337, allocations: 0.5862 MB / 335 MB, free: 6.199 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009407/0.01431, allocations: 0.5219 MB / 335.5 MB, free: 5.684 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00146/0.01577, allocations: 1.64 MB / 337.2 MB, free: 4.035 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005427/0.01632, allocations: 383 kB / 337.5 MB, free: 3.641 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007802/0.0171, allocations: 0.8926 MB / 338.4 MB, free: 2.746 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006425/0.01774, allocations: 0.6273 MB / 339.1 MB, free: 2.117 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001658/0.0179, allocations: 132 kB / 339.2 MB, free: 1.988 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003294/0.01823, allocations: 219.8 kB / 339.4 MB, free: 1.773 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004965/0.01873, allocations: 0.6504 MB / 340.1 MB, free: 1.117 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005392/0.01927, allocations: 0.5687 MB / 340.6 MB, free: 0.5469 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00208/0.02135, allocations: 2.465 MB / 343.1 MB, free: 14.07 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.02135, allocations: 0 / 343.1 MB, free: 14.07 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.02135, allocations: 0 / 343.1 MB, free: 14.07 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.434e-05/0.02137, allocations: 3.938 kB / 343.1 MB, free: 14.07 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.002596/0.02396, allocations: 2.556 MB / 345.7 MB, free: 11.47 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.828e-05/0.024, allocations: 11.97 kB / 345.7 MB, free: 11.46 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002091/0.02421, allocations: 231.5 kB / 345.9 MB, free: 11.23 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001419/0.02563, allocations: 1.506 MB / 347.4 MB, free: 9.672 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.95e-05/0.02573, allocations: 147.7 kB / 347.5 MB, free: 9.508 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.298e-05/0.02581, allocations: 84.38 kB / 347.6 MB, free: 9.426 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001254/0.02707, allocations: 1.716 MB / 349.3 MB, free: 7.488 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.715e-05/0.02708, allocations: 7.875 kB / 349.3 MB, free: 7.48 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.872e-05/0.02714, allocations: 40 kB / 349.4 MB, free: 7.441 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.396e-05/0.02716, allocations: 20 kB / 349.4 MB, free: 7.422 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008187/0.02798, allocations: 0.7221 MB / 350.1 MB, free: 6.699 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004756/0.03273, allocations: 4.035 MB / 354.2 MB, free: 2.512 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009524/0.03368, allocations: 0.5271 MB / 354.7 MB, free: 1.973 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006251/0.03431, allocations: 353.7 kB / 355 MB, free: 1.625 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.246e-05/0.03435, allocations: 4 kB / 355 MB, free: 1.621 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.415e-05/0.03439, allocations: 54.55 kB / 355.1 MB, free: 1.559 MB / 314.7 MB Notification: Performance of pre-optimization done (n=44): time 1.944e-06/0.03439, allocations: 0 / 355.1 MB, free: 1.559 MB / 314.7 MB Notification: Performance of matching and sorting (n=44): time 0.001479/0.03587, allocations: 0.821 MB / 355.9 MB, free: 0.7305 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001701/0.03604, allocations: 423.2 kB / 356.3 MB, free: 224 kB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003156/0.03919, allocations: 2.715 MB / 359 MB, free: 13.46 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.447e-05/0.03924, allocations: 37.7 kB / 359.1 MB, free: 13.41 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007106/0.03995, allocations: 0.9066 MB / 360 MB, free: 12.5 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001204/0.04007, allocations: 166.6 kB / 360.1 MB, free: 12.34 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001858/0.04025, allocations: 122.3 kB / 360.3 MB, free: 12.21 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001079/0.04036, allocations: 333.9 kB / 360.6 MB, free: 11.88 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000462/0.04082, allocations: 253.2 kB / 360.8 MB, free: 11.63 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000769/0.04159, allocations: 0.8878 MB / 361.7 MB, free: 10.54 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009011/0.04249, allocations: 0.6181 MB / 362.3 MB, free: 9.84 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.699e-06/0.0425, allocations: 4 kB / 362.4 MB, free: 9.836 MB / 330.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001362/0.04386, allocations: 0.8556 MB / 363.2 MB, free: 8.973 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.521e-05/0.04388, allocations: 8 kB / 363.2 MB, free: 8.965 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.458e-06/0.04389, allocations: 8 kB / 363.2 MB, free: 8.957 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.504e-05/0.0439, allocations: 8 kB / 363.2 MB, free: 8.949 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004658/0.04437, allocations: 156.1 kB / 363.4 MB, free: 8.797 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.21e-05/0.04438, allocations: 15.94 kB / 363.4 MB, free: 8.781 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007441/0.04512, allocations: 155.4 kB / 363.6 MB, free: 8.629 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.031e-05/0.04517, allocations: 28 kB / 363.6 MB, free: 8.602 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.0006636/0.04584, allocations: 0.5638 MB / 364.1 MB, free: 8.027 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002214/0.04606, allocations: 182.8 kB / 364.3 MB, free: 7.848 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001167/0.04722, allocations: 0.6958 MB / 365 MB, free: 7.145 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.673e-06/0.04723, allocations: 7.984 kB / 365 MB, free: 7.137 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.437e-06/0.04724, allocations: 4 kB / 365 MB, free: 7.133 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.04724, allocations: 0 / 365 MB, free: 7.133 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002753/0.04999, allocations: 1.788 MB / 366.8 MB, free: 5.293 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.05, allocations: 0 / 366.8 MB, free: 5.293 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003877/0.05038, allocations: 108 kB / 366.9 MB, free: 5.188 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.464e-06/0.05039, allocations: 11.94 kB / 366.9 MB, free: 5.176 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.234e-05/0.05042, allocations: 8 kB / 366.9 MB, free: 5.168 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.24e-06/0.05043, allocations: 7.984 kB / 366.9 MB, free: 5.16 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.05043, allocations: 3.938 kB / 367 MB, free: 5.156 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00154/0.05197, allocations: 1.048 MB / 368 MB, free: 4.078 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006283/0.0526, allocations: 338.6 kB / 368.3 MB, free: 3.746 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001505/0.05275, allocations: 12 kB / 368.3 MB, free: 3.734 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007741/0.05352, allocations: 143.8 kB / 368.5 MB, free: 3.594 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000272/0.05379, allocations: 151.7 kB / 368.6 MB, free: 3.445 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.69e-05/0.05383, allocations: 19.98 kB / 368.7 MB, free: 3.426 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002353/0.05618, allocations: 1.923 MB / 370.6 MB, free: 1.48 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.05618, allocations: 0 / 370.6 MB, free: 1.48 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008787/0.05706, allocations: 315.3 kB / 370.9 MB, free: 1.172 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.001137/0.0582, allocations: 0.5143 MB / 371.4 MB, free: 0.8633 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001071/0.05927, allocations: 0.5688 MB / 372 MB, free: 296 kB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.05928, allocations: 5.125 kB / 372 MB, free: 292 kB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005789/0.05985, allocations: 327.9 kB / 372.3 MB, free: 15.96 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001102/0.06096, allocations: 295.2 kB / 372.6 MB, free: 15.68 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004337/0.06529, allocations: 3.492 MB / 376.1 MB, free: 12.13 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005653/0.06586, allocations: 0.8454 MB / 376.9 MB, free: 11.25 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002288/0.06609, allocations: 108.5 kB / 377 MB, free: 11.14 MB / 346.7 MB Notification: Performance of SimCode: time 7.21e-07/0.06609, allocations: 4 kB / 377 MB, free: 11.14 MB / 346.7 MB Notification: Performance of Templates: time 0.01967/0.08576, allocations: 23.38 MB / 400.4 MB, free: 3.828 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.sim & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.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: 6.579434030689299]