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.001775/0.001775, allocations: 117 kB / 18.41 MB, free: 4.664 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.001408/0.001408, allocations: 186.9 kB / 21.34 MB, free: 1.734 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.409/1.409, allocations: 222.9 MB / 247.1 MB, free: 4.188 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 0.002216/0.002216, allocations: 51.91 kB / 358.7 MB, free: 8.289 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1133, allocations: 49.43 MB / 408.1 MB, free: 6.812 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.008134/0.1215, allocations: 5.794 MB / 413.9 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00511/0.1267, allocations: 2.583 MB / 416.5 MB, free: 14.4 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008286/0.1275, allocations: 19.94 kB / 416.5 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002054/0.1296, allocations: 0.7739 MB / 417.3 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001421/0.1311, allocations: 0.5049 MB / 417.8 MB, free: 13.1 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001346/0.1324, allocations: 0.5023 MB / 418.3 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002311/0.1348, allocations: 1.585 MB / 419.9 MB, free: 11 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009217/0.1357, allocations: 0.6 MB / 420.5 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009336/0.1366, allocations: 0.6111 MB / 421.1 MB, free: 9.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009651/0.1376, allocations: 0.7393 MB / 421.8 MB, free: 9.027 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002111/0.1378, allocations: 132 kB / 421.9 MB, free: 8.898 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004479/0.1383, allocations: 212 kB / 422.1 MB, free: 8.691 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006154/0.1389, allocations: 0.6348 MB / 422.8 MB, free: 8.055 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009894/0.1399, allocations: 0.9166 MB / 423.7 MB, free: 7.133 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003058/0.143, allocations: 2.494 MB / 426.2 MB, free: 4.629 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.889e-06/0.143, allocations: 0 / 426.2 MB, free: 4.629 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.584e-06/0.143, allocations: 3.938 kB / 426.2 MB, free: 4.625 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.555e-05/0.1431, allocations: 0 / 426.2 MB, free: 4.625 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.005729/0.1488, allocations: 2.636 MB / 428.8 MB, free: 1.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.089e-05/0.1489, allocations: 8.031 kB / 428.8 MB, free: 1.922 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004252/0.1493, allocations: 239.4 kB / 429.1 MB, free: 1.688 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002755/0.1521, allocations: 1.552 MB / 430.6 MB, free: 92 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.2106/0.3627, allocations: 96.81 kB / 430.7 MB, free: 21.59 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003037/0.363, allocations: 84.27 kB / 430.8 MB, free: 21.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001704/0.3648, allocations: 1.098 MB / 431.9 MB, free: 21.35 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.307e-05/0.3648, allocations: 2.5 kB / 431.9 MB, free: 21.35 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.178e-05/0.3649, allocations: 42.16 kB / 431.9 MB, free: 21.35 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.487e-05/0.3649, allocations: 20.41 kB / 432 MB, free: 21.35 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001175/0.3661, allocations: 0.7175 MB / 432.7 MB, free: 21.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006722/0.3728, allocations: 4.595 MB / 437.3 MB, free: 19.94 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001187/0.374, allocations: 0.9414 MB / 438.2 MB, free: 19.44 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007537/0.3748, allocations: 383.6 kB / 438.6 MB, free: 19.43 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.173e-05/0.3749, allocations: 6.109 kB / 438.6 MB, free: 19.43 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.78e-05/0.3749, allocations: 43.28 kB / 438.6 MB, free: 19.39 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.023e-06/0.3749, allocations: 3.688 kB / 438.6 MB, free: 19.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.001776/0.3767, allocations: 0.833 MB / 439.5 MB, free: 19.25 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.516e-05/0.3768, allocations: 420.4 kB / 439.9 MB, free: 18.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003376/0.3802, allocations: 2.736 MB / 442.6 MB, free: 18.53 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.369e-05/0.3802, allocations: 39.33 kB / 442.7 MB, free: 18.5 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006052/0.3808, allocations: 0.8901 MB / 443.5 MB, free: 18.3 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001072/0.381, allocations: 163.4 kB / 443.7 MB, free: 18.21 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000194/0.3812, allocations: 125.3 kB / 443.8 MB, free: 18.19 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.287e-05/0.3812, allocations: 331.2 kB / 444.2 MB, free: 17.89 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005445/0.3818, allocations: 256 kB / 444.4 MB, free: 17.89 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006569/0.3825, allocations: 0.5358 MB / 444.9 MB, free: 17.48 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009348/0.3834, allocations: 0.6126 MB / 445.6 MB, free: 17.1 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.571e-06/0.3834, allocations: 5.5 kB / 445.6 MB, free: 17.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001521/0.3849, allocations: 0.86 MB / 446.4 MB, free: 16.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.994e-05/0.385, allocations: 11.5 kB / 446.4 MB, free: 16.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/0.385, allocations: 5.969 kB / 446.4 MB, free: 16.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.802e-05/0.385, allocations: 16.03 kB / 446.5 MB, free: 16.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005848/0.3856, allocations: 155.2 kB / 446.6 MB, free: 16.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.611e-05/0.3856, allocations: 14 kB / 446.6 MB, free: 16.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00101/0.3867, allocations: 163.6 kB / 446.8 MB, free: 16.67 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.223e-05/0.3867, allocations: 27.58 kB / 446.8 MB, free: 16.67 MB / 350.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.0007238/0.3874, allocations: 0.559 MB / 447.4 MB, free: 16.4 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002099/0.3877, allocations: 190.7 kB / 447.5 MB, free: 16.3 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001302/0.389, allocations: 0.6992 MB / 448.2 MB, free: 16.03 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.103e-06/0.389, allocations: 4.781 kB / 448.3 MB, free: 16.03 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.702e-06/0.389, allocations: 4.75 kB / 448.3 MB, free: 16.03 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.974e-06/0.389, allocations: 6.672 kB / 448.3 MB, free: 16.03 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003236/0.3923, allocations: 2.116 MB / 450.4 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.3923, allocations: 1.906 kB / 450.4 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004873/0.3928, allocations: 109.9 kB / 450.5 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.342e-06/0.3928, allocations: 3.875 kB / 450.5 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.785e-05/0.3928, allocations: 13.58 kB / 450.5 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.513e-06/0.3928, allocations: 3.078 kB / 450.5 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.3929, allocations: 7.781 kB / 450.5 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001626/0.3945, allocations: 1.052 MB / 451.6 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005446/0.395, allocations: 417.9 kB / 452 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001872/0.3952, allocations: 16 kB / 452 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001035/0.3963, allocations: 139.2 kB / 452.1 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002837/0.3966, allocations: 154.4 kB / 452.3 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.754e-05/0.3966, allocations: 15.59 kB / 452.3 MB, free: 14.26 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002242/0.3989, allocations: 1.949 MB / 454.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3989, allocations: 0 / 454.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008721/0.3997, allocations: 316.5 kB / 454.6 MB, free: 13.35 MB / 350.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.001694/0.4014, allocations: 482.4 kB / 455 MB, free: 13.2 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001154/0.4026, allocations: 0.5873 MB / 455.6 MB, free: 12.95 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.53e-06/0.4026, allocations: 3.969 kB / 455.6 MB, free: 12.95 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00055/0.4032, allocations: 345.2 kB / 456 MB, free: 12.8 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001221/0.4044, allocations: 318.5 kB / 456.3 MB, free: 12.62 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004514/0.4089, allocations: 3.624 MB / 459.9 MB, free: 10.62 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007018/0.4097, allocations: 1.422 MB / 461.3 MB, free: 9.566 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003522/0.41, allocations: 112.8 kB / 461.4 MB, free: 9.527 MB / 350.1 MB Notification: Performance of SimCode: time 5.01e-07/0.41, allocations: 0 / 461.4 MB, free: 9.527 MB / 350.1 MB Notification: Performance of Templates: time 0.03284/0.4429, allocations: 23.08 MB / 484.5 MB, free: 2.527 MB / 366.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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/BatteryDischargeCharge/BatteryDischargeCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 10.451657449943013]