Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001751/0.001751, allocations: 112.2 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001926/0.001926, allocations: 187.7 kB / 23.72 MB, free: 4.68 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.477/1.477, allocations: 225.6 MB / 252.5 MB, free: 13 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001726/0.001726, allocations: 55.91 kB / 370.9 MB, free: 9.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3095/0.3112, allocations: 52.17 MB / 423.1 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.007662/0.3189, allocations: 5.874 MB / 429 MB, free: 8.781 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004546/0.3234, allocations: 2.598 MB / 431.6 MB, free: 6.172 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005838/0.324, allocations: 27.81 kB / 431.6 MB, free: 6.145 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001669/0.3257, allocations: 0.7674 MB / 432.4 MB, free: 5.379 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001164/0.3269, allocations: 0.5205 MB / 432.9 MB, free: 4.855 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001331/0.3282, allocations: 0.5133 MB / 433.4 MB, free: 4.348 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002098/0.3303, allocations: 1.598 MB / 435 MB, free: 2.742 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00066/0.3309, allocations: 403 kB / 435.4 MB, free: 2.324 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008649/0.3318, allocations: 0.6306 MB / 436 MB, free: 1.691 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00101/0.3328, allocations: 0.7666 MB / 436.8 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002104/0.333, allocations: 132 kB / 436.9 MB, free: 0.793 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004606/0.3335, allocations: 211.9 kB / 437.1 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006507/0.3341, allocations: 0.6428 MB / 437.8 MB, free: 15.94 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001044/0.3352, allocations: 0.9165 MB / 438.7 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003062/0.3382, allocations: 2.505 MB / 441.2 MB, free: 12.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.3383, allocations: 4 kB / 441.2 MB, free: 12.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3383, allocations: 0 / 441.2 MB, free: 12.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.182e-05/0.3383, allocations: 0 / 441.2 MB, free: 12.5 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.005333/0.3436, allocations: 2.549 MB / 443.7 MB, free: 9.91 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.696e-05/0.3437, allocations: 8.031 kB / 443.7 MB, free: 9.902 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000352/0.344, allocations: 235.4 kB / 444 MB, free: 9.672 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002528/0.3465, allocations: 1.486 MB / 445.5 MB, free: 8.156 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001265/0.3467, allocations: 96.27 kB / 445.6 MB, free: 8.059 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001559/0.3468, allocations: 99.84 kB / 445.7 MB, free: 7.961 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002004/0.3488, allocations: 1.096 MB / 446.8 MB, free: 6.785 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.153e-05/0.3488, allocations: 3.938 kB / 446.8 MB, free: 6.781 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.316e-05/0.3489, allocations: 40 kB / 446.8 MB, free: 6.742 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.288e-05/0.349, allocations: 24 kB / 446.8 MB, free: 6.719 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001416/0.3504, allocations: 0.7182 MB / 447.5 MB, free: 6 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007338/0.3577, allocations: 4.526 MB / 452.1 MB, free: 1.301 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001237/0.3589, allocations: 0.5302 MB / 452.6 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007898/0.3597, allocations: 358 kB / 452.9 MB, free: 416 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.061e-05/0.3598, allocations: 7.984 kB / 453 MB, free: 408 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.064e-05/0.3598, allocations: 38.56 kB / 453 MB, free: 360 kB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.124e-06/0.3598, allocations: 0 / 453 MB, free: 360 kB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.001888/0.3617, allocations: 0.8327 MB / 453.8 MB, free: 15.51 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002219/0.3619, allocations: 427.2 kB / 454.2 MB, free: 15 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003729/0.3657, allocations: 2.743 MB / 457 MB, free: 12.21 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.447e-05/0.3657, allocations: 37.7 kB / 457 MB, free: 12.17 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000814/0.3666, allocations: 0.8873 MB / 457.9 MB, free: 11.27 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000162/0.3667, allocations: 158.7 kB / 458.1 MB, free: 11.12 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002169/0.3669, allocations: 122.3 kB / 458.2 MB, free: 10.99 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001644/0.3671, allocations: 333.9 kB / 458.5 MB, free: 10.66 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005883/0.3677, allocations: 257.1 kB / 458.8 MB, free: 10.41 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008244/0.3685, allocations: 0.5402 MB / 459.3 MB, free: 9.75 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001149/0.3697, allocations: 0.6171 MB / 459.9 MB, free: 9.055 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.612e-06/0.3697, allocations: 4 kB / 459.9 MB, free: 9.051 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001786/0.3715, allocations: 0.858 MB / 460.8 MB, free: 8.184 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.286e-05/0.3715, allocations: 8 kB / 460.8 MB, free: 8.176 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.049e-05/0.3715, allocations: 4 kB / 460.8 MB, free: 8.172 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.873e-05/0.3715, allocations: 12 kB / 460.8 MB, free: 8.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006549/0.3722, allocations: 160 kB / 461 MB, free: 8.004 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.304e-05/0.3722, allocations: 19.92 kB / 461 MB, free: 7.984 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001147/0.3733, allocations: 159.3 kB / 461.1 MB, free: 7.828 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.98e-05/0.3734, allocations: 28 kB / 461.2 MB, free: 7.801 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.0008662/0.3743, allocations: 0.5638 MB / 461.7 MB, free: 7.227 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002703/0.3745, allocations: 186.8 kB / 461.9 MB, free: 7.043 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001482/0.376, allocations: 0.6884 MB / 462.6 MB, free: 6.348 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.374e-06/0.376, allocations: 4 kB / 462.6 MB, free: 6.344 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.014e-06/0.376, allocations: 3.938 kB / 462.6 MB, free: 6.34 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.376, allocations: 3.984 kB / 462.6 MB, free: 6.336 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003614/0.3797, allocations: 2.089 MB / 464.7 MB, free: 4.18 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.554e-06/0.3797, allocations: 4 kB / 464.7 MB, free: 4.176 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005206/0.3802, allocations: 107.9 kB / 464.8 MB, free: 4.07 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.53e-06/0.3802, allocations: 0 / 464.8 MB, free: 4.07 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.837e-05/0.3802, allocations: 16 kB / 464.8 MB, free: 4.055 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.991e-06/0.3802, allocations: 3.984 kB / 464.8 MB, free: 4.051 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.938e-06/0.3802, allocations: 4 kB / 464.8 MB, free: 4.047 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002007/0.3822, allocations: 1.06 MB / 465.9 MB, free: 2.957 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008001/0.383, allocations: 346.6 kB / 466.2 MB, free: 2.617 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001717/0.3832, allocations: 8 kB / 466.2 MB, free: 2.609 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001075/0.3843, allocations: 143.8 kB / 466.4 MB, free: 2.469 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003286/0.3846, allocations: 151.7 kB / 466.5 MB, free: 2.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.638e-05/0.3847, allocations: 19.94 kB / 466.5 MB, free: 2.301 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002718/0.3874, allocations: 1.947 MB / 468.5 MB, free: 340 kB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3874, allocations: 0 / 468.5 MB, free: 340 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009004/0.3883, allocations: 319.3 kB / 468.8 MB, free: 20 kB / 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.001815/0.3901, allocations: 489.4 kB / 469.3 MB, free: 15.73 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001312/0.3914, allocations: 0.5653 MB / 469.8 MB, free: 15.16 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.961e-06/0.3914, allocations: 4.438 kB / 469.8 MB, free: 15.16 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000672/0.3921, allocations: 327.7 kB / 470.2 MB, free: 14.84 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001322/0.3934, allocations: 318.3 kB / 470.5 MB, free: 14.52 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005589/0.399, allocations: 3.541 MB / 474 MB, free: 10.93 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001214/0.4002, allocations: 1.433 MB / 475.5 MB, free: 9.473 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007273/0.4009, allocations: 291.1 kB / 475.7 MB, free: 9.184 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003107/0.4013, allocations: 103.4 kB / 475.8 MB, free: 9.082 MB / 382.1 MB Notification: Performance of SimCode: time 1.082e-06/0.4013, allocations: 3.938 kB / 475.8 MB, free: 9.078 MB / 382.1 MB Notification: Performance of Templates: time 0.04215/0.4434, allocations: 21.82 MB / 497.7 MB, free: 3.449 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_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_4.0.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: 5.7368799559772015]