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.0008297/0.0008297, allocations: 79.7 kB / 20.67 MB, free: 3.891 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.0008314/0.0008314, allocations: 174 kB / 23.95 MB, free: 0.6133 MB / 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 0.8846/0.8846, allocations: 177.1 MB / 204.3 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] 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: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.903e-06/1.903e-06, allocations: 0 / 324.5 MB, free: 15.97 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.066e-05/2.256e-05, allocations: 2.281 kB / 324.5 MB, free: 15.96 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.003969/0.003992, allocations: 2.799 MB / 327.3 MB, free: 13.15 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001331/0.005322, allocations: 0.7244 MB / 328.1 MB, free: 12.42 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001975/0.00552, allocations: 7.938 kB / 328.1 MB, free: 12.41 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002129/0.005733, allocations: 67.36 kB / 328.1 MB, free: 12.35 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003035/0.006036, allocations: 111 kB / 328.3 MB, free: 12.24 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003795/0.006416, allocations: 115.8 kB / 328.4 MB, free: 12.12 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004375/0.006853, allocations: 422.1 kB / 328.8 MB, free: 11.71 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002686/0.007122, allocations: 134.4 kB / 328.9 MB, free: 11.58 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002795/0.007401, allocations: 247.5 kB / 329.2 MB, free: 11.34 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002312/0.007633, allocations: 131.6 kB / 329.3 MB, free: 11.21 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.748e-05/0.00769, allocations: 40 kB / 329.3 MB, free: 11.17 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001181/0.007808, allocations: 63.86 kB / 329.4 MB, free: 11.11 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001454/0.007954, allocations: 111.6 kB / 329.5 MB, free: 11 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001378/0.008091, allocations: 143.7 kB / 329.6 MB, free: 10.86 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005385/0.00863, allocations: 0.4985 MB / 330.1 MB, free: 10.36 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.124e-06/0.008632, allocations: 0 / 330.1 MB, free: 10.36 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.008633, allocations: 0 / 330.1 MB, free: 10.36 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.354e-06/0.00864, allocations: 0 / 330.1 MB, free: 10.36 MB / 298.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.00138/0.01002, allocations: 0.7234 MB / 330.9 MB, free: 9.602 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.219e-05/0.01006, allocations: 12.03 kB / 330.9 MB, free: 9.59 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.8e-05/0.01014, allocations: 66.66 kB / 330.9 MB, free: 9.516 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.221e-05/0.01022, allocations: 44.7 kB / 331 MB, free: 9.473 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004594/0.01068, allocations: 288.5 kB / 331.3 MB, free: 9.168 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.293e-05/0.01071, allocations: 21.03 kB / 331.3 MB, free: 9.148 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.527e-05/0.01076, allocations: 36.38 kB / 331.3 MB, free: 9.113 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005844/0.01135, allocations: 397.8 kB / 331.7 MB, free: 8.699 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.456e-05/0.01136, allocations: 192 / 331.7 MB, free: 8.699 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.677e-05/0.0114, allocations: 16.12 kB / 331.7 MB, free: 8.684 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.106e-05/0.01141, allocations: 8 kB / 331.7 MB, free: 8.676 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004551/0.01186, allocations: 242.4 kB / 332 MB, free: 8.434 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001761/0.01362, allocations: 1.149 MB / 333.1 MB, free: 7.207 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004056/0.01403, allocations: 170.5 kB / 333.3 MB, free: 7.031 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002467/0.01428, allocations: 112.8 kB / 333.4 MB, free: 6.918 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.16e-05/0.01431, allocations: 3.984 kB / 333.4 MB, free: 6.914 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.211e-05/0.01433, allocations: 38.5 kB / 333.4 MB, free: 6.867 MB / 298.7 MB Notification: Performance of pre-optimization done (n=16): time 1.393e-06/0.01433, allocations: 0 / 333.4 MB, free: 6.867 MB / 298.7 MB Notification: Performance of matching and sorting (n=16): time 0.0003359/0.01467, allocations: 240.3 kB / 333.7 MB, free: 6.629 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.568e-05/0.01469, allocations: 59.41 kB / 333.7 MB, free: 6.559 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002361/0.01493, allocations: 324.1 kB / 334 MB, free: 6.238 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.737e-05/0.01495, allocations: 29.7 kB / 334.1 MB, free: 6.203 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.578e-05/0.01504, allocations: 208.4 kB / 334.3 MB, free: 5.992 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.318e-05/0.01508, allocations: 55.53 kB / 334.3 MB, free: 5.938 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.603e-05/0.01514, allocations: 45.7 kB / 334.4 MB, free: 5.887 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.956e-05/0.01523, allocations: 338.8 kB / 334.7 MB, free: 5.547 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.029e-05/0.01532, allocations: 71.95 kB / 334.8 MB, free: 5.477 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001168/0.01544, allocations: 131.6 kB / 334.9 MB, free: 5.32 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001718/0.01561, allocations: 174.3 kB / 335.1 MB, free: 5.125 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.01561, allocations: 0 / 335.1 MB, free: 5.125 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002624/0.01587, allocations: 253.3 kB / 335.3 MB, free: 4.871 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.377e-05/0.01589, allocations: 7.938 kB / 335.3 MB, free: 4.863 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.263e-06/0.0159, allocations: 7.938 kB / 335.3 MB, free: 4.855 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.172e-05/0.01591, allocations: 0 / 335.3 MB, free: 4.855 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001052/0.01601, allocations: 43.92 kB / 335.4 MB, free: 4.812 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.597e-06/0.01602, allocations: 7.984 kB / 335.4 MB, free: 4.805 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001904/0.01621, allocations: 59.83 kB / 335.4 MB, free: 4.746 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.003e-05/0.01623, allocations: 16.06 kB / 335.5 MB, free: 4.73 MB / 298.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.0001079/0.01634, allocations: 149.8 kB / 335.6 MB, free: 4.574 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.498e-05/0.01637, allocations: 31.75 kB / 335.6 MB, free: 4.543 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002507/0.01662, allocations: 203.7 kB / 335.8 MB, free: 4.336 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.01663, allocations: 0 / 335.8 MB, free: 4.336 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.01663, allocations: 4 kB / 335.8 MB, free: 4.332 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.01663, allocations: 0 / 335.8 MB, free: 4.332 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000516/0.01715, allocations: 0.5531 MB / 336.4 MB, free: 3.723 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.594e-06/0.01715, allocations: 4 kB / 336.4 MB, free: 3.719 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.025e-05/0.01724, allocations: 35.95 kB / 336.4 MB, free: 3.684 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.01725, allocations: 4 kB / 336.4 MB, free: 3.68 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.134e-05/0.01726, allocations: 0 / 336.4 MB, free: 3.68 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.01726, allocations: 0 / 336.4 MB, free: 3.68 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.646e-06/0.01726, allocations: 4 kB / 336.4 MB, free: 3.676 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003373/0.0176, allocations: 383.1 kB / 336.8 MB, free: 3.285 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.279e-05/0.01764, allocations: 35.81 kB / 336.8 MB, free: 3.25 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.426e-05/0.01767, allocations: 0 / 336.8 MB, free: 3.25 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001976/0.01787, allocations: 59.98 kB / 336.9 MB, free: 3.191 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001268/0.01799, allocations: 75.86 kB / 337 MB, free: 3.117 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.193e-05/0.018, allocations: 8 kB / 337 MB, free: 3.109 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000159/0.01816, allocations: 235 kB / 337.2 MB, free: 2.879 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01816, allocations: 0 / 337.2 MB, free: 2.879 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002327/0.0184, allocations: 87.77 kB / 337.3 MB, free: 2.793 MB / 298.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.0005413/0.01894, allocations: 0.9238 MB / 338.2 MB, free: 1.84 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002412/0.01918, allocations: 167.9 kB / 338.4 MB, free: 1.676 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.01918, allocations: 0 / 338.4 MB, free: 1.676 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001106/0.01929, allocations: 106.5 kB / 338.5 MB, free: 1.574 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002794/0.01957, allocations: 59.44 kB / 338.6 MB, free: 1.516 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002924/0.02249, allocations: 3.007 MB / 341.6 MB, free: 14.37 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001505/0.02265, allocations: 176.8 kB / 341.7 MB, free: 14.18 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001125/0.02276, allocations: 34.28 kB / 341.8 MB, free: 14.15 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001477/0.02291, allocations: 108.5 kB / 341.9 MB, free: 14.04 MB / 314.7 MB Notification: Performance of SimCode: time 9.92e-07/0.02291, allocations: 0 / 341.9 MB, free: 14.04 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02096/0.04387, allocations: 8.479 MB / 350.3 MB, free: 5.742 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.994/7.038, allocations: 7.156 kB / 350.4 MB, free: 5.738 MB / 314.7 MB " [Timeout remaining time 653] (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 & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.csv --start-time 0 --stop-time 720 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge.fmu > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.csv","/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] "" Variables in the reference:time,energy.y,superCap.capacitor.v Variables in the result:time,energy.y,superCap.capacitor.v [Calling sys.exit(0), Time elapsed: 10.1349475402385]