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.001818/0.001818, allocations: 106.8 kB / 21.2 MB, free: 0.6406 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.001609/0.001609, allocations: 219.5 kB / 24.49 MB, free: 3.93 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.493/1.493, allocations: 230.6 MB / 258.3 MB, free: 7.797 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.001548/0.001548, allocations: 47.92 kB / 379 MB, free: 2.477 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2314/0.233, allocations: 53.36 MB / 432.3 MB, free: 6.727 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.00767/0.2406, allocations: 5.211 MB / 437.5 MB, free: 1.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004503/0.2451, allocations: 2.598 MB / 440.1 MB, free: 14.89 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004459/0.2456, allocations: 27.81 kB / 440.2 MB, free: 14.87 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001597/0.2472, allocations: 0.7389 MB / 440.9 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001055/0.2482, allocations: 0.5633 MB / 441.5 MB, free: 13.56 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001037/0.2493, allocations: 0.5282 MB / 442 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00166/0.2509, allocations: 1.594 MB / 443.6 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006297/0.2516, allocations: 410.1 kB / 444 MB, free: 11.01 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006516/0.2522, allocations: 0.6345 MB / 444.6 MB, free: 10.37 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008686/0.2531, allocations: 0.7705 MB / 445.4 MB, free: 9.598 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001981/0.2533, allocations: 136 kB / 445.5 MB, free: 9.465 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003809/0.2537, allocations: 212 kB / 445.7 MB, free: 9.258 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005931/0.2543, allocations: 0.6504 MB / 446.4 MB, free: 8.605 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007216/0.255, allocations: 0.7225 MB / 447.1 MB, free: 7.879 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002474/0.2575, allocations: 2.521 MB / 449.6 MB, free: 5.348 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.2575, allocations: 0 / 449.6 MB, free: 5.348 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.2575, allocations: 0 / 449.6 MB, free: 5.348 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.786e-05/0.2575, allocations: 0 / 449.6 MB, free: 5.348 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.004931/0.2624, allocations: 2.584 MB / 452.2 MB, free: 2.719 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.588e-05/0.2624, allocations: 8.031 kB / 452.2 MB, free: 2.711 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003558/0.2628, allocations: 235.4 kB / 452.5 MB, free: 2.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002648/0.2654, allocations: 1.495 MB / 454 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001438/0.2656, allocations: 143.7 kB / 454.1 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001477/0.2657, allocations: 95.88 kB / 454.2 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002254/0.268, allocations: 1.712 MB / 455.9 MB, free: 14.74 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.159e-05/0.268, allocations: 0 / 455.9 MB, free: 14.74 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.892e-05/0.2681, allocations: 43.98 kB / 455.9 MB, free: 14.7 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.532e-05/0.2681, allocations: 20 kB / 456 MB, free: 14.68 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001417/0.2696, allocations: 0.7182 MB / 456.7 MB, free: 13.96 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006612/0.2762, allocations: 4.052 MB / 460.7 MB, free: 9.758 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00118/0.2773, allocations: 0.521 MB / 461.3 MB, free: 9.227 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007785/0.2781, allocations: 357.9 kB / 461.6 MB, free: 8.875 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.596e-05/0.2782, allocations: 8 kB / 461.6 MB, free: 8.867 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.039e-05/0.2782, allocations: 42.56 kB / 461.6 MB, free: 8.816 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 1.963e-06/0.2782, allocations: 0 / 461.6 MB, free: 8.816 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.001785/0.28, allocations: 0.8249 MB / 462.5 MB, free: 7.984 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002329/0.2802, allocations: 423.2 kB / 462.9 MB, free: 7.473 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003615/0.2838, allocations: 2.727 MB / 465.6 MB, free: 4.699 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.854e-05/0.2839, allocations: 37.7 kB / 465.7 MB, free: 4.656 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008709/0.2848, allocations: 0.9066 MB / 466.6 MB, free: 3.742 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001504/0.2849, allocations: 158.7 kB / 466.7 MB, free: 3.586 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002189/0.2851, allocations: 122.3 kB / 466.8 MB, free: 3.461 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001712/0.2853, allocations: 329.9 kB / 467.2 MB, free: 3.133 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005627/0.2859, allocations: 257.2 kB / 467.4 MB, free: 2.883 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001023/0.2869, allocations: 0.8877 MB / 468.3 MB, free: 1.789 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001124/0.288, allocations: 0.6172 MB / 468.9 MB, free: 1.094 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.288, allocations: 0 / 468.9 MB, free: 1.094 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001638/0.2897, allocations: 0.8619 MB / 469.8 MB, free: 228 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.825e-05/0.2897, allocations: 8 kB / 469.8 MB, free: 220 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.095e-05/0.2897, allocations: 8 kB / 469.8 MB, free: 212 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.405e-05/0.2897, allocations: 8 kB / 469.8 MB, free: 204 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006321/0.2904, allocations: 160.1 kB / 470 MB, free: 44 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.346e-05/0.2904, allocations: 15.92 kB / 470 MB, free: 28 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009756/0.2914, allocations: 159.5 kB / 470.1 MB, free: 15.87 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.665e-05/0.2914, allocations: 32 kB / 470.2 MB, free: 15.84 MB / 382.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.000734/0.2921, allocations: 0.5561 MB / 470.7 MB, free: 15.27 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002723/0.2924, allocations: 190.7 kB / 470.9 MB, free: 15.08 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001455/0.2939, allocations: 0.6958 MB / 471.6 MB, free: 14.38 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.2939, allocations: 0 / 471.6 MB, free: 14.38 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.2939, allocations: 0 / 471.6 MB, free: 14.38 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008825/0.2948, allocations: 346.5 kB / 471.9 MB, free: 14.04 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001849/0.2949, allocations: 12 kB / 471.9 MB, free: 14.03 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001019/0.296, allocations: 139.8 kB / 472.1 MB, free: 13.89 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003103/0.2963, allocations: 147.7 kB / 472.2 MB, free: 13.75 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002414/0.2987, allocations: 0.8284 MB / 473.1 MB, free: 12.91 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001966/0.3007, allocations: 1.151 MB / 474.2 MB, free: 11.74 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005484/0.3012, allocations: 267.9 kB / 474.5 MB, free: 11.48 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002609/0.3038, allocations: 1.927 MB / 476.4 MB, free: 9.531 MB / 382.1 MB Notification: Performance of Backend: time 4.61e-07/0.3038, allocations: 0 / 476.4 MB, free: 9.531 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003939/0.3077, allocations: 1.087 MB / 477.5 MB, free: 8.75 MB / 382.1 MB Notification: Performance of SimCode: time 0.005517/0.3133, allocations: 3.889 MB / 481.4 MB, free: 4.801 MB / 382.1 MB Notification: Performance of Templates: time 0.0426/0.3559, allocations: 25.79 MB / 0.4953 GB, free: 11.27 MB / 414.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: 5.47939256799873]