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.0009776/0.0009776, allocations: 82.28 kB / 22.21 MB, free: 2.293 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.001015/0.001015, allocations: 145.8 kB / 25.59 MB, free: 8.605 MB / 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.017/1.017, allocations: 173.4 MB / 202.2 MB, free: 8.316 MB / 186.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 1.874e-06/1.874e-06, allocations: 0 / 269.2 MB, free: 9.793 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.177e-05/2.365e-05, allocations: 2.312 kB / 269.2 MB, free: 9.789 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004587/0.00461, allocations: 2.949 MB / 272.1 MB, free: 6.84 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001497/0.006107, allocations: 0.7086 MB / 272.8 MB, free: 6.129 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002204/0.006328, allocations: 9.594 kB / 272.8 MB, free: 6.121 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002416/0.006569, allocations: 59.42 kB / 272.9 MB, free: 6.062 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003576/0.006927, allocations: 116.4 kB / 273 MB, free: 5.949 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004776/0.007405, allocations: 103.8 kB / 273.1 MB, free: 5.848 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005182/0.007923, allocations: 430.5 kB / 273.5 MB, free: 5.426 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00031/0.008233, allocations: 142.9 kB / 273.7 MB, free: 5.289 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003803/0.008613, allocations: 239.5 kB / 273.9 MB, free: 5.055 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000324/0.008937, allocations: 161.2 kB / 274.1 MB, free: 4.898 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.068e-05/0.009008, allocations: 40 kB / 274.1 MB, free: 4.859 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001473/0.009155, allocations: 63.91 kB / 274.2 MB, free: 4.797 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000166/0.009321, allocations: 107.6 kB / 274.3 MB, free: 4.691 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001545/0.009476, allocations: 144.3 kB / 274.4 MB, free: 4.551 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004818/0.009957, allocations: 303.5 kB / 274.7 MB, free: 4.254 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.00996, allocations: 4 kB / 274.7 MB, free: 4.25 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.82e-07/0.009961, allocations: 0 / 274.7 MB, free: 4.25 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.632e-06/0.009968, allocations: 3.938 kB / 274.7 MB, free: 4.246 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.001342/0.01131, allocations: 0.792 MB / 275.5 MB, free: 3.414 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.957e-05/0.01135, allocations: 8.031 kB / 275.5 MB, free: 3.406 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001274/0.01148, allocations: 68.7 kB / 275.6 MB, free: 3.34 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003944/0.01187, allocations: 275.3 kB / 275.8 MB, free: 3.047 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.624e-05/0.0119, allocations: 25.03 kB / 275.9 MB, free: 3.023 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.715e-05/0.01195, allocations: 32.38 kB / 275.9 MB, free: 2.992 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004199/0.01237, allocations: 303 kB / 276.2 MB, free: 2.668 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.29e-05/0.01239, allocations: 192 / 276.2 MB, free: 2.668 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.923e-05/0.01242, allocations: 8.375 kB / 276.2 MB, free: 2.66 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.247e-05/0.01243, allocations: 11.94 kB / 276.2 MB, free: 2.648 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001737/0.0126, allocations: 84.45 kB / 276.3 MB, free: 2.562 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001034/0.01364, allocations: 1.174 MB / 277.5 MB, free: 1.324 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001882/0.01383, allocations: 119 kB / 277.6 MB, free: 1.195 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001028/0.01393, allocations: 63.66 kB / 277.7 MB, free: 1.129 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.365e-05/0.01395, allocations: 11.98 kB / 277.7 MB, free: 1.117 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.03e-05/0.01397, allocations: 37.39 kB / 277.7 MB, free: 1.07 MB / 250.7 MB Notification: Performance of pre-optimization done (n=16): time 1.223e-06/0.01397, allocations: 0 / 277.7 MB, free: 1.07 MB / 250.7 MB Notification: Performance of matching and sorting (n=16): time 0.0002146/0.01419, allocations: 125.8 kB / 277.8 MB, free: 0.9414 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.627e-05/0.01421, allocations: 59.34 kB / 277.9 MB, free: 0.8711 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001805/0.01439, allocations: 320 kB / 278.2 MB, free: 0.543 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.768e-05/0.01441, allocations: 29.7 kB / 278.2 MB, free: 0.5078 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001122/0.01452, allocations: 259.1 kB / 278.5 MB, free: 252 kB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.597e-05/0.01456, allocations: 59.47 kB / 278.5 MB, free: 192 kB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.588e-05/0.01462, allocations: 51.34 kB / 278.6 MB, free: 132 kB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001297/0.01475, allocations: 0.5118 MB / 279.1 MB, free: 15.61 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.677e-05/0.01478, allocations: 15.98 kB / 279.1 MB, free: 15.59 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.631e-05/0.01486, allocations: 115.1 kB / 279.2 MB, free: 15.44 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001102/0.01497, allocations: 146.8 kB / 279.4 MB, free: 15.26 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.01497, allocations: 4 kB / 279.4 MB, free: 15.26 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0001763/0.01515, allocations: 161.3 kB / 279.5 MB, free: 15.09 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.137e-05/0.01516, allocations: 10.34 kB / 279.5 MB, free: 15.09 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.912e-06/0.01516, allocations: 4 kB / 279.5 MB, free: 15.08 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.007e-06/0.01517, allocations: 3.984 kB / 279.6 MB, free: 15.08 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001027/0.01528, allocations: 51.86 kB / 279.6 MB, free: 15.03 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.047e-06/0.01528, allocations: 4 kB / 279.6 MB, free: 15.02 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001352/0.01542, allocations: 63.94 kB / 279.7 MB, free: 14.96 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.696e-05/0.01544, allocations: 11.98 kB / 279.7 MB, free: 14.95 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 (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 0.0001023/0.01555, allocations: 168.5 kB / 279.8 MB, free: 14.77 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.906e-05/0.01558, allocations: 23.86 kB / 279.9 MB, free: 14.75 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001827/0.01577, allocations: 138.6 kB / 280 MB, free: 14.61 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/0.01577, allocations: 4 kB / 280 MB, free: 14.61 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.625e-06/0.01577, allocations: 3.938 kB / 280 MB, free: 14.6 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.01577, allocations: 0 / 280 MB, free: 14.6 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000391/0.01616, allocations: 465.6 kB / 280.5 MB, free: 14.11 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.01617, allocations: 4 kB / 280.5 MB, free: 14.1 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.34e-05/0.01625, allocations: 23.98 kB / 280.5 MB, free: 14.08 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.366e-06/0.01625, allocations: 4 kB / 280.5 MB, free: 14.07 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.338e-05/0.01627, allocations: 7.938 kB / 280.5 MB, free: 14.07 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/0.01627, allocations: 0 / 280.5 MB, free: 14.07 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.01627, allocations: 7.938 kB / 280.5 MB, free: 14.06 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002343/0.01651, allocations: 299.8 kB / 280.8 MB, free: 13.74 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.418e-05/0.01654, allocations: 31.78 kB / 280.8 MB, free: 13.71 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.507e-05/0.01657, allocations: 7.938 kB / 280.8 MB, free: 13.7 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00014/0.01671, allocations: 36.03 kB / 280.9 MB, free: 13.67 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.531e-05/0.01678, allocations: 47.92 kB / 280.9 MB, free: 13.62 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.006e-05/0.01679, allocations: 4 kB / 280.9 MB, free: 13.62 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001062/0.0169, allocations: 209.1 kB / 281.1 MB, free: 13.41 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0169, allocations: 0 / 281.1 MB, free: 13.41 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002385/0.01714, allocations: 91.73 kB / 281.2 MB, free: 13.32 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.0001087/0.01724, allocations: 114.8 kB / 281.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001596/0.0174, allocations: 99.42 kB / 281.4 MB, free: 13.1 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.0174, allocations: 0 / 281.4 MB, free: 13.1 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.843e-05/0.01746, allocations: 46.84 kB / 281.5 MB, free: 13.05 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000253/0.01772, allocations: 56.34 kB / 281.5 MB, free: 13 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008143/0.01853, allocations: 0.608 MB / 282.1 MB, free: 12.36 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.126e-05/0.01858, allocations: 88.31 kB / 282.2 MB, free: 12.25 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.679e-05/0.01866, allocations: 34.28 kB / 282.3 MB, free: 12.22 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001365/0.0188, allocations: 122.2 kB / 282.4 MB, free: 12.1 MB / 266.7 MB Notification: Performance of SimCode: time 6.02e-07/0.0188, allocations: 3.938 kB / 282.4 MB, free: 12.09 MB / 266.7 MB Notification: Performance of Templates: time 0.006235/0.02503, allocations: 4.775 MB / 287.2 MB, free: 7.371 MB / 266.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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.207944678608328]