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.001679/0.001679, allocations: 107 kB / 21.18 MB, free: 0.6445 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.001761/0.001761, allocations: 210.7 kB / 24.48 MB, free: 3.938 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.586/1.586, allocations: 230.6 MB / 258.2 MB, free: 7.789 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.001552/0.001552, allocations: 47.92 kB / 379 MB, free: 2.465 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2331/0.2347, allocations: 53.36 MB / 432.3 MB, free: 6.703 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.007586/0.2423, allocations: 5.211 MB / 437.5 MB, free: 1.477 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004599/0.2469, allocations: 2.602 MB / 440.1 MB, free: 14.87 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004354/0.2473, allocations: 27.81 kB / 440.2 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001562/0.2489, allocations: 0.7428 MB / 440.9 MB, free: 14.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001089/0.25, allocations: 0.5594 MB / 441.5 MB, free: 13.53 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00112/0.2511, allocations: 0.5238 MB / 442 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001706/0.2528, allocations: 1.601 MB / 443.6 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006316/0.2534, allocations: 414.1 kB / 444 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008187/0.2542, allocations: 0.6306 MB / 444.6 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001021/0.2553, allocations: 0.7666 MB / 445.4 MB, free: 9.574 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001881/0.2555, allocations: 132 kB / 445.5 MB, free: 9.445 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000388/0.2558, allocations: 215.9 kB / 445.7 MB, free: 9.234 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006523/0.2565, allocations: 0.6582 MB / 446.4 MB, free: 8.574 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007951/0.2573, allocations: 0.7186 MB / 447.1 MB, free: 7.852 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002765/0.2601, allocations: 2.521 MB / 449.6 MB, free: 5.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.416e-06/0.2601, allocations: 4 kB / 449.6 MB, free: 5.316 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.2601, allocations: 0 / 449.6 MB, free: 5.316 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.646e-05/0.2601, allocations: 0 / 449.6 MB, free: 5.316 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.005759/0.2659, allocations: 2.577 MB / 452.2 MB, free: 2.695 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.566e-05/0.2659, allocations: 8.031 kB / 452.2 MB, free: 2.688 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004/0.2663, allocations: 243.4 kB / 452.5 MB, free: 2.449 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002746/0.2691, allocations: 1.491 MB / 453.9 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000153/0.2692, allocations: 143.7 kB / 454.1 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001475/0.2694, allocations: 87.94 kB / 454.2 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002329/0.2717, allocations: 1.726 MB / 455.9 MB, free: 14.71 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.319e-05/0.2717, allocations: 0 / 455.9 MB, free: 14.71 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.324e-05/0.2718, allocations: 40 kB / 455.9 MB, free: 14.67 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.197e-05/0.2718, allocations: 20 kB / 456 MB, free: 14.65 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001432/0.2733, allocations: 0.7221 MB / 456.7 MB, free: 13.93 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006944/0.2802, allocations: 4.037 MB / 460.7 MB, free: 9.738 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001203/0.2814, allocations: 0.5143 MB / 461.2 MB, free: 9.211 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007926/0.2822, allocations: 369.8 kB / 461.6 MB, free: 8.848 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.644e-05/0.2822, allocations: 7.938 kB / 461.6 MB, free: 8.84 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.046e-05/0.2823, allocations: 42.56 kB / 461.6 MB, free: 8.789 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 2.234e-06/0.2823, allocations: 4 kB / 461.6 MB, free: 8.785 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.001869/0.2842, allocations: 0.8249 MB / 462.5 MB, free: 7.953 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002439/0.2844, allocations: 415.2 kB / 462.9 MB, free: 7.449 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00384/0.2882, allocations: 2.731 MB / 465.6 MB, free: 4.672 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.179e-05/0.2883, allocations: 37.7 kB / 465.6 MB, free: 4.629 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009032/0.2892, allocations: 0.9066 MB / 466.5 MB, free: 3.715 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001566/0.2894, allocations: 162.7 kB / 466.7 MB, free: 3.555 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002197/0.2896, allocations: 118.3 kB / 466.8 MB, free: 3.434 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001672/0.2898, allocations: 330 kB / 467.1 MB, free: 3.105 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005612/0.2903, allocations: 261.1 kB / 467.4 MB, free: 2.852 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001029/0.2914, allocations: 0.8917 MB / 468.3 MB, free: 1.754 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001096/0.2924, allocations: 0.6133 MB / 468.9 MB, free: 1.062 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.402e-06/0.2925, allocations: 4 kB / 468.9 MB, free: 1.059 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001685/0.2941, allocations: 0.8542 MB / 469.8 MB, free: 200 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.958e-05/0.2942, allocations: 4 kB / 469.8 MB, free: 196 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.188e-05/0.2942, allocations: 8 kB / 469.8 MB, free: 188 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.355e-05/0.2942, allocations: 8 kB / 469.8 MB, free: 180 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006676/0.2949, allocations: 159.7 kB / 469.9 MB, free: 20 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.479e-05/0.2949, allocations: 8.281 kB / 469.9 MB, free: 12 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001019/0.2959, allocations: 163.5 kB / 470.1 MB, free: 15.85 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.304e-05/0.296, allocations: 39.92 kB / 470.1 MB, free: 15.81 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.0008004/0.2968, allocations: 0.5542 MB / 470.7 MB, free: 15.25 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002673/0.297, allocations: 186.8 kB / 470.9 MB, free: 15.06 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00144/0.2985, allocations: 0.6919 MB / 471.6 MB, free: 14.36 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.955e-06/0.2985, allocations: 11.94 kB / 471.6 MB, free: 14.35 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.2985, allocations: 0 / 471.6 MB, free: 14.35 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.126e-05/0.2985, allocations: 3.938 kB / 471.6 MB, free: 14.35 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00334/0.3018, allocations: 1.788 MB / 473.4 MB, free: 12.51 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.3018, allocations: 0 / 473.4 MB, free: 12.51 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000522/0.3024, allocations: 103.9 kB / 473.5 MB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.043e-06/0.3024, allocations: 8.094 kB / 473.5 MB, free: 12.4 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.145e-05/0.3024, allocations: 11.98 kB / 473.5 MB, free: 12.39 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.811e-06/0.3024, allocations: 7.938 kB / 473.5 MB, free: 12.38 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.3024, allocations: 3.938 kB / 473.5 MB, free: 12.38 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001854/0.3043, allocations: 1.048 MB / 474.6 MB, free: 11.3 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000832/0.3051, allocations: 334.6 kB / 474.9 MB, free: 10.97 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001773/0.3053, allocations: 12.12 kB / 474.9 MB, free: 10.96 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001036/0.3063, allocations: 143.8 kB / 475 MB, free: 10.82 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003238/0.3066, allocations: 163.7 kB / 475.2 MB, free: 10.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.229e-05/0.3067, allocations: 16 kB / 475.2 MB, free: 10.64 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002587/0.3093, allocations: 1.927 MB / 477.1 MB, free: 8.691 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3093, allocations: 0 / 477.1 MB, free: 8.691 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008833/0.3102, allocations: 315.3 kB / 477.4 MB, free: 8.383 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.001926/0.3121, allocations: 0.5122 MB / 478 MB, free: 8.082 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001257/0.3133, allocations: 0.5686 MB / 478.5 MB, free: 7.512 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.248e-05/0.3133, allocations: 8 kB / 478.5 MB, free: 7.504 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000671/0.314, allocations: 332.7 kB / 478.9 MB, free: 7.18 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001283/0.3153, allocations: 286.3 kB / 479.1 MB, free: 6.906 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005557/0.3209, allocations: 3.534 MB / 482.7 MB, free: 3.324 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009877/0.3218, allocations: 0.8493 MB / 483.5 MB, free: 2.434 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007563/0.3226, allocations: 290.4 kB / 483.8 MB, free: 2.145 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003188/0.3229, allocations: 99.42 kB / 483.9 MB, free: 2.047 MB / 382.1 MB Notification: Performance of SimCode: time 1.232e-06/0.3229, allocations: 0 / 483.9 MB, free: 2.047 MB / 382.1 MB Notification: Performance of Templates: time 0.03923/0.3621, allocations: 23.38 MB / 0.4954 GB, free: 10.93 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 -s gbode -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.671188983003958]