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.001131/0.001131, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001319/0.00245, allocations: 449.7 kB / 10.37 MB, free: 332 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.001077/0.001077, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001461/0.002538, allocations: 459.6 kB / 11.69 MB, free: 2.48 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.9838/0.9838, allocations: 173.4 MB / 185.8 MB, free: 8.988 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08587/1.07, allocations: 52.49 MB / 238.3 MB, free: 4.43 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 3.536e-06/3.536e-06, allocations: 7.938 kB / 239.5 MB, free: 3.188 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.616e-05/2.97e-05, allocations: 2.875 kB / 239.5 MB, free: 3.184 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004306/0.004336, allocations: 2.993 MB / 242.5 MB, free: 180 kB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001471/0.005806, allocations: 0.7436 MB / 243.3 MB, free: 15.43 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001962/0.006003, allocations: 7.938 kB / 243.3 MB, free: 15.42 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001972/0.0062, allocations: 63.42 kB / 243.3 MB, free: 15.36 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002988/0.006499, allocations: 111 kB / 243.5 MB, free: 15.25 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003149/0.006814, allocations: 115.7 kB / 243.6 MB, free: 15.13 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000457/0.007271, allocations: 418.1 kB / 244 MB, free: 14.72 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002707/0.007541, allocations: 154.2 kB / 244.1 MB, free: 14.57 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003429/0.007884, allocations: 272.2 kB / 244.4 MB, free: 14.3 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000269/0.008153, allocations: 151.6 kB / 244.5 MB, free: 14.15 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.82e-05/0.008211, allocations: 40 kB / 244.6 MB, free: 14.11 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001625/0.008374, allocations: 63.91 kB / 244.6 MB, free: 14.05 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001332/0.008507, allocations: 87.77 kB / 244.7 MB, free: 13.96 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001322/0.008639, allocations: 115.8 kB / 244.8 MB, free: 13.85 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004873/0.009127, allocations: 286.9 kB / 245.1 MB, free: 13.57 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.646e-05/0.009143, allocations: 0 / 245.1 MB, free: 13.57 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.009144, allocations: 4 kB / 245.1 MB, free: 13.57 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.283e-05/0.009167, allocations: 0 / 245.1 MB, free: 13.57 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.001273/0.01044, allocations: 0.7335 MB / 245.9 MB, free: 12.81 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.607e-05/0.01048, allocations: 8.031 kB / 245.9 MB, free: 12.8 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.571e-05/0.01057, allocations: 56.89 kB / 245.9 MB, free: 12.75 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003584/0.01093, allocations: 224.6 kB / 246.1 MB, free: 12.5 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.521e-05/0.01096, allocations: 25.03 kB / 246.2 MB, free: 12.48 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.049e-05/0.01102, allocations: 32.38 kB / 246.2 MB, free: 12.45 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004132/0.01143, allocations: 305.3 kB / 246.5 MB, free: 12.11 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.367e-05/0.01144, allocations: 192 / 246.5 MB, free: 12.11 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.708e-05/0.01147, allocations: 16.38 kB / 246.5 MB, free: 12.1 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.113e-05/0.01148, allocations: 7.938 kB / 246.5 MB, free: 12.09 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001655/0.01165, allocations: 75.33 kB / 246.6 MB, free: 12.02 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00128/0.01293, allocations: 0.9029 MB / 247.5 MB, free: 11.06 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000254/0.01318, allocations: 142.4 kB / 247.6 MB, free: 10.91 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001328/0.01331, allocations: 60.83 kB / 247.7 MB, free: 10.85 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.274e-05/0.01336, allocations: 8 kB / 247.7 MB, free: 10.84 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.858e-05/0.01338, allocations: 38.55 kB / 247.7 MB, free: 10.79 MB / 250.7 MB Notification: Performance of pre-optimization done (n=16): time 1.984e-06/0.01339, allocations: 0 / 247.7 MB, free: 10.79 MB / 250.7 MB Notification: Performance of matching and sorting (n=16): time 0.0002522/0.01364, allocations: 109.5 kB / 247.8 MB, free: 10.68 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.089e-05/0.01368, allocations: 59.34 kB / 247.9 MB, free: 10.61 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002191/0.0139, allocations: 248.9 kB / 248.1 MB, free: 10.36 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.992e-05/0.01393, allocations: 29.7 kB / 248.2 MB, free: 10.32 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001092/0.01404, allocations: 192.8 kB / 248.4 MB, free: 10.13 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.872e-05/0.01409, allocations: 63.47 kB / 248.4 MB, free: 10.07 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.581e-05/0.01416, allocations: 37.69 kB / 248.5 MB, free: 10.03 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.01432, allocations: 342.8 kB / 248.8 MB, free: 9.684 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.668e-05/0.01441, allocations: 22.83 kB / 248.8 MB, free: 9.66 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.029e-05/0.01448, allocations: 83.69 kB / 248.9 MB, free: 9.551 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001124/0.0146, allocations: 114 kB / 249 MB, free: 9.414 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.0146, allocations: 0 / 249 MB, free: 9.414 MB / 250.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0001889/0.01479, allocations: 152.2 kB / 249.2 MB, free: 9.258 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.486e-05/0.0148, allocations: 4 kB / 249.2 MB, free: 9.254 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/0.01481, allocations: 4 kB / 249.2 MB, free: 9.25 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.062e-05/0.01482, allocations: 0 / 249.2 MB, free: 9.25 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002171/0.01504, allocations: 63.78 kB / 249.2 MB, free: 9.188 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.94e-06/0.01504, allocations: 4 kB / 249.2 MB, free: 9.184 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00015/0.01519, allocations: 52.06 kB / 249.3 MB, free: 9.133 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.772e-05/0.01521, allocations: 7.984 kB / 249.3 MB, free: 9.125 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 0.0001159/0.01533, allocations: 128.6 kB / 249.4 MB, free: 8.988 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.721e-05/0.01536, allocations: 23.98 kB / 249.4 MB, free: 8.965 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000182/0.01555, allocations: 115.7 kB / 249.6 MB, free: 8.848 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.01555, allocations: 4 kB / 249.6 MB, free: 8.844 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.505e-06/0.01555, allocations: 3.938 kB / 249.6 MB, free: 8.84 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.01556, allocations: 0 / 249.6 MB, free: 8.84 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004129/0.01597, allocations: 383.5 kB / 249.9 MB, free: 8.434 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.01597, allocations: 0 / 249.9 MB, free: 8.434 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001238/0.01609, allocations: 43.91 kB / 250 MB, free: 8.391 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.821e-05/0.01612, allocations: 19.8 kB / 250 MB, free: 8.371 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.01613, allocations: 4 kB / 250 MB, free: 8.367 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.141e-05/0.01614, allocations: 4 kB / 250 MB, free: 8.363 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.01614, allocations: 3.984 kB / 250 MB, free: 8.359 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.01614, allocations: 0 / 250 MB, free: 8.359 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002099/0.01635, allocations: 274 kB / 250.3 MB, free: 8.074 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.47e-05/0.01638, allocations: 12 kB / 250.3 MB, free: 8.062 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00013/0.01651, allocations: 35.97 kB / 250.3 MB, free: 8.027 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.344e-05/0.01659, allocations: 47.86 kB / 250.4 MB, free: 7.98 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.327e-06/0.0166, allocations: 4 kB / 250.4 MB, free: 7.977 MB / 250.7 MB Notification: Performance of sorting global known variables: time 7.148e-05/0.01667, allocations: 90.77 kB / 250.5 MB, free: 7.883 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01667, allocations: 0 / 250.5 MB, free: 7.883 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002237/0.01689, allocations: 87.78 kB / 250.5 MB, free: 7.797 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.0001142/0.01701, allocations: 96.41 kB / 250.6 MB, free: 7.695 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001239/0.01713, allocations: 88.55 kB / 250.7 MB, free: 7.605 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.195e-05/0.01714, allocations: 8 kB / 250.7 MB, free: 7.598 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 5.322e-05/0.0172, allocations: 51.58 kB / 250.8 MB, free: 7.543 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002228/0.01742, allocations: 63.02 kB / 250.8 MB, free: 7.484 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002424/0.01984, allocations: 0.6011 MB / 251.5 MB, free: 6.848 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.352e-05/0.0199, allocations: 96.3 kB / 251.5 MB, free: 6.734 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 8.541e-05/0.01998, allocations: 30.28 kB / 251.6 MB, free: 6.703 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001414/0.02012, allocations: 99.34 kB / 251.7 MB, free: 6.605 MB / 250.7 MB Notification: Performance of SimCode: time 8.11e-07/0.02013, allocations: 0 / 251.7 MB, free: 6.605 MB / 250.7 MB Notification: Performance of Templates: time 0.005693/0.02582, allocations: 4.18 MB / 255.9 MB, free: 2.488 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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7194570247083902]