Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.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.001061/0.001061, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001354/0.002414, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.0007009/0.0007009, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009849/0.001686, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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.042/1.042, allocations: 177.2 MB / 189.8 MB, free: 5.242 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1087/1.15, allocations: 53.66 MB / 243.4 MB, free: 15.5 MB / 250.7 MB " [Timeout remaining time 179] 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.SuperCapDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=72000,variableFilter="time|energy.y|superCap.capacitor.v",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 244.7 MB, free: 14.23 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.048e-05/2.209e-05, allocations: 6.312 kB / 244.7 MB, free: 14.23 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004006/0.004028, allocations: 3.023 MB / 247.7 MB, free: 11.18 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001352/0.00538, allocations: 0.7669 MB / 248.5 MB, free: 10.41 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001594/0.005539, allocations: 7.938 kB / 248.5 MB, free: 10.4 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001575/0.005697, allocations: 63.38 kB / 248.6 MB, free: 10.34 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002263/0.005923, allocations: 119 kB / 248.7 MB, free: 10.22 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002417/0.006165, allocations: 111.8 kB / 248.8 MB, free: 10.11 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003685/0.006534, allocations: 422.1 kB / 249.2 MB, free: 9.695 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002026/0.006736, allocations: 138.3 kB / 249.3 MB, free: 9.559 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002817/0.007018, allocations: 280.1 kB / 249.6 MB, free: 9.285 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00023/0.007248, allocations: 147.6 kB / 249.8 MB, free: 9.141 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.579e-05/0.007294, allocations: 40 kB / 249.8 MB, free: 9.102 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001386/0.007432, allocations: 59.92 kB / 249.8 MB, free: 9.043 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001099/0.007542, allocations: 91.72 kB / 249.9 MB, free: 8.953 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.21e-05/0.007634, allocations: 119.8 kB / 250.1 MB, free: 8.836 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003267/0.007961, allocations: 283 kB / 250.3 MB, free: 8.559 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.995e-06/0.007969, allocations: 0 / 250.3 MB, free: 8.559 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.00797, allocations: 3.938 kB / 250.3 MB, free: 8.555 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.063e-05/0.007981, allocations: 0 / 250.3 MB, free: 8.555 MB / 250.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.0009414/0.008922, allocations: 0.7412 MB / 251.1 MB, free: 7.789 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.629e-05/0.008958, allocations: 12.03 kB / 251.1 MB, free: 7.777 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.641e-05/0.009035, allocations: 44.91 kB / 251.1 MB, free: 7.734 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002709/0.009306, allocations: 216.7 kB / 251.3 MB, free: 7.496 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.651e-05/0.009322, allocations: 25.03 kB / 251.4 MB, free: 7.473 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.527e-05/0.009368, allocations: 36.31 kB / 251.4 MB, free: 7.438 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002951/0.009663, allocations: 313.3 kB / 251.7 MB, free: 7.098 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.468e-06/0.009672, allocations: 4.188 kB / 251.7 MB, free: 7.094 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.952e-05/0.009702, allocations: 16.38 kB / 251.7 MB, free: 7.078 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.327e-06/0.009711, allocations: 11.94 kB / 251.7 MB, free: 7.066 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001074/0.009818, allocations: 71.39 kB / 251.8 MB, free: 6.996 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009592/0.01078, allocations: 0.8951 MB / 252.7 MB, free: 6.051 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001971/0.01097, allocations: 146.4 kB / 252.8 MB, free: 5.898 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001027/0.01108, allocations: 64.81 kB / 252.9 MB, free: 5.832 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.803e-05/0.01111, allocations: 4 kB / 252.9 MB, free: 5.828 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.119e-05/0.01113, allocations: 30.56 kB / 252.9 MB, free: 5.789 MB / 250.7 MB Notification: Performance of pre-optimization done (n=16): time 2.084e-06/0.01113, allocations: 4 kB / 253 MB, free: 5.785 MB / 250.7 MB Notification: Performance of matching and sorting (n=16): time 0.0001975/0.01133, allocations: 109.6 kB / 253.1 MB, free: 5.676 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.973e-05/0.01136, allocations: 59.34 kB / 253.1 MB, free: 5.605 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001621/0.01152, allocations: 249 kB / 253.4 MB, free: 5.348 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.011e-05/0.01154, allocations: 37.62 kB / 253.4 MB, free: 5.305 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.47e-05/0.01162, allocations: 200.7 kB / 253.6 MB, free: 5.105 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.1e-05/0.01165, allocations: 55.52 kB / 253.6 MB, free: 5.051 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.368e-05/0.01171, allocations: 49.64 kB / 253.7 MB, free: 4.996 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.193e-05/0.0118, allocations: 334.8 kB / 254 MB, free: 4.66 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.747e-05/0.01184, allocations: 18.83 kB / 254 MB, free: 4.641 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.482e-05/0.0119, allocations: 80.34 kB / 254.1 MB, free: 4.535 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001117/0.01201, allocations: 129.9 kB / 254.2 MB, free: 4.383 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-06/0.01202, allocations: 4 kB / 254.2 MB, free: 4.379 MB / 250.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0001559/0.01217, allocations: 140.1 kB / 254.4 MB, free: 4.234 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.3e-05/0.01219, allocations: 4.25 kB / 254.4 MB, free: 4.23 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.01219, allocations: 8 kB / 254.4 MB, free: 4.223 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.227e-05/0.0122, allocations: 4 kB / 254.4 MB, free: 4.219 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001774/0.01238, allocations: 59.84 kB / 254.5 MB, free: 4.16 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.441e-06/0.01239, allocations: 4 kB / 254.5 MB, free: 4.156 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001293/0.01252, allocations: 47.84 kB / 254.5 MB, free: 4.109 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.699e-05/0.01253, allocations: 8 kB / 254.5 MB, free: 4.102 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 8.854e-05/0.01262, allocations: 128.6 kB / 254.6 MB, free: 3.965 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.998e-05/0.01265, allocations: 19.98 kB / 254.7 MB, free: 3.945 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001673/0.01282, allocations: 119.7 kB / 254.8 MB, free: 3.828 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.01282, allocations: 0 / 254.8 MB, free: 3.828 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.525e-06/0.01282, allocations: 3.938 kB / 254.8 MB, free: 3.824 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.125e-06/0.01283, allocations: 0 / 254.8 MB, free: 3.824 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003855/0.01321, allocations: 383.5 kB / 255.2 MB, free: 3.418 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.01322, allocations: 7.984 kB / 255.2 MB, free: 3.41 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001323/0.01335, allocations: 39.92 kB / 255.2 MB, free: 3.371 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.423e-05/0.01338, allocations: 23.8 kB / 255.2 MB, free: 3.348 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.01339, allocations: 4.031 kB / 255.2 MB, free: 3.344 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.339e-05/0.0134, allocations: 3.984 kB / 255.2 MB, free: 3.34 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.866e-06/0.0134, allocations: 4 kB / 255.2 MB, free: 3.336 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.0134, allocations: 0 / 255.2 MB, free: 3.336 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002055/0.01361, allocations: 272.4 kB / 255.5 MB, free: 3.051 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.43e-05/0.01363, allocations: 11.92 kB / 255.5 MB, free: 3.039 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000126/0.01376, allocations: 35.97 kB / 255.6 MB, free: 3.004 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.239e-05/0.01383, allocations: 43.95 kB / 255.6 MB, free: 2.961 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.047e-05/0.01384, allocations: 15.94 kB / 255.6 MB, free: 2.945 MB / 250.7 MB Notification: Performance of sorting global known variables: time 7.194e-05/0.01391, allocations: 90.7 kB / 255.7 MB, free: 2.855 MB / 250.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.01391, allocations: 0 / 255.7 MB, free: 2.855 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002229/0.01414, allocations: 91.73 kB / 255.8 MB, free: 2.766 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 0.0001235/0.01426, allocations: 84.42 kB / 255.9 MB, free: 2.672 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001415/0.0144, allocations: 91.25 kB / 256 MB, free: 2.582 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 9.739e-06/0.01441, allocations: 7.984 kB / 256 MB, free: 2.574 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 6.754e-05/0.01448, allocations: 63.3 kB / 256 MB, free: 2.512 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003476/0.01483, allocations: 419.2 kB / 256.4 MB, free: 2.027 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002395/0.01722, allocations: 0.5806 MB / 257 MB, free: 1.414 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.35e-05/0.01728, allocations: 92.3 kB / 257.1 MB, free: 1.305 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 9.896e-05/0.01737, allocations: 38.27 kB / 257.1 MB, free: 1.27 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001466/0.01752, allocations: 107.3 kB / 257.3 MB, free: 1.164 MB / 250.7 MB Notification: Performance of SimCode: time 7.91e-07/0.01752, allocations: 0 / 257.3 MB, free: 1.164 MB / 250.7 MB Notification: Performance of Templates: time 0.00617/0.02369, allocations: 4.147 MB / 261.4 MB, free: 13.07 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.839725585654378]