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.000944/0.000944, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.001084/0.001084, allocations: 139.9 kB / 24.88 MB, free: 9.219 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 0.9778/0.9778, allocations: 173.3 MB / 201.5 MB, free: 9.211 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.773e-06/1.773e-06, allocations: 0 / 268.5 MB, free: 6.188 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.408e-05/2.585e-05, allocations: 2.312 kB / 268.5 MB, free: 6.184 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004981/0.005007, allocations: 3.003 MB / 271.5 MB, free: 3.16 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001736/0.006743, allocations: 0.7319 MB / 272.2 MB, free: 2.422 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002251/0.006968, allocations: 8 kB / 272.2 MB, free: 2.414 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002427/0.007211, allocations: 67.3 kB / 272.3 MB, free: 2.348 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003339/0.007545, allocations: 115 kB / 272.4 MB, free: 2.234 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003645/0.00791, allocations: 103.8 kB / 272.5 MB, free: 2.133 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004674/0.008377, allocations: 430.1 kB / 272.9 MB, free: 1.711 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002616/0.008639, allocations: 142.3 kB / 273.1 MB, free: 1.566 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002932/0.008932, allocations: 247.5 kB / 273.3 MB, free: 1.324 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002942/0.009226, allocations: 147.6 kB / 273.5 MB, free: 1.18 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.968e-05/0.009286, allocations: 40 kB / 273.5 MB, free: 1.141 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001557/0.009441, allocations: 63.92 kB / 273.6 MB, free: 1.078 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001462/0.009587, allocations: 107.6 kB / 273.7 MB, free: 0.9727 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001464/0.009734, allocations: 143.7 kB / 273.8 MB, free: 0.832 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004037/0.01014, allocations: 306.9 kB / 274.1 MB, free: 0.5312 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.317e-06/0.01014, allocations: 0 / 274.1 MB, free: 0.5312 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.01014, allocations: 4 kB / 274.1 MB, free: 0.5273 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.272e-06/0.01015, allocations: 0 / 274.1 MB, free: 0.5273 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.0008215/0.01097, allocations: 0.6712 MB / 274.8 MB, free: 15.83 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.397e-05/0.011, allocations: 8.031 kB / 274.8 MB, free: 15.82 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.34e-05/0.01108, allocations: 48.91 kB / 274.8 MB, free: 15.78 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002649/0.01134, allocations: 216.7 kB / 275 MB, free: 15.54 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.946e-05/0.01136, allocations: 25.03 kB / 275.1 MB, free: 15.52 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.991e-05/0.0114, allocations: 28.38 kB / 275.1 MB, free: 15.49 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002886/0.01169, allocations: 313.3 kB / 275.4 MB, free: 15.15 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.096e-05/0.0117, allocations: 192 / 275.4 MB, free: 15.15 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.9e-05/0.01172, allocations: 12.38 kB / 275.4 MB, free: 15.14 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.887e-06/0.01173, allocations: 11.94 kB / 275.4 MB, free: 15.12 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001131/0.01184, allocations: 79.31 kB / 275.5 MB, free: 15.05 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009294/0.01277, allocations: 0.8912 MB / 276.4 MB, free: 14.11 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002091/0.01298, allocations: 150.4 kB / 276.5 MB, free: 13.95 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001024/0.01308, allocations: 60.83 kB / 276.6 MB, free: 13.89 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.861e-05/0.01311, allocations: 7.984 kB / 276.6 MB, free: 13.88 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.261e-05/0.01313, allocations: 34.56 kB / 276.6 MB, free: 13.84 MB / 266.7 MB Notification: Performance of pre-optimization done (n=16): time 1.413e-06/0.01314, allocations: 0 / 276.6 MB, free: 13.84 MB / 266.7 MB Notification: Performance of matching and sorting (n=16): time 0.0001905/0.01333, allocations: 109.3 kB / 276.7 MB, free: 13.73 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.795e-05/0.01335, allocations: 59.34 kB / 276.8 MB, free: 13.66 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000169/0.01352, allocations: 252.9 kB / 277.1 MB, free: 13.4 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.284e-05/0.01355, allocations: 29.7 kB / 277.1 MB, free: 13.37 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.27e-05/0.01363, allocations: 192.8 kB / 277.3 MB, free: 13.17 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.25e-05/0.01366, allocations: 59.47 kB / 277.3 MB, free: 13.11 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.769e-05/0.01372, allocations: 45.69 kB / 277.4 MB, free: 13.06 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.93e-05/0.01381, allocations: 338.8 kB / 277.7 MB, free: 12.72 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.025e-05/0.01385, allocations: 26.81 kB / 277.7 MB, free: 12.7 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.391e-05/0.01392, allocations: 79.64 kB / 277.8 MB, free: 12.59 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001054/0.01403, allocations: 118.5 kB / 277.9 MB, free: 12.45 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.01403, allocations: 3.938 kB / 277.9 MB, free: 12.45 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0001598/0.01419, allocations: 144.3 kB / 278.1 MB, free: 12.3 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.424e-05/0.0142, allocations: 4 kB / 278.1 MB, free: 12.29 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.01421, allocations: 4 kB / 278.1 MB, free: 12.29 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.331e-05/0.01422, allocations: 4 kB / 278.1 MB, free: 12.29 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001686/0.01439, allocations: 55.84 kB / 278.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.879e-06/0.0144, allocations: 4 kB / 278.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001272/0.01453, allocations: 56.05 kB / 278.2 MB, free: 12.17 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.695e-05/0.01454, allocations: 8 kB / 278.2 MB, free: 12.16 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 9.134e-05/0.01463, allocations: 132.5 kB / 278.3 MB, free: 12.02 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.323e-05/0.01467, allocations: 15.98 kB / 278.3 MB, free: 12.01 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001694/0.01484, allocations: 115.7 kB / 278.5 MB, free: 11.89 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.01484, allocations: 0 / 278.5 MB, free: 11.89 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.585e-06/0.01484, allocations: 3.938 kB / 278.5 MB, free: 11.88 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.01485, allocations: 4 kB / 278.5 MB, free: 11.88 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000367/0.01521, allocations: 387.5 kB / 278.8 MB, free: 11.47 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.01521, allocations: 0 / 278.8 MB, free: 11.47 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001238/0.01534, allocations: 39.92 kB / 278.9 MB, free: 11.43 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-06/0.01534, allocations: 0 / 278.9 MB, free: 11.43 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.149e-05/0.01535, allocations: 3.938 kB / 278.9 MB, free: 11.43 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.885e-06/0.01536, allocations: 4 kB / 278.9 MB, free: 11.42 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.01536, allocations: 0 / 278.9 MB, free: 11.42 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002339/0.01559, allocations: 267.5 kB / 279.2 MB, free: 11.14 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.232e-05/0.01562, allocations: 27.8 kB / 279.2 MB, free: 11.11 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.393e-05/0.01565, allocations: 7.938 kB / 279.2 MB, free: 11.11 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001321/0.01578, allocations: 44.02 kB / 279.2 MB, free: 11.06 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.666e-05/0.01586, allocations: 35.94 kB / 279.3 MB, free: 11.03 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.217e-05/0.01587, allocations: 4 kB / 279.3 MB, free: 11.02 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.813e-05/0.01595, allocations: 90.77 kB / 279.4 MB, free: 10.93 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01595, allocations: 4 kB / 279.4 MB, free: 10.93 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002014/0.01615, allocations: 91.73 kB / 279.5 MB, free: 10.84 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.0001125/0.01626, allocations: 95.98 kB / 279.5 MB, free: 10.74 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001365/0.0164, allocations: 91.41 kB / 279.6 MB, free: 10.65 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 7.023e-06/0.0164, allocations: 4 kB / 279.6 MB, free: 10.64 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.716e-05/0.01646, allocations: 51.53 kB / 279.7 MB, free: 10.59 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002285/0.01669, allocations: 46.17 kB / 279.7 MB, free: 10.55 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009188/0.01761, allocations: 0.6012 MB / 280.3 MB, free: 9.918 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.31e-05/0.01767, allocations: 92.3 kB / 280.4 MB, free: 9.809 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.423e-05/0.01777, allocations: 30.3 kB / 280.5 MB, free: 9.777 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000139/0.0179, allocations: 99.34 kB / 280.6 MB, free: 9.68 MB / 266.7 MB Notification: Performance of SimCode: time 8.22e-07/0.0179, allocations: 0 / 280.6 MB, free: 9.68 MB / 266.7 MB Notification: Performance of Templates: time 0.006066/0.02397, allocations: 4.022 MB / 284.6 MB, free: 5.711 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 -s gbode -gbm=radauIIA3 -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: 2.917644049040973]