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.001505/0.001505, allocations: 84.14 kB / 20.68 MB, free: 1.035 MB / 14.72 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.001904/0.001904, allocations: 164.9 kB / 23.95 MB, free: 4.168 MB / 14.72 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.516/1.516, allocations: 177.1 MB / 204.3 MB, free: 9.18 MB / 190.1 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.142e-06/1.142e-06, allocations: 0 / 325 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.969e-05/2.083e-05, allocations: 2.281 kB / 325 MB, free: 0.543 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004032/0.004053, allocations: 2.801 MB / 327.8 MB, free: 14.67 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001421/0.005474, allocations: 0.7238 MB / 328.6 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001698/0.005644, allocations: 10.22 kB / 328.6 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002394/0.005883, allocations: 60.86 kB / 328.6 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003038/0.006187, allocations: 121.4 kB / 328.8 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003601/0.006547, allocations: 104.2 kB / 328.9 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005172/0.007064, allocations: 428 kB / 329.3 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000296/0.00736, allocations: 143.1 kB / 329.4 MB, free: 13.68 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003333/0.007694, allocations: 241.3 kB / 329.7 MB, free: 13.57 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002765/0.00797, allocations: 134.7 kB / 329.8 MB, free: 13.52 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.809e-05/0.008038, allocations: 44.34 kB / 329.8 MB, free: 13.52 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001372/0.008175, allocations: 54.42 kB / 329.9 MB, free: 13.52 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000195/0.00837, allocations: 110.3 kB / 330 MB, free: 13.45 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002001/0.008571, allocations: 137.2 kB / 330.1 MB, free: 13.39 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006762/0.009247, allocations: 0.5047 MB / 330.6 MB, free: 13.11 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.525e-06/0.009249, allocations: 0 / 330.6 MB, free: 13.11 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.52e-07/0.00925, allocations: 0 / 330.6 MB, free: 13.11 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.692e-06/0.009257, allocations: 1.188 kB / 330.6 MB, free: 13.11 MB / 302.1 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.001732/0.01099, allocations: 0.7241 MB / 331.4 MB, free: 12.54 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.63e-05/0.01103, allocations: 9 kB / 331.4 MB, free: 12.54 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001113/0.01114, allocations: 40.89 kB / 331.4 MB, free: 12.52 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004812/0.01162, allocations: 298.9 kB / 331.7 MB, free: 12.26 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.873e-05/0.01165, allocations: 22.06 kB / 331.7 MB, free: 12.25 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.095e-05/0.01171, allocations: 32.25 kB / 331.7 MB, free: 12.24 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006237/0.01233, allocations: 393.3 kB / 332.1 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.396e-05/0.01235, allocations: 192 / 332.1 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.93e-05/0.01238, allocations: 15.95 kB / 332.1 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.337e-05/0.0124, allocations: 11.97 kB / 332.2 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004441/0.01284, allocations: 234.5 kB / 332.4 MB, free: 11.84 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001786/0.01463, allocations: 1.101 MB / 333.5 MB, free: 10.91 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003922/0.01502, allocations: 163.7 kB / 333.6 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002774/0.0153, allocations: 113 kB / 333.8 MB, free: 10.77 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.145e-05/0.01533, allocations: 3.906 kB / 333.8 MB, free: 10.77 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.21e-05/0.01536, allocations: 35.84 kB / 333.8 MB, free: 10.72 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.413e-06/0.01536, allocations: 0 / 333.8 MB, free: 10.72 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.000497/0.01586, allocations: 237.4 kB / 334 MB, free: 10.59 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.974e-05/0.01591, allocations: 54.09 kB / 334.1 MB, free: 10.53 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003791/0.01629, allocations: 300.9 kB / 334.4 MB, free: 10.32 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.221e-05/0.01632, allocations: 30.92 kB / 334.4 MB, free: 10.29 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001615/0.01648, allocations: 208.7 kB / 334.6 MB, free: 10.1 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.868e-05/0.01654, allocations: 62.69 kB / 334.7 MB, free: 10.04 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.202e-05/0.01663, allocations: 46.45 kB / 334.7 MB, free: 10.01 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001725/0.01681, allocations: 332.2 kB / 335 MB, free: 9.68 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001478/0.01695, allocations: 82.45 kB / 335.1 MB, free: 9.637 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001939/0.01715, allocations: 136.8 kB / 335.3 MB, free: 9.523 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002612/0.01741, allocations: 162.1 kB / 335.4 MB, free: 9.395 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.01741, allocations: 4.906 kB / 335.4 MB, free: 9.391 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004152/0.01783, allocations: 243.7 kB / 335.7 MB, free: 9.258 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.555e-05/0.01784, allocations: 6.188 kB / 335.7 MB, free: 9.258 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.652e-06/0.01785, allocations: 2.156 kB / 335.7 MB, free: 9.258 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.049e-05/0.01787, allocations: 7.281 kB / 335.7 MB, free: 9.254 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001775/0.01805, allocations: 46.02 kB / 335.7 MB, free: 9.242 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.103e-06/0.01805, allocations: 3.812 kB / 335.7 MB, free: 9.242 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000393/0.01845, allocations: 70.89 kB / 335.8 MB, free: 9.203 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.978e-05/0.01848, allocations: 9.281 kB / 335.8 MB, free: 9.203 MB / 302.1 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.0001846/0.01866, allocations: 158.5 kB / 336 MB, free: 9.055 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.786e-05/0.01873, allocations: 23.86 kB / 336 MB, free: 9.043 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004346/0.01916, allocations: 199.7 kB / 336.2 MB, free: 8.926 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.01917, allocations: 6 kB / 336.2 MB, free: 8.922 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.01917, allocations: 0 / 336.2 MB, free: 8.922 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.01918, allocations: 1 kB / 336.2 MB, free: 8.922 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007919/0.01997, allocations: 0.5115 MB / 336.7 MB, free: 8.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.01997, allocations: 1.125 kB / 336.7 MB, free: 8.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001557/0.02013, allocations: 30.89 kB / 336.7 MB, free: 8.492 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/0.02013, allocations: 1.469 kB / 336.7 MB, free: 8.492 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.779e-05/0.02015, allocations: 1.219 kB / 336.7 MB, free: 8.492 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.985e-06/0.02015, allocations: 1.406 kB / 336.7 MB, free: 8.492 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.02016, allocations: 1.25 kB / 336.7 MB, free: 8.492 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005633/0.02072, allocations: 371.9 kB / 337.1 MB, free: 8.234 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.092e-05/0.02078, allocations: 42.64 kB / 337.1 MB, free: 8.199 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.141e-05/0.02082, allocations: 2.5 kB / 337.1 MB, free: 8.199 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004179/0.02124, allocations: 58.52 kB / 337.2 MB, free: 8.172 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000215/0.02145, allocations: 79.33 kB / 337.3 MB, free: 8.125 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.086e-05/0.02148, allocations: 8.844 kB / 337.3 MB, free: 8.121 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002477/0.02172, allocations: 215.1 kB / 337.5 MB, free: 7.98 MB / 302.1 MB Notification: Performance of sort global known variables: time 9e-08/0.02172, allocations: 0 / 337.5 MB, free: 7.98 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003719/0.02209, allocations: 88.72 kB / 337.6 MB, free: 7.957 MB / 302.1 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.0001819/0.02228, allocations: 111.2 kB / 337.7 MB, free: 7.855 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003638/0.02264, allocations: 177.2 kB / 337.9 MB, free: 7.777 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.02264, allocations: 0 / 337.9 MB, free: 7.777 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001946/0.02284, allocations: 104.3 kB / 338 MB, free: 7.73 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003986/0.02324, allocations: 46.88 kB / 338 MB, free: 7.703 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001392/0.02463, allocations: 0.6599 MB / 338.7 MB, free: 7.164 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001848/0.02481, allocations: 172.8 kB / 338.8 MB, free: 6.973 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001185/0.02493, allocations: 34.28 kB / 338.9 MB, free: 6.941 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.514e-05/0.02502, allocations: 20.5 kB / 338.9 MB, free: 6.922 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.02502, allocations: 0 / 338.9 MB, free: 6.922 MB / 302.1 MB Notification: Performance of Templates: time 0.01035/0.03536, allocations: 4.293 MB / 343.2 MB, free: 2.676 MB / 302.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) [Timeout 480] 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: 4.859401136636734]