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.001785/0.001785, allocations: 103.6 kB / 21.18 MB, free: 0.6445 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.002199/0.002199, allocations: 211.4 kB / 24.48 MB, free: 3.934 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.519/1.519, allocations: 230.5 MB / 258.1 MB, free: 7.793 MB / 206.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 0.001975/0.001975, allocations: 59.91 kB / 379 MB, free: 2.309 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2439/0.2459, allocations: 53.41 MB / 432.4 MB, free: 6.504 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.007403/0.2533, allocations: 5.225 MB / 437.6 MB, free: 1.266 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004703/0.258, allocations: 2.593 MB / 440.2 MB, free: 14.66 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006742/0.2587, allocations: 31.81 kB / 440.2 MB, free: 14.63 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001699/0.2604, allocations: 0.7464 MB / 441 MB, free: 13.89 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001269/0.2617, allocations: 0.5633 MB / 441.5 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001182/0.2628, allocations: 0.5096 MB / 442 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001991/0.2648, allocations: 1.602 MB / 443.6 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006315/0.2655, allocations: 379.1 kB / 444 MB, free: 10.81 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008107/0.2663, allocations: 0.6345 MB / 444.7 MB, free: 10.17 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000918/0.2672, allocations: 0.7158 MB / 445.4 MB, free: 9.453 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001978/0.2674, allocations: 136 kB / 445.5 MB, free: 9.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004076/0.2678, allocations: 212 kB / 445.7 MB, free: 9.113 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005812/0.2684, allocations: 0.6426 MB / 446.4 MB, free: 8.469 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007227/0.2691, allocations: 0.7186 MB / 447.1 MB, free: 7.746 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002571/0.2717, allocations: 2.525 MB / 449.6 MB, free: 5.211 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.2717, allocations: 0 / 449.6 MB, free: 5.211 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.2717, allocations: 4 kB / 449.6 MB, free: 5.207 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.378e-05/0.2717, allocations: 4 kB / 449.6 MB, free: 5.203 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.005247/0.277, allocations: 2.577 MB / 452.2 MB, free: 2.582 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.994e-05/0.277, allocations: 11.98 kB / 452.2 MB, free: 2.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003797/0.2774, allocations: 239.4 kB / 452.4 MB, free: 2.336 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002712/0.2801, allocations: 1.495 MB / 453.9 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001483/0.2802, allocations: 147.7 kB / 454.1 MB, free: 0.625 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001343/0.2804, allocations: 80.38 kB / 454.1 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002193/0.2826, allocations: 1.725 MB / 455.9 MB, free: 14.6 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.386e-05/0.2826, allocations: 7.938 kB / 455.9 MB, free: 14.59 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.498e-05/0.2827, allocations: 36 kB / 455.9 MB, free: 14.55 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.424e-05/0.2827, allocations: 24 kB / 455.9 MB, free: 14.53 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001386/0.2841, allocations: 0.7143 MB / 456.6 MB, free: 13.82 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006845/0.2909, allocations: 4.052 MB / 460.7 MB, free: 9.613 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001185/0.2921, allocations: 0.5146 MB / 461.2 MB, free: 9.09 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007546/0.2929, allocations: 358.2 kB / 461.6 MB, free: 8.738 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.763e-05/0.2929, allocations: 4 kB / 461.6 MB, free: 8.734 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.262e-05/0.293, allocations: 50.56 kB / 461.6 MB, free: 8.676 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 1.993e-06/0.293, allocations: 0 / 461.6 MB, free: 8.676 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.001904/0.2949, allocations: 0.822 MB / 462.4 MB, free: 7.848 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002218/0.2951, allocations: 419.2 kB / 462.8 MB, free: 7.34 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003858/0.2989, allocations: 2.727 MB / 465.6 MB, free: 4.566 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001096/0.2991, allocations: 33.7 kB / 465.6 MB, free: 4.527 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000826/0.2999, allocations: 0.9106 MB / 466.5 MB, free: 3.609 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001726/0.3001, allocations: 162.6 kB / 466.7 MB, free: 3.449 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002133/0.3003, allocations: 122.3 kB / 466.8 MB, free: 3.324 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001504/0.3004, allocations: 337.9 kB / 467.1 MB, free: 2.988 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005591/0.301, allocations: 253.1 kB / 467.4 MB, free: 2.742 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009827/0.302, allocations: 0.8878 MB / 468.3 MB, free: 1.648 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001079/0.303, allocations: 0.6133 MB / 468.9 MB, free: 0.957 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.632e-06/0.303, allocations: 4 kB / 468.9 MB, free: 0.9531 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001848/0.3049, allocations: 0.858 MB / 469.7 MB, free: 92 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.958e-05/0.3049, allocations: 8 kB / 469.7 MB, free: 84 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.778e-06/0.3049, allocations: 4 kB / 469.8 MB, free: 80 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.302e-05/0.3049, allocations: 8 kB / 469.8 MB, free: 72 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006433/0.3056, allocations: 160.1 kB / 469.9 MB, free: 15.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.816e-05/0.3056, allocations: 15.92 kB / 469.9 MB, free: 15.9 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00114/0.3067, allocations: 159.4 kB / 470.1 MB, free: 15.74 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.831e-05/0.3068, allocations: 28 kB / 470.1 MB, free: 15.71 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.0008928/0.3077, allocations: 0.5599 MB / 470.7 MB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003167/0.308, allocations: 182.8 kB / 470.9 MB, free: 14.96 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001507/0.3095, allocations: 0.7025 MB / 471.6 MB, free: 14.25 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/0.3095, allocations: 4 kB / 471.6 MB, free: 14.25 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.3095, allocations: 0 / 471.6 MB, free: 14.25 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.313e-06/0.3095, allocations: 3.984 kB / 471.6 MB, free: 14.25 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003583/0.3131, allocations: 1.784 MB / 473.3 MB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.065e-06/0.3131, allocations: 3.938 kB / 473.3 MB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004956/0.3136, allocations: 108 kB / 473.5 MB, free: 12.3 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.55e-06/0.3136, allocations: 7.938 kB / 473.5 MB, free: 12.29 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.436e-05/0.3137, allocations: 12 kB / 473.5 MB, free: 12.28 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.395e-06/0.3137, allocations: 4 kB / 473.5 MB, free: 12.28 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.694e-06/0.3137, allocations: 3.938 kB / 473.5 MB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001965/0.3157, allocations: 1.036 MB / 474.5 MB, free: 11.2 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000934/0.3166, allocations: 350.5 kB / 474.9 MB, free: 10.86 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001879/0.3168, allocations: 12 kB / 474.9 MB, free: 10.85 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001064/0.3178, allocations: 139.8 kB / 475 MB, free: 10.71 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003272/0.3182, allocations: 159.7 kB / 475.2 MB, free: 10.55 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.347e-05/0.3182, allocations: 16 kB / 475.2 MB, free: 10.54 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002773/0.321, allocations: 1.923 MB / 477.1 MB, free: 8.594 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.321, allocations: 0 / 477.1 MB, free: 8.594 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001064/0.3221, allocations: 323.3 kB / 477.4 MB, free: 8.277 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.001957/0.324, allocations: 499.2 kB / 477.9 MB, free: 7.961 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001345/0.3254, allocations: 0.5771 MB / 478.5 MB, free: 7.383 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.252e-06/0.3254, allocations: 8.062 kB / 478.5 MB, free: 7.375 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007077/0.3261, allocations: 327.6 kB / 478.8 MB, free: 7.055 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001402/0.3275, allocations: 296.9 kB / 479.1 MB, free: 6.766 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005975/0.3334, allocations: 3.606 MB / 482.7 MB, free: 3.105 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009989/0.3344, allocations: 0.8415 MB / 483.5 MB, free: 2.223 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004692/0.3349, allocations: 111.4 kB / 483.7 MB, free: 2.113 MB / 382.1 MB Notification: Performance of SimCode: time 1.213e-06/0.3349, allocations: 3.938 kB / 483.7 MB, free: 2.109 MB / 382.1 MB Notification: Performance of Templates: time 0.03813/0.373, allocations: 23.35 MB / 0.4951 GB, free: 10.82 MB / 414.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/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_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: 10.372999067418277]