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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001232/0.001233, allocations: 98.11 kB / 16.5 MB, free: 6.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001297/0.001297, allocations: 195 kB / 17.42 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.519/1.519, allocations: 222.9 MB / 241.1 MB, free: 15.32 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001016/0.001016, allocations: 45.27 kB / 300.1 MB, free: 6.176 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09563/0.09666, allocations: 49.45 MB / 349.5 MB, free: 4.727 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004835/0.1015, allocations: 2.999 MB / 352.5 MB, free: 1.703 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001995/0.1036, allocations: 0.7128 MB / 353.2 MB, free: 0.9844 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003958/0.104, allocations: 12 kB / 353.2 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003255/0.1044, allocations: 47.61 kB / 353.3 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004943/0.1049, allocations: 91.3 kB / 353.4 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004145/0.1053, allocations: 91.92 kB / 353.5 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000567/0.1059, allocations: 398.3 kB / 353.8 MB, free: 364 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003757/0.1063, allocations: 185.6 kB / 354 MB, free: 176 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002299/0.1066, allocations: 139.4 kB / 354.2 MB, free: 36 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003294/0.1069, allocations: 179.3 kB / 354.3 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.623e-05/0.107, allocations: 24 kB / 354.4 MB, free: 15.83 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000138/0.1071, allocations: 39.88 kB / 354.4 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001664/0.1073, allocations: 103.6 kB / 354.5 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002113/0.1075, allocations: 183.1 kB / 354.7 MB, free: 15.52 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005323/0.108, allocations: 482.3 kB / 355.1 MB, free: 15.04 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.1081, allocations: 0 / 355.1 MB, free: 15.04 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.376e-06/0.1081, allocations: 0 / 355.1 MB, free: 15.04 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.568e-05/0.1081, allocations: 3.938 kB / 355.2 MB, free: 15.04 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.001907/0.11, allocations: 0.7874 MB / 355.9 MB, free: 14.2 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.009e-05/0.1101, allocations: 12.03 kB / 356 MB, free: 14.19 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001127/0.1102, allocations: 62.73 kB / 356 MB, free: 14.12 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001102/0.1103, allocations: 44.45 kB / 356.1 MB, free: 14.08 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004869/0.1108, allocations: 334.6 kB / 356.4 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.568e-05/0.1108, allocations: 33.03 kB / 356.4 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.353e-05/0.1109, allocations: 28.38 kB / 356.4 MB, free: 13.66 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006024/0.1115, allocations: 354 kB / 356.8 MB, free: 13.3 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.189e-05/0.1115, allocations: 0 / 356.8 MB, free: 13.3 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.349e-05/0.1116, allocations: 12 kB / 356.8 MB, free: 13.29 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.688e-06/0.1116, allocations: 8 kB / 356.8 MB, free: 13.28 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004336/0.112, allocations: 242.4 kB / 357 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002136/0.1142, allocations: 1.311 MB / 358.4 MB, free: 11.64 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003765/0.1146, allocations: 186 kB / 358.5 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002645/0.1149, allocations: 132.8 kB / 358.7 MB, free: 11.32 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.19e-05/0.1149, allocations: 4 kB / 358.7 MB, free: 11.32 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.497e-05/0.1149, allocations: 34.56 kB / 358.7 MB, free: 11.28 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.553e-06/0.1149, allocations: 3.938 kB / 358.7 MB, free: 11.27 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004729/0.1154, allocations: 225.5 kB / 358.9 MB, free: 11.05 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.841e-05/0.1155, allocations: 55.41 kB / 359 MB, free: 10.98 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003666/0.1158, allocations: 315 kB / 359.3 MB, free: 10.67 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.517e-05/0.1159, allocations: 29.7 kB / 359.3 MB, free: 10.63 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001436/0.116, allocations: 208 kB / 359.5 MB, free: 10.43 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.249e-05/0.1161, allocations: 63.12 kB / 359.6 MB, free: 10.36 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.322e-05/0.1162, allocations: 53.61 kB / 359.6 MB, free: 10.3 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001434/0.1163, allocations: 334.8 kB / 360 MB, free: 9.969 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001338/0.1165, allocations: 71.95 kB / 360 MB, free: 9.898 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001784/0.1167, allocations: 131.7 kB / 360.2 MB, free: 9.742 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002169/0.1169, allocations: 167.6 kB / 360.3 MB, free: 9.551 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.1169, allocations: 4 kB / 360.3 MB, free: 9.547 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004237/0.1173, allocations: 240 kB / 360.6 MB, free: 9.309 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.751e-05/0.1173, allocations: 8 kB / 360.6 MB, free: 9.301 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.103e-06/0.1174, allocations: 3.984 kB / 360.6 MB, free: 9.297 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.753e-05/0.1174, allocations: 4 kB / 360.6 MB, free: 9.293 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001822/0.1176, allocations: 47.92 kB / 360.6 MB, free: 9.246 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.022e-05/0.1176, allocations: 8.25 kB / 360.6 MB, free: 9.238 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000378/0.118, allocations: 67.61 kB / 360.7 MB, free: 9.172 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.627e-05/0.118, allocations: 12 kB / 360.7 MB, free: 9.16 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.0001814/0.1182, allocations: 157.7 kB / 360.9 MB, free: 8.996 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.976e-05/0.1183, allocations: 23.72 kB / 360.9 MB, free: 8.973 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000398/0.1187, allocations: 203.7 kB / 361.1 MB, free: 8.766 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.1187, allocations: 3.984 kB / 361.1 MB, free: 8.762 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.1187, allocations: 0 / 361.1 MB, free: 8.762 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.1187, allocations: 0 / 361.1 MB, free: 8.762 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007803/0.1195, allocations: 0.6278 MB / 361.7 MB, free: 8.074 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.1195, allocations: 0 / 361.7 MB, free: 8.074 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001564/0.1197, allocations: 35.92 kB / 361.8 MB, free: 8.039 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.828e-06/0.1197, allocations: 0 / 361.8 MB, free: 8.039 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.979e-05/0.1197, allocations: 8.031 kB / 361.8 MB, free: 8.031 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.023e-06/0.1197, allocations: 0 / 361.8 MB, free: 8.031 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.1197, allocations: 0 / 361.8 MB, free: 8.031 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005064/0.1202, allocations: 383.1 kB / 362.1 MB, free: 7.641 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.362e-05/0.1203, allocations: 108.8 kB / 362.2 MB, free: 7.516 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.344e-05/0.1204, allocations: 3.938 kB / 362.2 MB, free: 7.512 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004115/0.1208, allocations: 59.98 kB / 362.3 MB, free: 7.453 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002088/0.121, allocations: 75.88 kB / 362.4 MB, free: 7.379 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.97e-05/0.121, allocations: 11.92 kB / 362.4 MB, free: 7.367 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002371/0.1213, allocations: 230 kB / 362.6 MB, free: 7.145 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1213, allocations: 0 / 362.6 MB, free: 7.145 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003586/0.1216, allocations: 83.69 kB / 362.7 MB, free: 7.062 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.0007878/0.1224, allocations: 0.9295 MB / 363.6 MB, free: 6.105 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003765/0.1228, allocations: 180.3 kB / 363.8 MB, free: 5.93 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.1228, allocations: 64 / 363.8 MB, free: 5.93 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000185/0.123, allocations: 115.8 kB / 363.9 MB, free: 5.816 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004326/0.1235, allocations: 56.78 kB / 364 MB, free: 5.758 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005683/0.1292, allocations: 3.165 MB / 367.1 MB, free: 2.457 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004692/0.1297, allocations: 0.7755 MB / 367.9 MB, free: 1.652 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002454/0.1299, allocations: 42.27 kB / 368 MB, free: 1.609 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002415/0.1302, allocations: 103.4 kB / 368.1 MB, free: 1.508 MB / 302.1 MB Notification: Performance of SimCode: time 1.072e-06/0.1302, allocations: 0 / 368.1 MB, free: 1.508 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1823/0.3125, allocations: 6.41 MB / 374.5 MB, free: 24.9 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001749/0.3128, allocations: 219.4 kB / 374.7 MB, free: 24.64 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.022/2.334, allocations: 0 / 374.7 MB, free: 24.64 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge_fmu --startTime=0 --stopTime=720 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/SuperCapDischargeCharge/SuperCapDischargeCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches