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.001327/0.001327, allocations: 81.58 kB / 20.68 MB, free: 1.023 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.001319/0.001319, allocations: 151.1 kB / 23.94 MB, free: 4.164 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.42/1.42, allocations: 173.4 MB / 200.4 MB, free: 12.86 MB / 190.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 2.215e-06/2.215e-06, allocations: 0 / 318.9 MB, free: 3.547 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.557e-05/2.778e-05, allocations: 3.375 kB / 318.9 MB, free: 3.543 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.007531/0.007558, allocations: 5.164 MB / 324.1 MB, free: 112 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006854/0.01441, allocations: 2.447 MB / 326.5 MB, free: 14.42 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001148/0.01556, allocations: 29.78 kB / 326.6 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002638/0.0182, allocations: 0.7445 MB / 327.3 MB, free: 14.17 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002171/0.02037, allocations: 0.5328 MB / 327.8 MB, free: 13.89 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002058/0.02243, allocations: 0.5237 MB / 328.4 MB, free: 13.58 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003377/0.0258, allocations: 1.638 MB / 330 MB, free: 12.75 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009777/0.02678, allocations: 373.1 kB / 330.4 MB, free: 12.54 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001941/0.02872, allocations: 0.8933 MB / 331.3 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001326/0.03005, allocations: 0.635 MB / 331.9 MB, free: 11.85 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002824/0.03033, allocations: 133.2 kB / 332 MB, free: 11.85 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006731/0.031, allocations: 214.5 kB / 332.2 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008905/0.0319, allocations: 0.6477 MB / 332.9 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000998/0.03289, allocations: 0.5764 MB / 333.5 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003954/0.03685, allocations: 2.452 MB / 335.9 MB, free: 9.309 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.03685, allocations: 0 / 335.9 MB, free: 9.309 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.03685, allocations: 0 / 335.9 MB, free: 9.309 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.198e-05/0.03691, allocations: 0 / 335.9 MB, free: 9.309 MB / 302.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.008485/0.0454, allocations: 2.536 MB / 338.4 MB, free: 7.512 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.919e-05/0.04546, allocations: 10.67 kB / 338.5 MB, free: 7.512 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007567/0.04622, allocations: 235.2 kB / 338.7 MB, free: 7.387 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004363/0.05058, allocations: 1.488 MB / 340.2 MB, free: 6.309 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002098/0.05079, allocations: 147.7 kB / 340.3 MB, free: 6.145 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002078/0.051, allocations: 88.36 kB / 340.4 MB, free: 6.059 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003623/0.05462, allocations: 1.711 MB / 342.1 MB, free: 4.125 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.006e-05/0.05465, allocations: 0 / 342.1 MB, free: 4.125 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001608/0.05481, allocations: 43.94 kB / 342.2 MB, free: 4.082 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.951e-05/0.05484, allocations: 20 kB / 342.2 MB, free: 4.062 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002093/0.05693, allocations: 0.7222 MB / 342.9 MB, free: 3.336 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01149/0.06843, allocations: 4.035 MB / 346.9 MB, free: 15.15 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00181/0.07024, allocations: 0.5298 MB / 347.5 MB, free: 14.61 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001167/0.0714, allocations: 365.9 kB / 347.8 MB, free: 14.25 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.225e-05/0.07147, allocations: 8 kB / 347.8 MB, free: 14.24 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.621e-05/0.07153, allocations: 42.56 kB / 347.9 MB, free: 14.19 MB / 318.1 MB Notification: Performance of pre-optimization done (n=44): time 3.246e-06/0.07153, allocations: 0 / 347.9 MB, free: 14.19 MB / 318.1 MB Notification: Performance of matching and sorting (n=44): time 0.003197/0.07473, allocations: 0.821 MB / 348.7 MB, free: 13.36 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003301/0.07506, allocations: 423.2 kB / 349.1 MB, free: 12.85 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006051/0.08111, allocations: 2.702 MB / 351.8 MB, free: 10.1 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001361/0.08125, allocations: 33.7 kB / 351.8 MB, free: 10.06 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00125/0.0825, allocations: 0.887 MB / 352.7 MB, free: 9.168 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002334/0.08273, allocations: 166.6 kB / 352.9 MB, free: 9.004 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003349/0.08307, allocations: 118.3 kB / 353 MB, free: 8.883 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002201/0.08329, allocations: 337.9 kB / 353.3 MB, free: 8.547 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008417/0.08413, allocations: 261.1 kB / 353.6 MB, free: 8.293 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001394/0.08552, allocations: 0.8839 MB / 354.5 MB, free: 7.199 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001248/0.08677, allocations: 0.6142 MB / 355.1 MB, free: 6.504 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.654e-06/0.08678, allocations: 4 kB / 355.1 MB, free: 6.5 MB / 318.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001974/0.08875, allocations: 0.8557 MB / 355.9 MB, free: 5.641 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.098e-05/0.08877, allocations: 4 kB / 355.9 MB, free: 5.637 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.325e-05/0.08879, allocations: 8 kB / 356 MB, free: 5.629 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.402e-05/0.08881, allocations: 8 kB / 356 MB, free: 5.621 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006465/0.08946, allocations: 163.7 kB / 356.1 MB, free: 5.461 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.279e-05/0.08948, allocations: 15.92 kB / 356.1 MB, free: 5.445 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001264/0.09074, allocations: 159.6 kB / 356.3 MB, free: 5.289 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.914e-05/0.09081, allocations: 31.98 kB / 356.3 MB, free: 5.258 MB / 318.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.0009744/0.09179, allocations: 0.5604 MB / 356.9 MB, free: 4.688 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004345/0.09222, allocations: 190.8 kB / 357.1 MB, free: 4.5 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001654/0.09388, allocations: 0.6803 MB / 357.8 MB, free: 3.812 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.342e-06/0.09388, allocations: 8 kB / 357.8 MB, free: 3.805 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.668e-06/0.09389, allocations: 0 / 357.8 MB, free: 3.805 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.646e-06/0.0939, allocations: 3.984 kB / 357.8 MB, free: 3.801 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003811/0.09771, allocations: 1.783 MB / 359.5 MB, free: 1.965 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/0.09771, allocations: 3.984 kB / 359.6 MB, free: 1.961 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005185/0.09823, allocations: 103.9 kB / 359.7 MB, free: 1.859 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.171e-05/0.09824, allocations: 7.938 kB / 359.7 MB, free: 1.852 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.748e-05/0.09829, allocations: 12.09 kB / 359.7 MB, free: 1.84 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.187e-06/0.0983, allocations: 7.984 kB / 359.7 MB, free: 1.832 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.033e-06/0.0983, allocations: 0 / 359.7 MB, free: 1.832 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002137/0.1004, allocations: 1.044 MB / 360.7 MB, free: 0.75 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008927/0.1013, allocations: 338.6 kB / 361.1 MB, free: 428 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003477/0.1017, allocations: 16 kB / 361.1 MB, free: 412 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001224/0.1029, allocations: 139.8 kB / 361.2 MB, free: 272 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000344/0.1032, allocations: 151.7 kB / 361.4 MB, free: 120 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.088e-05/0.1033, allocations: 23.98 kB / 361.4 MB, free: 96 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.003336/0.1066, allocations: 1.903 MB / 363.3 MB, free: 14.17 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1066, allocations: 0 / 363.3 MB, free: 14.17 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.00149/0.1081, allocations: 315.4 kB / 363.6 MB, free: 13.86 MB / 334.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.00198/0.1101, allocations: 0.503 MB / 364.1 MB, free: 13.56 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001438/0.1115, allocations: 0.5653 MB / 364.7 MB, free: 13 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.931e-06/0.1115, allocations: 3.938 kB / 364.7 MB, free: 13 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007306/0.1123, allocations: 336.6 kB / 365 MB, free: 12.67 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001659/0.1139, allocations: 292.3 kB / 365.3 MB, free: 12.39 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006713/0.1207, allocations: 3.393 MB / 368.7 MB, free: 8.945 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001286/0.1219, allocations: 0.8451 MB / 369.5 MB, free: 8.07 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000962/0.1229, allocations: 290.4 kB / 369.8 MB, free: 7.781 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004765/0.1234, allocations: 100.5 kB / 369.9 MB, free: 7.684 MB / 334.1 MB Notification: Performance of SimCode: time 7.61e-07/0.1234, allocations: 3.938 kB / 369.9 MB, free: 7.68 MB / 334.1 MB Notification: Performance of Templates: time 0.04212/0.1655, allocations: 21.33 MB / 391.2 MB, free: 2.578 MB / 350.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.534864090383053]