Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001895/0.001895, allocations: 85.5 kB / 20.68 MB, free: 1.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002386/0.002386, allocations: 159.2 kB / 23.95 MB, free: 4.168 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.491/1.491, allocations: 177 MB / 204.1 MB, free: 9.137 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.693e-06/1.693e-06, allocations: 0 / 325 MB, free: 476 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.458e-05/2.627e-05, allocations: 9.453 kB / 325 MB, free: 468 kB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.007332/0.007358, allocations: 5.214 MB / 330.2 MB, free: 12.98 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005223/0.01258, allocations: 2.613 MB / 332.8 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007177/0.0133, allocations: 29.78 kB / 332.9 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001774/0.01507, allocations: 0.7471 MB / 333.6 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001317/0.01639, allocations: 0.5817 MB / 334.2 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001276/0.01767, allocations: 0.5139 MB / 334.7 MB, free: 9.785 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002008/0.01967, allocations: 1.645 MB / 336.4 MB, free: 8.766 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006566/0.02033, allocations: 384.5 kB / 336.7 MB, free: 8.5 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001237/0.02157, allocations: 0.8983 MB / 337.6 MB, free: 7.93 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009819/0.02255, allocations: 0.6219 MB / 338.3 MB, free: 7.586 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002388/0.02279, allocations: 133.5 kB / 338.4 MB, free: 7.586 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004952/0.02328, allocations: 212.9 kB / 338.6 MB, free: 7.41 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006646/0.02395, allocations: 0.6504 MB / 339.2 MB, free: 6.758 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007184/0.02467, allocations: 0.5726 MB / 339.8 MB, free: 6.184 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002732/0.0274, allocations: 2.469 MB / 342.3 MB, free: 3.707 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.0274, allocations: 0 / 342.3 MB, free: 3.707 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.0274, allocations: 7.938 kB / 342.3 MB, free: 3.699 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.726e-05/0.02743, allocations: 0 / 342.3 MB, free: 3.699 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.005175/0.03261, allocations: 2.553 MB / 344.8 MB, free: 1.094 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.151e-05/0.03265, allocations: 15.98 kB / 344.9 MB, free: 1.078 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003774/0.03302, allocations: 231.5 kB / 345.1 MB, free: 0.8516 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002485/0.03551, allocations: 1.502 MB / 346.6 MB, free: 15.3 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001832/0.03569, allocations: 147.7 kB / 346.7 MB, free: 15.13 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000149/0.03584, allocations: 84.38 kB / 346.8 MB, free: 15.05 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002357/0.0382, allocations: 1.711 MB / 348.5 MB, free: 13.12 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.182e-05/0.03822, allocations: 192 / 348.5 MB, free: 13.12 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001038/0.03832, allocations: 48.12 kB / 348.6 MB, free: 13.07 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.067e-05/0.03835, allocations: 20 kB / 348.6 MB, free: 13.05 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001472/0.03982, allocations: 0.7182 MB / 349.3 MB, free: 12.33 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007115/0.04693, allocations: 4.047 MB / 353.4 MB, free: 8.133 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001331/0.04826, allocations: 0.5197 MB / 353.9 MB, free: 7.602 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008894/0.04915, allocations: 346.3 kB / 354.2 MB, free: 7.262 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.705e-05/0.04921, allocations: 15.92 kB / 354.2 MB, free: 7.246 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.837e-05/0.04926, allocations: 46.56 kB / 354.3 MB, free: 7.191 MB / 318.1 MB Notification: Performance of pre-optimization done (n=44): time 2.224e-06/0.04926, allocations: 0 / 354.3 MB, free: 7.191 MB / 318.1 MB Notification: Performance of matching and sorting (n=44): time 0.001998/0.05126, allocations: 0.8143 MB / 355.1 MB, free: 6.371 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002658/0.05152, allocations: 423.2 kB / 355.5 MB, free: 5.859 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004262/0.05579, allocations: 2.715 MB / 358.2 MB, free: 3.098 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.443e-05/0.05588, allocations: 37.7 kB / 358.3 MB, free: 3.055 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009138/0.05679, allocations: 0.9066 MB / 359.2 MB, free: 2.141 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001911/0.05699, allocations: 170.6 kB / 359.3 MB, free: 1.973 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002456/0.05723, allocations: 122.3 kB / 359.4 MB, free: 1.848 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001584/0.05739, allocations: 330 kB / 359.8 MB, free: 1.52 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005857/0.05798, allocations: 257.1 kB / 360 MB, free: 1.27 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001049/0.05902, allocations: 0.8878 MB / 360.9 MB, free: 176 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001213/0.06024, allocations: 0.6181 MB / 361.5 MB, free: 15.48 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.554e-06/0.06024, allocations: 4 kB / 361.5 MB, free: 15.47 MB / 334.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001904/0.06215, allocations: 0.8516 MB / 362.4 MB, free: 14.61 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.29e-05/0.06217, allocations: 8 kB / 362.4 MB, free: 14.61 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.365e-05/0.06219, allocations: 8 kB / 362.4 MB, free: 14.6 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.546e-05/0.06221, allocations: 8.438 kB / 362.4 MB, free: 14.59 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006444/0.06286, allocations: 167.7 kB / 362.6 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.859e-05/0.06287, allocations: 8 kB / 362.6 MB, free: 14.42 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001242/0.06412, allocations: 159.4 kB / 362.7 MB, free: 14.26 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.2e-05/0.06418, allocations: 27.94 kB / 362.8 MB, free: 14.23 MB / 334.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.0009288/0.06511, allocations: 0.5594 MB / 363.3 MB, free: 13.67 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003872/0.06549, allocations: 186.8 kB / 363.5 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001601/0.06709, allocations: 0.7025 MB / 364.2 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.793e-06/0.0671, allocations: 7.938 kB / 364.2 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.06711, allocations: 4 kB / 364.2 MB, free: 12.76 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.981e-06/0.06711, allocations: 0 / 364.2 MB, free: 12.76 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003765/0.07088, allocations: 1.788 MB / 366 MB, free: 10.92 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.141e-06/0.07088, allocations: 8.078 kB / 366 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005264/0.07141, allocations: 103.9 kB / 366.1 MB, free: 10.81 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.085e-06/0.07142, allocations: 4 kB / 366.1 MB, free: 10.81 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.483e-05/0.07146, allocations: 15.92 kB / 366.1 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.861e-06/0.07147, allocations: 4 kB / 366.1 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/0.07147, allocations: 3.938 kB / 366.1 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002052/0.07353, allocations: 1.04 MB / 367.2 MB, free: 9.715 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008734/0.0744, allocations: 334.7 kB / 367.5 MB, free: 9.387 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002947/0.07469, allocations: 15.94 kB / 367.5 MB, free: 9.371 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001223/0.07592, allocations: 139.8 kB / 367.7 MB, free: 9.234 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003639/0.07628, allocations: 155.7 kB / 367.8 MB, free: 9.082 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.324e-05/0.07633, allocations: 19.98 kB / 367.8 MB, free: 9.062 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.003412/0.07975, allocations: 1.923 MB / 369.8 MB, free: 7.117 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.07975, allocations: 0 / 369.8 MB, free: 7.117 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001309/0.08106, allocations: 319.3 kB / 370.1 MB, free: 6.805 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.002055/0.08311, allocations: 0.4982 MB / 370.6 MB, free: 6.473 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001491/0.0846, allocations: 0.5733 MB / 371.1 MB, free: 5.898 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.813e-06/0.08461, allocations: 0 / 371.1 MB, free: 5.898 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007319/0.08534, allocations: 335.6 kB / 371.5 MB, free: 5.57 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001678/0.08702, allocations: 290.6 kB / 371.7 MB, free: 5.289 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006546/0.09357, allocations: 3.422 MB / 375.2 MB, free: 1.82 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001298/0.09486, allocations: 0.8569 MB / 376 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001092/0.09596, allocations: 286.4 kB / 376.3 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005164/0.09647, allocations: 100.5 kB / 376.4 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of SimCode: time 1.213e-06/0.09647, allocations: 0 / 376.4 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of Templates: time 0.04193/0.1384, allocations: 21.31 MB / 397.7 MB, free: 11.41 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/BatteryDischargeCharge/BatteryDischargeCharge.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.685808781534433]