Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001196/0.001196, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001286/0.001286, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.497/1.497, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001365/0.001366, allocations: 59.38 kB / 307 MB, free: 0.5625 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09367/0.09506, allocations: 50.55 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.005031/0.1001, allocations: 2.969 MB / 360.6 MB, free: 11.03 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001726/0.1019, allocations: 0.7439 MB / 361.3 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003008/0.1022, allocations: 4 kB / 361.3 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002838/0.1026, allocations: 71.36 kB / 361.4 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003997/0.103, allocations: 103.1 kB / 361.5 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003933/0.1034, allocations: 111.8 kB / 361.6 MB, free: 9.992 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005214/0.1039, allocations: 410.3 kB / 362 MB, free: 9.59 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003468/0.1043, allocations: 206 kB / 362.2 MB, free: 9.383 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002005/0.1045, allocations: 159.4 kB / 362.3 MB, free: 9.227 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002958/0.1048, allocations: 187.2 kB / 362.5 MB, free: 9.043 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.977e-05/0.1049, allocations: 40 kB / 362.6 MB, free: 9.004 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001338/0.105, allocations: 51.94 kB / 362.6 MB, free: 8.953 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001463/0.1052, allocations: 111.7 kB / 362.7 MB, free: 8.844 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002093/0.1054, allocations: 203 kB / 362.9 MB, free: 8.645 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004928/0.1059, allocations: 498.3 kB / 363.4 MB, free: 8.156 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.1059, allocations: 0 / 363.4 MB, free: 8.156 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1059, allocations: 0 / 363.4 MB, free: 8.156 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.588e-05/0.1059, allocations: 0 / 363.4 MB, free: 8.156 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.001742/0.1077, allocations: 0.7912 MB / 364.2 MB, free: 7.316 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.39e-05/0.1077, allocations: 8.031 kB / 364.2 MB, free: 7.309 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.33e-05/0.1078, allocations: 66.73 kB / 364.3 MB, free: 7.234 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.574e-05/0.1079, allocations: 44.45 kB / 364.3 MB, free: 7.191 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004329/0.1083, allocations: 342.5 kB / 364.6 MB, free: 6.812 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.188e-05/0.1084, allocations: 25.03 kB / 364.7 MB, free: 6.789 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.334e-05/0.1084, allocations: 36.28 kB / 364.7 MB, free: 6.754 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00057/0.109, allocations: 350 kB / 365.1 MB, free: 6.402 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.15e-05/0.109, allocations: 0 / 365.1 MB, free: 6.402 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.529e-05/0.1091, allocations: 16 kB / 365.1 MB, free: 6.387 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.049e-05/0.1091, allocations: 8 kB / 365.1 MB, free: 6.379 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004216/0.1095, allocations: 234.5 kB / 365.3 MB, free: 6.148 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001823/0.1114, allocations: 1.303 MB / 366.6 MB, free: 4.762 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003647/0.1117, allocations: 186.4 kB / 366.8 MB, free: 4.57 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002564/0.112, allocations: 124.8 kB / 366.9 MB, free: 4.445 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.18e-05/0.112, allocations: 4 kB / 366.9 MB, free: 4.441 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.603e-05/0.1121, allocations: 42.56 kB / 367 MB, free: 4.391 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.523e-06/0.1121, allocations: 0 / 367 MB, free: 4.391 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004513/0.1125, allocations: 229.5 kB / 367.2 MB, free: 4.16 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.817e-05/0.1126, allocations: 51.41 kB / 367.2 MB, free: 4.098 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003386/0.1129, allocations: 322.9 kB / 367.5 MB, free: 3.777 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.532e-05/0.113, allocations: 29.7 kB / 367.6 MB, free: 3.742 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001338/0.1131, allocations: 212 kB / 367.8 MB, free: 3.531 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.9e-05/0.1132, allocations: 51.3 kB / 367.8 MB, free: 3.48 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.834e-05/0.1133, allocations: 49.61 kB / 367.9 MB, free: 3.426 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001169/0.1134, allocations: 334.8 kB / 368.2 MB, free: 3.09 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001338/0.1135, allocations: 75.95 kB / 368.3 MB, free: 3.016 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001638/0.1137, allocations: 128.8 kB / 368.4 MB, free: 2.863 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002306/0.1139, allocations: 174.6 kB / 368.6 MB, free: 2.668 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.1139, allocations: 0 / 368.6 MB, free: 2.668 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003851/0.1143, allocations: 241 kB / 368.8 MB, free: 2.426 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.542e-05/0.1144, allocations: 7.938 kB / 368.8 MB, free: 2.418 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.233e-06/0.1144, allocations: 4 kB / 368.8 MB, free: 2.414 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.691e-05/0.1144, allocations: 7.984 kB / 368.8 MB, free: 2.406 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001855/0.1146, allocations: 43.92 kB / 368.9 MB, free: 2.363 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.113e-06/0.1146, allocations: 4 kB / 368.9 MB, free: 2.359 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000396/0.115, allocations: 75.86 kB / 369 MB, free: 2.285 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.819e-05/0.115, allocations: 8 kB / 369 MB, free: 2.277 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.0001475/0.1152, allocations: 166.3 kB / 369.1 MB, free: 2.105 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.035e-05/0.1153, allocations: 27.66 kB / 369.2 MB, free: 2.078 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003827/0.1156, allocations: 198.8 kB / 369.3 MB, free: 1.879 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.1157, allocations: 8 kB / 369.4 MB, free: 1.871 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.1157, allocations: 0 / 369.4 MB, free: 1.871 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.149e-06/0.1157, allocations: 3.984 kB / 369.4 MB, free: 1.867 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007404/0.1164, allocations: 0.6239 MB / 370 MB, free: 1.184 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.1164, allocations: 0 / 370 MB, free: 1.184 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001589/0.1166, allocations: 27.97 kB / 370 MB, free: 1.156 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.1166, allocations: 4 kB / 370 MB, free: 1.152 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.024e-05/0.1166, allocations: 8 kB / 370 MB, free: 1.145 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.1167, allocations: 8.031 kB / 370 MB, free: 1.137 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.1167, allocations: 3.938 kB / 370 MB, free: 1.133 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004659/0.1171, allocations: 375.9 kB / 370.4 MB, free: 0.7461 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.877e-05/0.1172, allocations: 100.8 kB / 370.5 MB, free: 0.6289 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.717e-05/0.1173, allocations: 8 kB / 370.5 MB, free: 0.6211 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004218/0.1177, allocations: 59.98 kB / 370.6 MB, free: 0.5625 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002066/0.1179, allocations: 71.88 kB / 370.6 MB, free: 0.4922 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.727e-05/0.1179, allocations: 7.938 kB / 370.6 MB, free: 496 kB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002388/0.1182, allocations: 230 kB / 370.9 MB, free: 264 kB / 302.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1182, allocations: 0 / 370.9 MB, free: 264 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003884/0.1186, allocations: 99.67 kB / 371 MB, free: 164 kB / 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.1675/0.2861, allocations: 0.9122 MB / 371.9 MB, free: 18.98 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004574/0.2866, allocations: 186.5 kB / 372.1 MB, free: 18.98 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.2866, allocations: 3.375 kB / 372.1 MB, free: 18.98 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001964/0.2868, allocations: 115.2 kB / 372.2 MB, free: 18.98 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000505/0.2874, allocations: 48.3 kB / 372.2 MB, free: 18.97 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003899/0.2913, allocations: 3.054 MB / 375.3 MB, free: 17.43 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002563/0.2915, allocations: 0.7829 MB / 376.1 MB, free: 16.73 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001759/0.2917, allocations: 34.81 kB / 376.1 MB, free: 16.72 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001637/0.2919, allocations: 104.5 kB / 376.2 MB, free: 16.71 MB / 302.1 MB Notification: Performance of SimCode: time 5.61e-07/0.2919, allocations: 1.375 kB / 376.2 MB, free: 16.71 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03228/0.3242, allocations: 7.275 MB / 383.5 MB, free: 15.45 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.886/8.21, allocations: 9.031 kB / 383.5 MB, free: 15.44 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.csv","/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_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches