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.002626/0.002626, allocations: 91.61 kB / 20.96 MB, free: 3.465 MB / 18.57 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.002434/0.002434, allocations: 165.3 kB / 24.27 MB, free: 152 kB / 18.57 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.56/1.56, allocations: 177.1 MB / 204.6 MB, free: 5.637 MB / 186.7 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.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.963e-06/1.963e-06, allocations: 0 / 272.3 MB, free: 1.887 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.366e-05/3.563e-05, allocations: 5.688 kB / 272.3 MB, free: 1.883 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.005667/0.005703, allocations: 2.954 MB / 275.3 MB, free: 14.91 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001971/0.007673, allocations: 0.7244 MB / 276 MB, free: 14.18 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003999/0.008073, allocations: 7.938 kB / 276 MB, free: 14.17 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003323/0.008406, allocations: 63.36 kB / 276 MB, free: 14.11 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005097/0.008915, allocations: 115 kB / 276.2 MB, free: 14 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004852/0.0094, allocations: 111.8 kB / 276.3 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007081/0.01011, allocations: 426.1 kB / 276.7 MB, free: 13.47 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003341/0.01044, allocations: 134.4 kB / 276.8 MB, free: 13.34 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004498/0.01089, allocations: 247.5 kB / 277.1 MB, free: 13.1 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003551/0.01125, allocations: 147.6 kB / 277.2 MB, free: 12.95 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.337e-05/0.01134, allocations: 40 kB / 277.2 MB, free: 12.91 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000169/0.01151, allocations: 63.86 kB / 277.3 MB, free: 12.85 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002086/0.01172, allocations: 107.6 kB / 277.4 MB, free: 12.75 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002101/0.01193, allocations: 139.7 kB / 277.5 MB, free: 12.61 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007715/0.0127, allocations: 0.5024 MB / 278 MB, free: 12.11 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.0127, allocations: 0 / 278 MB, free: 12.11 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.01271, allocations: 4 kB / 278.1 MB, free: 12.1 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.977e-05/0.01272, allocations: 0 / 278.1 MB, free: 12.1 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: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.001838/0.01456, allocations: 0.8113 MB / 278.9 MB, free: 11.25 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.147e-05/0.0146, allocations: 11.97 kB / 278.9 MB, free: 11.24 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001867/0.01479, allocations: 68.7 kB / 278.9 MB, free: 11.18 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005531/0.01534, allocations: 295.4 kB / 279.2 MB, free: 10.86 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.712e-05/0.01537, allocations: 24.97 kB / 279.3 MB, free: 10.84 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.676e-05/0.01544, allocations: 32.38 kB / 279.3 MB, free: 10.81 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007155/0.01615, allocations: 390.4 kB / 279.7 MB, free: 10.4 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.475e-05/0.01617, allocations: 192 / 279.7 MB, free: 10.4 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.025e-05/0.01621, allocations: 16.38 kB / 279.7 MB, free: 10.38 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.768e-05/0.01623, allocations: 11.94 kB / 279.7 MB, free: 10.37 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004587/0.01669, allocations: 190.5 kB / 279.9 MB, free: 10.18 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002388/0.01907, allocations: 1.378 MB / 281.3 MB, free: 8.73 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004158/0.01949, allocations: 151.1 kB / 281.4 MB, free: 8.57 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002912/0.01978, allocations: 103.6 kB / 281.5 MB, free: 8.465 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.967e-05/0.01982, allocations: 4 kB / 281.5 MB, free: 8.461 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.835e-05/0.01986, allocations: 37.39 kB / 281.5 MB, free: 8.414 MB / 266.7 MB Notification: Performance of pre-optimization done (n=16): time 1.323e-06/0.01986, allocations: 0 / 281.5 MB, free: 8.414 MB / 266.7 MB Notification: Performance of matching and sorting (n=16): time 0.0004993/0.02036, allocations: 189.7 kB / 281.7 MB, free: 8.223 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.998e-05/0.02041, allocations: 55.41 kB / 281.8 MB, free: 8.156 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004855/0.02089, allocations: 380.2 kB / 282.2 MB, free: 7.766 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.506e-05/0.02093, allocations: 33.7 kB / 282.2 MB, free: 7.727 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000238/0.02117, allocations: 267.1 kB / 282.5 MB, free: 7.461 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.429e-05/0.02124, allocations: 59.48 kB / 282.5 MB, free: 7.402 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001276/0.02137, allocations: 63.36 kB / 282.6 MB, free: 7.332 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003465/0.02172, allocations: 0.5157 MB / 283.1 MB, free: 6.805 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001406/0.02186, allocations: 55.92 kB / 283.1 MB, free: 6.75 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002152/0.02207, allocations: 141.8 kB / 283.3 MB, free: 6.574 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003176/0.02239, allocations: 195.2 kB / 283.5 MB, free: 6.348 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.02239, allocations: 0 / 283.5 MB, free: 6.348 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004969/0.02289, allocations: 229.2 kB / 283.7 MB, free: 6.117 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.024e-05/0.02291, allocations: 4 kB / 283.7 MB, free: 6.113 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.397e-05/0.02292, allocations: 8 kB / 283.7 MB, free: 6.105 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.414e-05/0.02295, allocations: 7.938 kB / 283.7 MB, free: 6.098 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000204/0.02315, allocations: 48.09 kB / 283.8 MB, free: 6.051 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.08e-05/0.02316, allocations: 8 kB / 283.8 MB, free: 6.043 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003066/0.02347, allocations: 43.86 kB / 283.8 MB, free: 6 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.734e-05/0.02351, allocations: 12 kB / 283.8 MB, free: 5.988 MB / 266.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 (pulseSeries.on2,pulseSeries.on1,energy.local_reset) * 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 0.0002275/0.02373, allocations: 200.4 kB / 284 MB, free: 5.781 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.456e-05/0.02381, allocations: 27.86 kB / 284 MB, free: 5.754 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000453/0.02426, allocations: 175.2 kB / 284.2 MB, free: 5.578 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.571e-06/0.02427, allocations: 3.938 kB / 284.2 MB, free: 5.574 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.856e-06/0.02428, allocations: 4 kB / 284.2 MB, free: 5.57 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.02428, allocations: 4 kB / 284.2 MB, free: 5.566 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009894/0.02527, allocations: 0.5947 MB / 284.8 MB, free: 4.922 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.02527, allocations: 0 / 284.8 MB, free: 4.922 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001904/0.02546, allocations: 35.92 kB / 284.9 MB, free: 4.887 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.02547, allocations: 0 / 284.9 MB, free: 4.887 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.782e-05/0.02548, allocations: 0 / 284.9 MB, free: 4.887 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.939e-06/0.02549, allocations: 4 kB / 284.9 MB, free: 4.883 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/0.02549, allocations: 3.984 kB / 284.9 MB, free: 4.879 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005679/0.02606, allocations: 378.3 kB / 285.2 MB, free: 4.488 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.033e-05/0.02614, allocations: 35.78 kB / 285.3 MB, free: 4.453 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.373e-05/0.02618, allocations: 8 kB / 285.3 MB, free: 4.445 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003142/0.0265, allocations: 35.95 kB / 285.3 MB, free: 4.41 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002447/0.02674, allocations: 103.8 kB / 285.4 MB, free: 4.309 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.165e-05/0.02677, allocations: 4 kB / 285.4 MB, free: 4.305 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003091/0.02707, allocations: 265.1 kB / 285.7 MB, free: 4.047 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02707, allocations: 0 / 285.7 MB, free: 4.047 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004101/0.02748, allocations: 83.78 kB / 285.8 MB, free: 3.965 MB / 266.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.0002059/0.02769, allocations: 111.2 kB / 285.9 MB, free: 3.848 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003665/0.02806, allocations: 149.4 kB / 286 MB, free: 3.699 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.02806, allocations: 0 / 286 MB, free: 3.699 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001541/0.02821, allocations: 75.59 kB / 286.1 MB, free: 3.621 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004133/0.02863, allocations: 40.98 kB / 286.1 MB, free: 3.582 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001426/0.03005, allocations: 0.6378 MB / 286.8 MB, free: 2.918 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002226/0.03028, allocations: 168.8 kB / 286.9 MB, free: 2.73 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001357/0.03041, allocations: 30.22 kB / 287 MB, free: 2.703 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.882e-05/0.03051, allocations: 28.5 kB / 287 MB, free: 2.676 MB / 266.7 MB Notification: Performance of SimCode: time 1.343e-06/0.03051, allocations: 0 / 287 MB, free: 2.676 MB / 266.7 MB Notification: Performance of Templates: time 0.1331/0.1637, allocations: 4.291 MB / 291.3 MB, free: 27.2 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 -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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.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.0532491450430825]