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.001663/0.001663, allocations: 105 kB / 16.92 MB, free: 6.145 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.002169/0.002169, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.746/1.746, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001684/0.001684, allocations: 44.25 kB / 300.7 MB, free: 5.762 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1247/0.1264, allocations: 49.44 MB / 350.2 MB, free: 4.32 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004809/0.1312, allocations: 2.965 MB / 353.1 MB, free: 1.328 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001559/0.1328, allocations: 0.7128 MB / 353.8 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003341/0.1332, allocations: 11.94 kB / 353.8 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002776/0.1335, allocations: 55.44 kB / 353.9 MB, free: 0.543 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003747/0.1339, allocations: 115 kB / 354 MB, free: 440 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003927/0.1343, allocations: 103.9 kB / 354.1 MB, free: 336 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005721/0.1349, allocations: 410.3 kB / 354.5 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003491/0.1353, allocations: 210 kB / 354.7 MB, free: 15.72 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002642/0.1355, allocations: 159.4 kB / 354.9 MB, free: 15.56 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003602/0.1359, allocations: 183.2 kB / 355.1 MB, free: 15.38 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.018e-05/0.136, allocations: 36 kB / 355.1 MB, free: 15.35 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001468/0.1361, allocations: 63.92 kB / 355.2 MB, free: 15.29 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001662/0.1363, allocations: 111.6 kB / 355.3 MB, free: 15.18 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002284/0.1366, allocations: 203 kB / 355.5 MB, free: 14.98 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005397/0.1371, allocations: 498.3 kB / 355.9 MB, free: 14.49 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.1371, allocations: 4 kB / 355.9 MB, free: 14.48 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.364e-06/0.1371, allocations: 0 / 355.9 MB, free: 14.48 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.412e-05/0.1371, allocations: 0 / 355.9 MB, free: 14.48 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.001833/0.139, allocations: 0.7873 MB / 356.7 MB, free: 13.65 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.182e-05/0.139, allocations: 8.031 kB / 356.7 MB, free: 13.64 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.616e-05/0.1391, allocations: 70.72 kB / 356.8 MB, free: 13.56 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001097/0.1392, allocations: 40.47 kB / 356.9 MB, free: 13.52 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000465/0.1397, allocations: 338.6 kB / 357.2 MB, free: 13.16 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.28e-05/0.1398, allocations: 25.03 kB / 357.2 MB, free: 13.13 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.5e-05/0.1398, allocations: 28.38 kB / 357.2 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005691/0.1404, allocations: 354 kB / 357.6 MB, free: 12.75 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.278e-05/0.1404, allocations: 0 / 357.6 MB, free: 12.75 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.904e-05/0.1405, allocations: 16 kB / 357.6 MB, free: 12.73 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.381e-05/0.1405, allocations: 11.98 kB / 357.6 MB, free: 12.72 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004225/0.1409, allocations: 234.5 kB / 357.8 MB, free: 12.49 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002008/0.1429, allocations: 1.303 MB / 359.1 MB, free: 11.1 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004559/0.1434, allocations: 190.3 kB / 359.3 MB, free: 10.91 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003301/0.1437, allocations: 132.8 kB / 359.5 MB, free: 10.77 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.468e-05/0.1438, allocations: 0 / 359.5 MB, free: 10.77 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.87e-05/0.1439, allocations: 38.56 kB / 359.5 MB, free: 10.73 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.262e-06/0.1439, allocations: 0 / 359.5 MB, free: 10.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005701/0.1444, allocations: 228.7 kB / 359.7 MB, free: 10.5 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.086e-05/0.1445, allocations: 63.39 kB / 359.8 MB, free: 10.43 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005022/0.145, allocations: 315 kB / 360.1 MB, free: 10.11 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.836e-05/0.1451, allocations: 29.7 kB / 360.1 MB, free: 10.07 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001433/0.1452, allocations: 212 kB / 360.3 MB, free: 9.859 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.394e-05/0.1453, allocations: 55.2 kB / 360.4 MB, free: 9.805 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.086e-05/0.1454, allocations: 49.61 kB / 360.4 MB, free: 9.75 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002073/0.1456, allocations: 330.8 kB / 360.7 MB, free: 9.418 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001498/0.1458, allocations: 75.95 kB / 360.8 MB, free: 9.344 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001778/0.146, allocations: 131.7 kB / 361 MB, free: 9.188 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002506/0.1462, allocations: 171.6 kB / 361.1 MB, free: 8.992 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.1462, allocations: 0 / 361.1 MB, free: 8.992 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004215/0.1467, allocations: 241.1 kB / 361.4 MB, free: 8.75 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.402e-05/0.1467, allocations: 10.66 kB / 361.4 MB, free: 8.742 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.037e-06/0.1467, allocations: 0 / 361.4 MB, free: 8.742 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.626e-05/0.1467, allocations: 4 kB / 361.4 MB, free: 8.738 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001877/0.1469, allocations: 51.91 kB / 361.4 MB, free: 8.688 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.07e-05/0.147, allocations: 4 kB / 361.4 MB, free: 8.684 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000432/0.1474, allocations: 71.73 kB / 361.5 MB, free: 8.613 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.642e-05/0.1474, allocations: 8 kB / 361.5 MB, free: 8.605 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.0002306/0.1477, allocations: 157.7 kB / 361.7 MB, free: 8.441 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.064e-05/0.1478, allocations: 27.7 kB / 361.7 MB, free: 8.414 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004912/0.1483, allocations: 195.7 kB / 361.9 MB, free: 8.219 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.1483, allocations: 4 kB / 361.9 MB, free: 8.215 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.1483, allocations: 0 / 361.9 MB, free: 8.215 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.874e-06/0.1483, allocations: 3.984 kB / 361.9 MB, free: 8.211 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008781/0.1492, allocations: 0.6278 MB / 362.5 MB, free: 7.523 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.182e-06/0.1492, allocations: 0 / 362.5 MB, free: 7.523 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001625/0.1494, allocations: 35.91 kB / 362.5 MB, free: 7.488 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.179e-06/0.1494, allocations: 0 / 362.5 MB, free: 7.488 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.245e-05/0.1494, allocations: 8 kB / 362.6 MB, free: 7.48 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.1494, allocations: 0 / 362.6 MB, free: 7.48 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.1494, allocations: 0 / 362.6 MB, free: 7.48 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005478/0.15, allocations: 383.9 kB / 362.9 MB, free: 7.086 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.701e-05/0.1501, allocations: 108.8 kB / 363 MB, free: 6.961 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.517e-05/0.1501, allocations: 0 / 363 MB, free: 6.961 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004146/0.1506, allocations: 59.86 kB / 363.1 MB, free: 6.902 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002531/0.1508, allocations: 75.94 kB / 363.2 MB, free: 6.828 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.603e-05/0.1509, allocations: 15.94 kB / 363.2 MB, free: 6.812 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003445/0.1512, allocations: 230 kB / 363.4 MB, free: 6.594 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.1512, allocations: 0 / 363.4 MB, free: 6.594 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005185/0.1517, allocations: 87.67 kB / 363.5 MB, free: 6.508 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.001086/0.1528, allocations: 0.9266 MB / 364.4 MB, free: 5.551 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004552/0.1533, allocations: 187.7 kB / 364.6 MB, free: 5.367 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.788e-06/0.1533, allocations: 0 / 364.6 MB, free: 5.367 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001816/0.1535, allocations: 111.8 kB / 364.7 MB, free: 5.258 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004788/0.154, allocations: 65.34 kB / 364.8 MB, free: 5.191 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004489/0.1585, allocations: 3.046 MB / 367.8 MB, free: 2.004 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003544/0.1589, allocations: 0.779 MB / 368.6 MB, free: 1.199 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001524/0.1591, allocations: 34.3 kB / 368.6 MB, free: 1.168 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001607/0.1592, allocations: 111.4 kB / 368.7 MB, free: 1.059 MB / 302.1 MB Notification: Performance of SimCode: time 7.81e-07/0.1592, allocations: 0 / 368.7 MB, free: 1.059 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1882/0.3474, allocations: 7.31 MB / 376.1 MB, free: 25 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.573/8.92, allocations: 2.125 kB / 376.1 MB, free: 25 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 & python3 -m fmpy simulate --output-file Modelica_4.0.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_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.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_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches