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.001337/0.001337, allocations: 115 kB / 18.46 MB, free: 4.621 MB / 14.72 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.001472/0.001472, allocations: 207.3 kB / 21.41 MB, free: 1.668 MB / 14.72 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 1.507/1.507, allocations: 230.6 MB / 254.8 MB, free: 15.25 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001494/0.001494, allocations: 51.92 kB / 374.1 MB, free: 9.758 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1054, allocations: 53.33 MB / 427.5 MB, free: 4.336 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.008026/0.1134, allocations: 5.878 MB / 433.3 MB, free: 14.43 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004955/0.1184, allocations: 2.75 MB / 436.1 MB, free: 11.66 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006281/0.119, allocations: 31.81 kB / 436.1 MB, free: 11.63 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00169/0.1207, allocations: 0.7583 MB / 436.9 MB, free: 10.87 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001221/0.1219, allocations: 0.5672 MB / 437.5 MB, free: 10.3 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001202/0.1231, allocations: 0.5209 MB / 438 MB, free: 9.785 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001846/0.125, allocations: 1.59 MB / 439.6 MB, free: 8.188 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006838/0.1256, allocations: 446.6 kB / 440 MB, free: 7.723 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000819/0.1265, allocations: 0.6306 MB / 440.6 MB, free: 7.09 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008731/0.1273, allocations: 0.7705 MB / 441.4 MB, free: 6.316 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001928/0.1275, allocations: 136 kB / 441.5 MB, free: 6.184 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003852/0.1279, allocations: 204 kB / 441.7 MB, free: 5.984 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005726/0.1285, allocations: 0.6465 MB / 442.4 MB, free: 5.336 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008326/0.1293, allocations: 0.9166 MB / 443.3 MB, free: 4.414 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002595/0.1319, allocations: 2.509 MB / 445.8 MB, free: 1.895 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.1319, allocations: 0 / 445.8 MB, free: 1.895 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1319, allocations: 4 kB / 445.8 MB, free: 1.891 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.806e-05/0.1319, allocations: 0 / 445.8 MB, free: 1.891 MB / 366.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.1939/0.3258, allocations: 2.648 MB / 448.5 MB, free: 23.23 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.709e-05/0.3258, allocations: 10.44 kB / 448.5 MB, free: 23.23 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000389/0.3262, allocations: 236.7 kB / 448.7 MB, free: 23.1 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002171/0.3284, allocations: 1.561 MB / 450.3 MB, free: 22.67 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.454e-05/0.3285, allocations: 98.42 kB / 450.4 MB, free: 22.64 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000115/0.3286, allocations: 85.34 kB / 450.4 MB, free: 22.64 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001639/0.3303, allocations: 1.099 MB / 451.5 MB, free: 22.24 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.39e-05/0.3303, allocations: 9.156 kB / 451.6 MB, free: 22.24 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.37e-05/0.3304, allocations: 38.44 kB / 451.6 MB, free: 22.21 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.08e-05/0.3304, allocations: 27.97 kB / 451.6 MB, free: 22.21 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001269/0.3317, allocations: 0.7139 MB / 452.3 MB, free: 21.97 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006703/0.3384, allocations: 4.599 MB / 456.9 MB, free: 19.47 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001336/0.3397, allocations: 0.8931 MB / 457.8 MB, free: 18.81 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007756/0.3405, allocations: 353.1 kB / 458.2 MB, free: 18.7 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.43e-05/0.3405, allocations: 8.578 kB / 458.2 MB, free: 18.7 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.091e-05/0.3406, allocations: 45.34 kB / 458.2 MB, free: 18.66 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 2.975e-06/0.3406, allocations: 0 / 458.2 MB, free: 18.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.001955/0.3425, allocations: 0.8303 MB / 459 MB, free: 18.34 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001056/0.3426, allocations: 423.7 kB / 459.5 MB, free: 17.83 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003723/0.3463, allocations: 2.765 MB / 462.2 MB, free: 16.93 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.368e-05/0.3464, allocations: 38.41 kB / 462.3 MB, free: 16.89 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006184/0.3471, allocations: 0.8927 MB / 463.2 MB, free: 16.23 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001179/0.3472, allocations: 167 kB / 463.3 MB, free: 16.11 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002037/0.3474, allocations: 124.3 kB / 463.4 MB, free: 16.04 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.333e-05/0.3474, allocations: 331.7 kB / 463.8 MB, free: 15.72 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005491/0.348, allocations: 258.9 kB / 464 MB, free: 15.64 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006652/0.3487, allocations: 0.5329 MB / 464.6 MB, free: 15.22 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009832/0.3496, allocations: 0.6245 MB / 465.2 MB, free: 14.81 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.671e-06/0.3496, allocations: 0.9062 kB / 465.2 MB, free: 14.81 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001714/0.3514, allocations: 0.8633 MB / 466 MB, free: 14.45 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.03e-05/0.3514, allocations: 10.12 kB / 466.1 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.027e-05/0.3514, allocations: 5.5 kB / 466.1 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.393e-05/0.3514, allocations: 10.23 kB / 466.1 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005866/0.352, allocations: 158.1 kB / 466.2 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.712e-05/0.352, allocations: 14.92 kB / 466.2 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001165/0.3532, allocations: 166 kB / 466.4 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.603e-05/0.3532, allocations: 26.7 kB / 466.4 MB, free: 14.38 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.0008197/0.3541, allocations: 0.5639 MB / 467 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002757/0.3543, allocations: 192.1 kB / 467.2 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001421/0.3558, allocations: 0.6887 MB / 467.9 MB, free: 13.74 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.563e-06/0.3558, allocations: 5.25 kB / 467.9 MB, free: 13.74 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.3558, allocations: 0 / 467.9 MB, free: 13.74 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.967e-06/0.3558, allocations: 3.781 kB / 467.9 MB, free: 13.74 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003553/0.3593, allocations: 2.134 MB / 470 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.3593, allocations: 1.156 kB / 470 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005048/0.3598, allocations: 106.4 kB / 470.1 MB, free: 12.78 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.683e-06/0.3598, allocations: 3.453 kB / 470.1 MB, free: 12.78 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.943e-05/0.3599, allocations: 10.91 kB / 470.1 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.079e-06/0.3599, allocations: 4.812 kB / 470.1 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.095e-06/0.3599, allocations: 2 kB / 470.1 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001924/0.3618, allocations: 1.062 MB / 471.2 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006239/0.3624, allocations: 420.3 kB / 471.6 MB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001737/0.3626, allocations: 14 kB / 471.6 MB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001058/0.3637, allocations: 142 kB / 471.8 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003086/0.364, allocations: 154.5 kB / 471.9 MB, free: 11.94 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.082e-05/0.364, allocations: 17.39 kB / 471.9 MB, free: 11.93 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002644/0.3667, allocations: 1.963 MB / 473.9 MB, free: 11.14 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3667, allocations: 1.094 kB / 473.9 MB, free: 11.14 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001012/0.3677, allocations: 309.8 kB / 474.2 MB, free: 11.08 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.001738/0.3694, allocations: 488.6 kB / 474.7 MB, free: 10.9 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001213/0.3706, allocations: 0.5745 MB / 475.2 MB, free: 10.64 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.899e-06/0.3706, allocations: 1.156 kB / 475.2 MB, free: 10.64 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005826/0.3712, allocations: 325.8 kB / 475.6 MB, free: 10.5 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001332/0.3726, allocations: 337.6 kB / 475.9 MB, free: 10.32 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00573/0.3783, allocations: 3.622 MB / 479.5 MB, free: 8.316 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008255/0.3791, allocations: 1.428 MB / 480.9 MB, free: 7.262 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004898/0.3796, allocations: 112.9 kB / 481.1 MB, free: 7.242 MB / 366.1 MB Notification: Performance of SimCode: time 9.81e-07/0.3796, allocations: 0 / 481.1 MB, free: 7.242 MB / 366.1 MB Notification: Performance of Templates: time 0.03602/0.4156, allocations: 23.24 MB / 0.4925 GB, free: 1.258 MB / 382.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/BatteryDischargeCharge/BatteryDischargeCharge.csv","/var/lib/jenkins1/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: 10.703196738002589]