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.00249/0.00249, allocations: 99.86 kB / 20.96 MB, free: 3.461 MB / 18.57 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.002088/0.002088, allocations: 149.1 kB / 24.26 MB, free: 172 kB / 18.57 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.547/1.547, allocations: 173.4 MB / 200.8 MB, free: 9.316 MB / 186.7 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 1.773e-06/1.773e-06, allocations: 0 / 267.3 MB, free: 6.762 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.223e-05/3.4e-05, allocations: 6.25 kB / 267.3 MB, free: 6.754 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.00901/0.009044, allocations: 5.623 MB / 272.9 MB, free: 1.102 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004975/0.01402, allocations: 2.532 MB / 275.5 MB, free: 14.56 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005766/0.01459, allocations: 31.81 kB / 275.5 MB, free: 14.53 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001854/0.01645, allocations: 0.7463 MB / 276.2 MB, free: 13.78 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001207/0.01766, allocations: 0.5358 MB / 276.8 MB, free: 13.24 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001217/0.01887, allocations: 0.5145 MB / 277.3 MB, free: 12.72 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002439/0.02131, allocations: 1.632 MB / 278.9 MB, free: 11.08 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007026/0.02201, allocations: 387 kB / 279.3 MB, free: 10.68 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001308/0.02332, allocations: 0.8926 MB / 280.2 MB, free: 9.785 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009946/0.02432, allocations: 0.6585 MB / 280.8 MB, free: 9.125 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002291/0.02455, allocations: 132 kB / 281 MB, free: 8.996 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004809/0.02503, allocations: 203.9 kB / 281.2 MB, free: 8.797 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007157/0.02574, allocations: 0.6544 MB / 281.8 MB, free: 8.141 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007868/0.02653, allocations: 0.5687 MB / 282.4 MB, free: 7.57 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003395/0.02992, allocations: 2.469 MB / 284.9 MB, free: 5.094 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.02993, allocations: 0 / 284.9 MB, free: 5.094 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.02993, allocations: 7.938 kB / 284.9 MB, free: 5.086 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.197e-05/0.03, allocations: 0 / 284.9 MB, free: 5.086 MB / 266.7 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.006043/0.03605, allocations: 2.773 MB / 287.6 MB, free: 2.266 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.759e-05/0.03609, allocations: 12.92 kB / 287.7 MB, free: 2.254 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005816/0.03668, allocations: 307.4 kB / 288 MB, free: 1.953 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002558/0.03923, allocations: 1.219 MB / 289.2 MB, free: 0.7031 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001689/0.0394, allocations: 143.7 kB / 289.3 MB, free: 0.5469 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001588/0.03956, allocations: 92.38 kB / 289.4 MB, free: 468 kB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1461/0.1856, allocations: 1.74 MB / 291.1 MB, free: 30.22 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.567e-05/0.1857, allocations: 4.125 kB / 291.2 MB, free: 30.22 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.533e-05/0.1858, allocations: 39.12 kB / 291.2 MB, free: 30.22 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.234e-05/0.1858, allocations: 20.75 kB / 291.2 MB, free: 30.22 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001249/0.187, allocations: 0.6104 MB / 291.8 MB, free: 30.21 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007548/0.1946, allocations: 4.898 MB / 296.7 MB, free: 27.34 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001062/0.1956, allocations: 484.7 kB / 297.2 MB, free: 27.15 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006626/0.1963, allocations: 312.6 kB / 297.5 MB, free: 27.05 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.627e-05/0.1964, allocations: 12.48 kB / 297.5 MB, free: 27.05 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.614e-05/0.1964, allocations: 49.27 kB / 297.6 MB, free: 27 MB / 266.7 MB Notification: Performance of pre-optimization done (n=44): time 3.035e-06/0.1964, allocations: 0 / 297.6 MB, free: 27 MB / 266.7 MB Notification: Performance of matching and sorting (n=44): time 0.001702/0.1981, allocations: 0.7008 MB / 298.3 MB, free: 26.72 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.299e-05/0.1982, allocations: 426.8 kB / 298.7 MB, free: 26.22 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0033/0.2015, allocations: 2.347 MB / 301 MB, free: 25.25 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.741e-05/0.2016, allocations: 38.33 kB / 301.1 MB, free: 25.21 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008238/0.2024, allocations: 1.121 MB / 302.2 MB, free: 24.43 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001471/0.2026, allocations: 174.8 kB / 302.4 MB, free: 24.31 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000223/0.2028, allocations: 152 kB / 302.5 MB, free: 24.22 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000103/0.2029, allocations: 0.5218 MB / 303 MB, free: 23.72 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004231/0.2033, allocations: 199.7 kB / 303.2 MB, free: 23.66 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006278/0.2039, allocations: 0.9419 MB / 304.2 MB, free: 22.66 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008645/0.2048, allocations: 0.6654 MB / 304.8 MB, free: 22.18 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.871e-06/0.2048, allocations: 1.375 kB / 304.8 MB, free: 22.18 MB / 266.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001576/0.2064, allocations: 0.807 MB / 305.6 MB, free: 21.84 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.11e-05/0.2064, allocations: 7.281 kB / 305.6 MB, free: 21.84 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.225e-05/0.2064, allocations: 5.906 kB / 305.6 MB, free: 21.84 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.883e-05/0.2064, allocations: 8.688 kB / 305.7 MB, free: 21.84 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005261/0.207, allocations: 151.1 kB / 305.8 MB, free: 21.83 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.358e-05/0.207, allocations: 18.33 kB / 305.8 MB, free: 21.83 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008075/0.2078, allocations: 119.6 kB / 305.9 MB, free: 21.8 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.091e-05/0.2078, allocations: 35.94 kB / 306 MB, free: 21.79 MB / 266.7 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.0004479/0.2083, allocations: 329 kB / 306.3 MB, free: 21.54 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002273/0.2085, allocations: 197.7 kB / 306.5 MB, free: 21.44 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001052/0.2096, allocations: 0.5614 MB / 307 MB, free: 21.22 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.638e-06/0.2096, allocations: 3.531 kB / 307.1 MB, free: 21.22 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.2096, allocations: 4 kB / 307.1 MB, free: 21.21 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.983e-06/0.2096, allocations: 7.688 kB / 307.1 MB, free: 21.21 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003385/0.213, allocations: 2.188 MB / 309.2 MB, free: 19.59 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/0.213, allocations: 4.094 kB / 309.3 MB, free: 19.59 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004282/0.2134, allocations: 95.88 kB / 309.3 MB, free: 19.49 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.003e-06/0.2134, allocations: 4 kB / 309.4 MB, free: 19.49 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.54e-05/0.2134, allocations: 12 kB / 309.4 MB, free: 19.48 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.039e-06/0.2134, allocations: 4 kB / 309.4 MB, free: 19.47 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.2135, allocations: 0 / 309.4 MB, free: 19.47 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0013/0.2148, allocations: 0.9814 MB / 310.3 MB, free: 18.46 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007503/0.2155, allocations: 318.8 kB / 310.7 MB, free: 18.15 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001639/0.2157, allocations: 8 kB / 310.7 MB, free: 18.14 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007311/0.2164, allocations: 99.91 kB / 310.8 MB, free: 18.05 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003174/0.2167, allocations: 199.6 kB / 311 MB, free: 17.85 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.898e-05/0.2168, allocations: 16 kB / 311 MB, free: 17.84 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001847/0.2186, allocations: 1.376 MB / 312.4 MB, free: 16.44 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2186, allocations: 0 / 312.4 MB, free: 16.44 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0009839/0.2196, allocations: 318.5 kB / 312.7 MB, free: 16.15 MB / 266.7 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.00334/0.2229, allocations: 0.5084 MB / 313.2 MB, free: 15.91 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001027/0.224, allocations: 0.5085 MB / 313.7 MB, free: 15.39 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.713e-06/0.224, allocations: 3.859 kB / 313.7 MB, free: 15.39 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003859/0.2243, allocations: 239.5 kB / 313.9 MB, free: 15.15 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001283/0.2256, allocations: 298.4 kB / 314.2 MB, free: 14.85 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003723/0.2293, allocations: 2.955 MB / 317.2 MB, free: 11.85 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005875/0.2299, allocations: 0.7979 MB / 318 MB, free: 11.02 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0005209/0.2305, allocations: 206.4 kB / 318.2 MB, free: 10.81 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002782/0.2307, allocations: 96.5 kB / 318.3 MB, free: 10.72 MB / 266.7 MB Notification: Performance of SimCode: time 1.353e-06/0.2307, allocations: 3.938 kB / 318.3 MB, free: 10.71 MB / 266.7 MB Notification: Performance of Templates: time 0.03495/0.2657, allocations: 21.34 MB / 339.6 MB, free: 5.609 MB / 282.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/BatteryDischargeCharge/BatteryDischargeCharge.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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: 5.64063644700218]