Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.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.0007188/0.0007188, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001039/0.001758, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 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.000623/0.000623, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008525/0.001476, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 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 0.8345/0.8345, allocations: 173.4 MB / 186 MB, free: 7.531 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1734/1.008, allocations: 52.48 MB / 238.5 MB, free: 7.621 MB / 234.7 MB " [Timeout remaining time 179] 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.SuperCapDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=72000,variableFilter="time|energy.y|superCap.capacitor.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") translateModel(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=72000,variableFilter="time|energy.y|superCap.capacitor.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.405e-06/2.405e-06, allocations: 4 kB / 239.7 MB, free: 6.367 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.495e-05/1.735e-05, allocations: 2.312 kB / 239.7 MB, free: 6.363 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.002896/0.002914, allocations: 3.002 MB / 242.7 MB, free: 3.367 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001141/0.004055, allocations: 0.7388 MB / 243.5 MB, free: 2.625 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001425/0.004197, allocations: 7.938 kB / 243.5 MB, free: 2.617 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001196/0.004317, allocations: 63.38 kB / 243.5 MB, free: 2.555 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001993/0.004516, allocations: 117.4 kB / 243.7 MB, free: 2.441 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002179/0.004734, allocations: 111.7 kB / 243.8 MB, free: 2.332 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003189/0.005053, allocations: 426.8 kB / 244.2 MB, free: 1.914 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000179/0.005232, allocations: 138.3 kB / 244.3 MB, free: 1.773 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002289/0.005461, allocations: 280.8 kB / 244.6 MB, free: 1.496 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001843/0.005645, allocations: 153.5 kB / 244.7 MB, free: 1.348 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.845e-05/0.005694, allocations: 40 kB / 244.8 MB, free: 1.309 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00011/0.005804, allocations: 55.98 kB / 244.8 MB, free: 1.254 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 9.201e-05/0.005896, allocations: 83.72 kB / 244.9 MB, free: 1.172 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 8.591e-05/0.005982, allocations: 117.3 kB / 245 MB, free: 1.059 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002818/0.006263, allocations: 294.8 kB / 245.3 MB, free: 0.7695 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.124e-06/0.00627, allocations: 0 / 245.3 MB, free: 0.7695 MB / 234.7 MB Notification: Performance of FrontEnd: time 4.31e-07/0.006271, allocations: 0 / 245.3 MB, free: 0.7695 MB / 234.7 MB Notification: Performance of Transformations before backend: time 9.067e-06/0.00628, allocations: 0.625 kB / 245.3 MB, free: 0.7695 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.0007924/0.007072, allocations: 0.7354 MB / 246.1 MB, free: 16 kB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.591e-05/0.007098, allocations: 12.03 kB / 246.1 MB, free: 4 kB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.043e-05/0.007169, allocations: 49.72 kB / 246.1 MB, free: 15.95 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002316/0.0074, allocations: 222 kB / 246.3 MB, free: 15.72 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.525e-05/0.007416, allocations: 25.03 kB / 246.4 MB, free: 15.7 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.691e-05/0.007452, allocations: 33.02 kB / 246.4 MB, free: 15.66 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002646/0.007717, allocations: 309.3 kB / 246.7 MB, free: 15.33 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.819e-06/0.007727, allocations: 6.719 kB / 246.7 MB, free: 15.32 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.798e-05/0.007745, allocations: 12.38 kB / 246.7 MB, free: 15.31 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.936e-06/0.007754, allocations: 11.94 kB / 246.7 MB, free: 15.3 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001005/0.007854, allocations: 71.39 kB / 246.8 MB, free: 15.23 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008063/0.008661, allocations: 0.8973 MB / 247.7 MB, free: 14.29 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001624/0.008823, allocations: 147.5 kB / 247.8 MB, free: 14.13 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.128e-05/0.008914, allocations: 73.66 kB / 247.9 MB, free: 14.06 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.021e-05/0.008934, allocations: 4 kB / 247.9 MB, free: 14.05 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.931e-05/0.008954, allocations: 34.55 kB / 247.9 MB, free: 14.01 MB / 250.7 MB Notification: Performance of pre-optimization done (n=16): time 8.92e-07/0.008955, allocations: 4.906 kB / 247.9 MB, free: 14.01 MB / 250.7 MB Notification: Performance of matching and sorting (n=16): time 0.000148/0.009103, allocations: 101.8 kB / 248 MB, free: 13.9 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.162e-05/0.009124, allocations: 59.84 kB / 248.1 MB, free: 13.83 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001383/0.009263, allocations: 249.8 kB / 248.3 MB, free: 13.58 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.581e-05/0.009278, allocations: 29.7 kB / 248.4 MB, free: 13.54 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.197e-05/0.00935, allocations: 196.8 kB / 248.6 MB, free: 13.34 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.13e-05/0.009382, allocations: 61.12 kB / 248.6 MB, free: 13.29 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.961e-05/0.009431, allocations: 45.69 kB / 248.7 MB, free: 13.23 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.343e-05/0.009505, allocations: 334.8 kB / 249 MB, free: 12.9 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.15e-05/0.009536, allocations: 18.83 kB / 249 MB, free: 12.88 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.566e-05/0.009602, allocations: 86.75 kB / 249.1 MB, free: 12.77 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.52e-05/0.009697, allocations: 127.5 kB / 249.2 MB, free: 12.62 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-06/0.009698, allocations: 4 kB / 249.2 MB, free: 12.61 MB / 250.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0001322/0.009831, allocations: 142.1 kB / 249.4 MB, free: 12.47 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.765e-06/0.009838, allocations: 4 kB / 249.4 MB, free: 12.46 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.009843, allocations: 7.984 kB / 249.4 MB, free: 12.46 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.045e-06/0.009851, allocations: 4 kB / 249.4 MB, free: 12.45 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001356/0.009986, allocations: 55.91 kB / 249.4 MB, free: 12.4 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.02e-06/0.009991, allocations: 11.92 kB / 249.5 MB, free: 12.39 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001213/0.01011, allocations: 52.06 kB / 249.5 MB, free: 12.34 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.353e-05/0.01013, allocations: 8 kB / 249.5 MB, free: 12.33 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 3 (energy.local_reset,pulseSeries.on2,pulseSeries.on1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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 7.232e-05/0.0102, allocations: 124.6 kB / 249.6 MB, free: 12.2 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.898e-05/0.01023, allocations: 15.98 kB / 249.6 MB, free: 12.18 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000141/0.01037, allocations: 119.7 kB / 249.8 MB, free: 12.06 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.704e-06/0.01037, allocations: 0 / 249.8 MB, free: 12.06 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.224e-06/0.01037, allocations: 3.938 kB / 249.8 MB, free: 12.05 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.01038, allocations: 0 / 249.8 MB, free: 12.05 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003416/0.01072, allocations: 398.6 kB / 250.2 MB, free: 11.64 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.01072, allocations: 4.031 kB / 250.2 MB, free: 11.63 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.96e-05/0.01082, allocations: 39.92 kB / 250.2 MB, free: 11.59 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.773e-05/0.01085, allocations: 27.78 kB / 250.2 MB, free: 11.57 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.01085, allocations: 3.938 kB / 250.2 MB, free: 11.56 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.644e-06/0.01085, allocations: 0 / 250.2 MB, free: 11.56 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.01086, allocations: 4 kB / 250.2 MB, free: 11.56 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.01086, allocations: 0 / 250.2 MB, free: 11.56 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001788/0.01104, allocations: 267.5 kB / 250.5 MB, free: 11.28 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.022e-05/0.01106, allocations: 7.938 kB / 250.5 MB, free: 11.27 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001224/0.01118, allocations: 43.98 kB / 250.5 MB, free: 11.23 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.05e-05/0.01124, allocations: 39.94 kB / 250.6 MB, free: 11.19 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.616e-06/0.01125, allocations: 4 kB / 250.6 MB, free: 11.18 MB / 250.7 MB Notification: Performance of sorting global known variables: time 6.568e-05/0.01131, allocations: 90.77 kB / 250.7 MB, free: 11.1 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01131, allocations: 3.938 kB / 250.7 MB, free: 11.09 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001957/0.01151, allocations: 87.78 kB / 250.8 MB, free: 11.01 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (superCap.capacitor.v,energy.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 (16): * Single equations (assignments): 16 * 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 7.649e-05/0.01159, allocations: 84.41 kB / 250.9 MB, free: 10.92 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001167/0.0117, allocations: 99.09 kB / 250.9 MB, free: 10.82 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 7.033e-06/0.01171, allocations: 4 kB / 251 MB, free: 10.82 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 6.035e-05/0.01177, allocations: 55.55 kB / 251 MB, free: 10.76 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002841/0.01205, allocations: 424.5 kB / 251.4 MB, free: 10.27 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002371/0.01443, allocations: 0.6032 MB / 252 MB, free: 9.629 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.38e-05/0.01448, allocations: 92.3 kB / 252.1 MB, free: 9.52 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 7.678e-05/0.01456, allocations: 26.3 kB / 252.1 MB, free: 9.492 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000129/0.01469, allocations: 103.3 kB / 252.2 MB, free: 9.391 MB / 250.7 MB Notification: Performance of SimCode: time 4.81e-07/0.01469, allocations: 4 kB / 252.2 MB, free: 9.387 MB / 250.7 MB Notification: Performance of Templates: time 0.005531/0.02022, allocations: 4.175 MB / 256.4 MB, free: 5.266 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/SuperCapDischargeCharge/SuperCapDischargeCharge.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.5565894339233637]