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.001558/0.001558, allocations: 112.5 kB / 21.19 MB, free: 0.7578 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.001678/0.001678, allocations: 209.8 kB / 24.5 MB, free: 4.133 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.392/1.392, allocations: 230.6 MB / 258.3 MB, free: 7.992 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.001565/0.001565, allocations: 47.92 kB / 379 MB, free: 2.648 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2288/0.2304, allocations: 53.37 MB / 432.4 MB, free: 6.938 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.007838/0.2382, allocations: 5.898 MB / 438.3 MB, free: 1.023 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004723/0.2429, allocations: 2.773 MB / 441.1 MB, free: 14.24 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005786/0.2435, allocations: 23.88 kB / 441.1 MB, free: 14.21 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001631/0.2451, allocations: 0.7791 MB / 441.9 MB, free: 13.44 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001112/0.2463, allocations: 0.5633 MB / 442.4 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001166/0.2474, allocations: 0.5123 MB / 442.9 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001898/0.2493, allocations: 1.609 MB / 444.5 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006367/0.25, allocations: 403.1 kB / 444.9 MB, free: 10.33 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000736/0.2507, allocations: 0.6307 MB / 445.6 MB, free: 9.695 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009695/0.2517, allocations: 0.7744 MB / 446.3 MB, free: 8.918 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001876/0.2518, allocations: 132 kB / 446.5 MB, free: 8.789 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003955/0.2522, allocations: 215.9 kB / 446.7 MB, free: 8.578 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006038/0.2528, allocations: 0.6505 MB / 447.3 MB, free: 7.926 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008752/0.2537, allocations: 0.9244 MB / 448.3 MB, free: 6.996 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002611/0.2563, allocations: 2.498 MB / 450.8 MB, free: 4.488 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.847e-06/0.2563, allocations: 7.984 kB / 450.8 MB, free: 4.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.2563, allocations: 0 / 450.8 MB, free: 4.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.353e-05/0.2564, allocations: 4 kB / 450.8 MB, free: 4.477 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.004918/0.2613, allocations: 2.569 MB / 453.3 MB, free: 1.863 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.392e-05/0.2613, allocations: 15.97 kB / 453.4 MB, free: 1.848 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003523/0.2617, allocations: 235.4 kB / 453.6 MB, free: 1.617 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002574/0.2642, allocations: 1.499 MB / 455.1 MB, free: 64 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001662/0.2644, allocations: 151.6 kB / 455.2 MB, free: 15.9 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001357/0.2645, allocations: 87.94 kB / 455.3 MB, free: 15.81 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00185/0.2664, allocations: 1.102 MB / 456.4 MB, free: 14.63 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.454e-05/0.2664, allocations: 11.92 kB / 456.4 MB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.711e-05/0.2665, allocations: 40 kB / 456.5 MB, free: 14.58 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.198e-05/0.2665, allocations: 24 kB / 456.5 MB, free: 14.56 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001373/0.2679, allocations: 0.7143 MB / 457.2 MB, free: 13.85 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007121/0.275, allocations: 4.534 MB / 461.7 MB, free: 9.141 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001156/0.2762, allocations: 0.5162 MB / 462.3 MB, free: 8.613 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000758/0.2769, allocations: 365.9 kB / 462.6 MB, free: 8.254 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.085e-05/0.277, allocations: 4 kB / 462.6 MB, free: 8.25 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.566e-05/0.277, allocations: 38.56 kB / 462.7 MB, free: 8.203 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 2.114e-06/0.277, allocations: 3.938 kB / 462.7 MB, free: 8.199 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.001882/0.2789, allocations: 0.8288 MB / 463.5 MB, free: 7.363 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002459/0.2792, allocations: 423.2 kB / 463.9 MB, free: 6.852 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003769/0.2829, allocations: 2.771 MB / 466.7 MB, free: 4.039 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.115e-05/0.283, allocations: 37.7 kB / 466.7 MB, free: 3.996 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008619/0.2839, allocations: 0.8913 MB / 467.6 MB, free: 3.098 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001499/0.284, allocations: 166.6 kB / 467.8 MB, free: 2.934 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002081/0.2842, allocations: 122.3 kB / 467.9 MB, free: 2.809 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001751/0.2844, allocations: 330 kB / 468.2 MB, free: 2.48 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005285/0.2849, allocations: 257.2 kB / 468.5 MB, free: 2.23 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000767/0.2857, allocations: 0.5285 MB / 469 MB, free: 1.582 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001059/0.2868, allocations: 0.6171 MB / 469.6 MB, free: 0.8867 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.861e-06/0.2868, allocations: 4 kB / 469.6 MB, free: 0.8828 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001651/0.2884, allocations: 0.858 MB / 470.5 MB, free: 16 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.769e-05/0.2884, allocations: 8 kB / 470.5 MB, free: 8 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.126e-05/0.2884, allocations: 8 kB / 470.5 MB, free: 0 / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.066e-05/0.2885, allocations: 11.98 kB / 470.5 MB, free: 15.99 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005992/0.2891, allocations: 163.7 kB / 470.7 MB, free: 15.83 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.754e-05/0.2891, allocations: 12.22 kB / 470.7 MB, free: 15.82 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000952/0.2901, allocations: 159.4 kB / 470.8 MB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.51e-05/0.2901, allocations: 32 kB / 470.8 MB, free: 15.63 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.000803/0.2909, allocations: 0.5677 MB / 471.4 MB, free: 15.05 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002668/0.2912, allocations: 190.7 kB / 471.6 MB, free: 14.86 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001396/0.2926, allocations: 0.6924 MB / 472.3 MB, free: 14.16 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.024e-05/0.2926, allocations: 7.984 kB / 472.3 MB, free: 14.16 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/0.2926, allocations: 3.938 kB / 472.3 MB, free: 14.15 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.161e-06/0.2926, allocations: 0 / 472.3 MB, free: 14.15 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003501/0.2961, allocations: 2.093 MB / 474.4 MB, free: 11.99 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.2961, allocations: 0 / 474.4 MB, free: 11.99 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004873/0.2966, allocations: 112 kB / 474.5 MB, free: 11.88 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.612e-06/0.2966, allocations: 7.938 kB / 474.5 MB, free: 11.88 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.539e-05/0.2966, allocations: 12 kB / 474.5 MB, free: 11.86 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.984e-06/0.2966, allocations: 7.938 kB / 474.5 MB, free: 11.86 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.2966, allocations: 0 / 474.5 MB, free: 11.86 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001799/0.2984, allocations: 1.056 MB / 475.6 MB, free: 10.77 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007942/0.2992, allocations: 342.6 kB / 475.9 MB, free: 10.43 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001729/0.2994, allocations: 19.98 kB / 475.9 MB, free: 10.41 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009617/0.3004, allocations: 135.8 kB / 476.1 MB, free: 10.28 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002994/0.3007, allocations: 159.7 kB / 476.2 MB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.242e-05/0.3007, allocations: 19.94 kB / 476.3 MB, free: 10.11 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002668/0.3034, allocations: 1.964 MB / 478.2 MB, free: 8.121 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3034, allocations: 0 / 478.2 MB, free: 8.121 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008407/0.3042, allocations: 319.4 kB / 478.5 MB, free: 7.809 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.001731/0.3059, allocations: 487.7 kB / 479 MB, free: 7.512 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001233/0.3072, allocations: 0.5722 MB / 479.6 MB, free: 6.938 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.139e-06/0.3072, allocations: 9.188 kB / 479.6 MB, free: 6.93 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006467/0.3078, allocations: 327.9 kB / 479.9 MB, free: 6.609 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001223/0.3091, allocations: 327.3 kB / 480.2 MB, free: 6.297 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005518/0.3146, allocations: 3.618 MB / 483.8 MB, free: 2.625 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001162/0.3157, allocations: 1.437 MB / 485.3 MB, free: 1.156 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003856/0.3161, allocations: 107.4 kB / 485.4 MB, free: 1.051 MB / 382.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3161, allocations: 0 / 485.4 MB, free: 1.051 MB / 382.1 MB Notification: Performance of Templates: time 0.03386/0.35, allocations: 23.25 MB / 0.4967 GB, free: 9.883 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: 9.866264873882756]