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.001934/0.001934, allocations: 108.6 kB / 21.19 MB, free: 0.7578 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.002252/0.002252, allocations: 193.1 kB / 24.47 MB, free: 4.152 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.529/1.529, allocations: 225.6 MB / 253.3 MB, free: 13.01 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.002331/0.002331, allocations: 43.92 kB / 371.7 MB, free: 9.375 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2808/0.2832, allocations: 52.19 MB / 423.9 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.008159/0.2913, allocations: 5.866 MB / 429.7 MB, free: 8.816 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005383/0.2967, allocations: 2.595 MB / 432.3 MB, free: 6.211 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009727/0.2977, allocations: 31.75 kB / 432.4 MB, free: 6.18 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001768/0.2994, allocations: 0.7752 MB / 433.1 MB, free: 5.406 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001143/0.3006, allocations: 0.5166 MB / 433.7 MB, free: 4.887 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001267/0.3019, allocations: 0.5167 MB / 434.2 MB, free: 4.375 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002077/0.3039, allocations: 1.6 MB / 435.8 MB, free: 2.77 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007294/0.3047, allocations: 395 kB / 436.2 MB, free: 2.359 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009109/0.3056, allocations: 0.6384 MB / 436.8 MB, free: 1.719 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001018/0.3066, allocations: 0.7627 MB / 437.6 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000197/0.3068, allocations: 139.9 kB / 437.7 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004284/0.3072, allocations: 207.9 kB / 437.9 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006126/0.3078, allocations: 0.6467 MB / 438.5 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009697/0.3088, allocations: 0.9165 MB / 439.5 MB, free: 15.04 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002863/0.3117, allocations: 2.498 MB / 442 MB, free: 12.54 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.3117, allocations: 0 / 442 MB, free: 12.54 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.3117, allocations: 0 / 442 MB, free: 12.54 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.981e-05/0.3117, allocations: 0 / 442 MB, free: 12.54 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.005673/0.3174, allocations: 2.557 MB / 444.5 MB, free: 9.938 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.058e-05/0.3174, allocations: 12.03 kB / 444.5 MB, free: 9.926 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003755/0.3178, allocations: 235.4 kB / 444.8 MB, free: 9.695 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002699/0.3205, allocations: 1.483 MB / 446.2 MB, free: 8.184 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001532/0.3207, allocations: 151.7 kB / 446.4 MB, free: 8.02 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000141/0.3208, allocations: 87.88 kB / 446.5 MB, free: 7.934 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001967/0.3228, allocations: 1.096 MB / 447.6 MB, free: 6.758 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.632e-05/0.3228, allocations: 7.938 kB / 447.6 MB, free: 6.75 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.27e-05/0.3229, allocations: 47.98 kB / 447.6 MB, free: 6.703 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.11e-05/0.3229, allocations: 20 kB / 447.6 MB, free: 6.684 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001435/0.3243, allocations: 0.7182 MB / 448.4 MB, free: 5.965 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007667/0.332, allocations: 4.522 MB / 452.9 MB, free: 1.27 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001262/0.3333, allocations: 0.5315 MB / 453.4 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007778/0.3341, allocations: 354 kB / 453.8 MB, free: 384 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.847e-05/0.3341, allocations: 8 kB / 453.8 MB, free: 376 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.636e-05/0.3342, allocations: 42.56 kB / 453.8 MB, free: 324 kB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.274e-06/0.3342, allocations: 0 / 453.8 MB, free: 324 kB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.002091/0.3362, allocations: 0.8288 MB / 454.6 MB, free: 15.48 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002802/0.3365, allocations: 427.2 kB / 455.1 MB, free: 14.96 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004074/0.3406, allocations: 2.743 MB / 457.8 MB, free: 12.18 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001206/0.3407, allocations: 37.7 kB / 457.8 MB, free: 12.13 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008781/0.3416, allocations: 0.8833 MB / 458.7 MB, free: 11.25 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001948/0.3418, allocations: 162.7 kB / 458.9 MB, free: 11.09 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002273/0.342, allocations: 126.3 kB / 459 MB, free: 10.96 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001779/0.3422, allocations: 330 kB / 459.3 MB, free: 10.63 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006026/0.3428, allocations: 257.2 kB / 459.6 MB, free: 10.38 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008247/0.3436, allocations: 0.5363 MB / 460.1 MB, free: 9.723 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001127/0.3448, allocations: 0.6171 MB / 460.7 MB, free: 9.027 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.449e-06/0.3448, allocations: 0 / 460.7 MB, free: 9.027 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001921/0.3467, allocations: 0.858 MB / 461.6 MB, free: 8.16 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.26e-05/0.3467, allocations: 8 kB / 461.6 MB, free: 8.152 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.422e-05/0.3467, allocations: 8 kB / 461.6 MB, free: 8.145 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.568e-05/0.3467, allocations: 8 kB / 461.6 MB, free: 8.137 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006248/0.3474, allocations: 164.1 kB / 461.8 MB, free: 7.977 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.022e-05/0.3474, allocations: 23.8 kB / 461.8 MB, free: 7.953 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001151/0.3485, allocations: 163.3 kB / 462 MB, free: 7.793 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.157e-05/0.3486, allocations: 28 kB / 462 MB, free: 7.766 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.000949/0.3496, allocations: 0.556 MB / 462.5 MB, free: 7.199 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003812/0.3499, allocations: 190.8 kB / 462.7 MB, free: 7.012 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001506/0.3514, allocations: 0.6845 MB / 463.4 MB, free: 6.32 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.843e-06/0.3515, allocations: 4 kB / 463.4 MB, free: 6.316 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.045e-05/0.3515, allocations: 7.938 kB / 463.4 MB, free: 6.309 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.506e-06/0.3515, allocations: 3.984 kB / 463.4 MB, free: 6.305 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003805/0.3553, allocations: 2.089 MB / 465.5 MB, free: 4.148 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/0.3553, allocations: 0 / 465.5 MB, free: 4.148 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005095/0.3558, allocations: 107.9 kB / 465.6 MB, free: 4.043 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.246e-06/0.3558, allocations: 4 kB / 465.6 MB, free: 4.039 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.049e-05/0.3558, allocations: 12 kB / 465.6 MB, free: 4.027 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.642e-06/0.3558, allocations: 4 kB / 465.6 MB, free: 4.023 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.3559, allocations: 0 / 465.6 MB, free: 4.023 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001926/0.3578, allocations: 1.06 MB / 466.7 MB, free: 2.934 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008863/0.3587, allocations: 342.6 kB / 467 MB, free: 2.598 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001813/0.3588, allocations: 12 kB / 467 MB, free: 2.586 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009974/0.3598, allocations: 139.8 kB / 467.2 MB, free: 2.449 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003245/0.3602, allocations: 155.7 kB / 467.3 MB, free: 2.297 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.385e-05/0.3602, allocations: 19.94 kB / 467.4 MB, free: 2.277 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002898/0.3631, allocations: 1.951 MB / 469.3 MB, free: 312 kB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3631, allocations: 0 / 469.3 MB, free: 312 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.001/0.3641, allocations: 315.4 kB / 469.6 MB, free: 15.99 MB / 382.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.001842/0.366, allocations: 483.1 kB / 470.1 MB, free: 15.7 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001365/0.3673, allocations: 0.5694 MB / 470.7 MB, free: 15.13 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.37e-06/0.3673, allocations: 4.188 kB / 470.7 MB, free: 15.13 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006815/0.368, allocations: 331.6 kB / 471 MB, free: 14.8 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001647/0.3697, allocations: 333.3 kB / 471.3 MB, free: 14.48 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006213/0.3759, allocations: 3.605 MB / 474.9 MB, free: 10.82 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00121/0.3771, allocations: 1.425 MB / 476.3 MB, free: 9.371 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004702/0.3775, allocations: 111.4 kB / 476.4 MB, free: 9.262 MB / 382.1 MB Notification: Performance of SimCode: time 8.62e-07/0.3775, allocations: 0 / 476.4 MB, free: 9.262 MB / 382.1 MB Notification: Performance of Templates: time 0.03934/0.4169, allocations: 23.13 MB / 499.6 MB, free: 2.219 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/BatteryDischargeCharge/BatteryDischargeCharge.csv","/var/lib/jenkins1/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: 10.419442089973018]