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.001255/0.001255, allocations: 124 kB / 17.79 MB, free: 5.266 MB / 14.72 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.001363/0.001363, allocations: 190.9 kB / 20.73 MB, free: 2.328 MB / 14.72 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 1.418/1.418, allocations: 225.6 MB / 249.1 MB, free: 3.621 MB / 190.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002347/0.002347, allocations: 51.92 kB / 365.6 MB, free: 0.9688 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1169/0.1193, allocations: 52.14 MB / 417.8 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004558/0.1238, allocations: 2.983 MB / 420.7 MB, free: 9.738 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001323/0.1252, allocations: 0.7128 MB / 421.5 MB, free: 9.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001534/0.1253, allocations: 15.88 kB / 421.5 MB, free: 9.004 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002345/0.1256, allocations: 59.42 kB / 421.5 MB, free: 8.945 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002501/0.1258, allocations: 111.1 kB / 421.6 MB, free: 8.836 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003242/0.1261, allocations: 107.8 kB / 421.7 MB, free: 8.73 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004408/0.1266, allocations: 422.2 kB / 422.2 MB, free: 8.316 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002767/0.1269, allocations: 149.8 kB / 422.3 MB, free: 8.168 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000184/0.127, allocations: 167.4 kB / 422.5 MB, free: 8.004 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002668/0.1273, allocations: 179.2 kB / 422.6 MB, free: 7.828 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.864e-05/0.1274, allocations: 40 kB / 422.7 MB, free: 7.789 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001266/0.1275, allocations: 63.92 kB / 422.7 MB, free: 7.727 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001606/0.1276, allocations: 107.6 kB / 422.9 MB, free: 7.621 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001997/0.1278, allocations: 207 kB / 423.1 MB, free: 7.418 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005921/0.1284, allocations: 0.4941 MB / 423.5 MB, free: 6.922 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.1284, allocations: 0 / 423.5 MB, free: 6.922 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.1284, allocations: 0 / 423.5 MB, free: 6.922 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.867e-06/0.1285, allocations: 0 / 423.5 MB, free: 6.922 MB / 350.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.001737/0.1302, allocations: 0.7972 MB / 424.3 MB, free: 6.078 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.918e-05/0.1302, allocations: 12.03 kB / 424.4 MB, free: 6.066 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.653e-05/0.1303, allocations: 62.73 kB / 424.4 MB, free: 5.996 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.101e-05/0.1304, allocations: 48.64 kB / 424.5 MB, free: 5.949 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00049/0.1309, allocations: 346.7 kB / 424.8 MB, free: 5.574 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.626e-05/0.1309, allocations: 24.97 kB / 424.8 MB, free: 5.551 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.983e-05/0.131, allocations: 32.38 kB / 424.9 MB, free: 5.52 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005859/0.1316, allocations: 354 kB / 425.2 MB, free: 5.156 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.197e-05/0.1316, allocations: 0 / 425.2 MB, free: 5.156 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.8e-05/0.1316, allocations: 16 kB / 425.2 MB, free: 5.141 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.004e-05/0.1316, allocations: 11.94 kB / 425.2 MB, free: 5.129 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004272/0.1321, allocations: 234.5 kB / 425.5 MB, free: 4.902 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001833/0.1339, allocations: 1.296 MB / 426.8 MB, free: 3.52 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003864/0.1343, allocations: 178.4 kB / 426.9 MB, free: 3.336 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002549/0.1345, allocations: 112.8 kB / 427 MB, free: 3.223 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.215e-05/0.1346, allocations: 4 kB / 427 MB, free: 3.219 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.579e-05/0.1346, allocations: 30.56 kB / 427.1 MB, free: 3.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.502e-06/0.1346, allocations: 0 / 427.1 MB, free: 3.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004897/0.1351, allocations: 225.4 kB / 427.3 MB, free: 2.953 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.256e-05/0.1351, allocations: 63.69 kB / 427.4 MB, free: 2.879 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003763/0.1355, allocations: 318.9 kB / 427.7 MB, free: 2.559 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.157e-05/0.1355, allocations: 29.7 kB / 427.7 MB, free: 2.523 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001414/0.1357, allocations: 208.4 kB / 427.9 MB, free: 2.316 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.045e-05/0.1357, allocations: 63.47 kB / 428 MB, free: 2.254 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.631e-05/0.1358, allocations: 45.7 kB / 428 MB, free: 2.203 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001577/0.136, allocations: 338.8 kB / 428.3 MB, free: 1.863 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001387/0.1361, allocations: 67.95 kB / 428.4 MB, free: 1.797 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001854/0.1363, allocations: 144.2 kB / 428.5 MB, free: 1.629 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002446/0.1365, allocations: 162 kB / 428.7 MB, free: 1.445 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.1365, allocations: 3.938 kB / 428.7 MB, free: 1.441 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004076/0.137, allocations: 249.2 kB / 429 MB, free: 1.191 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.438e-05/0.137, allocations: 4 kB / 429 MB, free: 1.188 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.676e-06/0.137, allocations: 4 kB / 429 MB, free: 1.184 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.772e-05/0.137, allocations: 3.984 kB / 429 MB, free: 1.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001966/0.1372, allocations: 43.98 kB / 429 MB, free: 1.137 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.928e-06/0.1372, allocations: 7.938 kB / 429 MB, free: 1.129 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003935/0.1376, allocations: 71.95 kB / 429.1 MB, free: 1.059 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.711e-05/0.1376, allocations: 8 kB / 429.1 MB, free: 1.051 MB / 350.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.0001632/0.1378, allocations: 161.6 kB / 429.3 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.058e-05/0.1378, allocations: 23.86 kB / 429.3 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004095/0.1383, allocations: 198.4 kB / 429.5 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.1383, allocations: 0 / 429.5 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.153e-06/0.1383, allocations: 7.984 kB / 429.5 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.1383, allocations: 3.938 kB / 429.5 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008245/0.1391, allocations: 0.6358 MB / 430.1 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.1391, allocations: 0 / 430.1 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001648/0.1393, allocations: 35.92 kB / 430.2 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.1393, allocations: 0 / 430.2 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.603e-05/0.1393, allocations: 4 kB / 430.2 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.1393, allocations: 0 / 430.2 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.1393, allocations: 0 / 430.2 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005187/0.1398, allocations: 382.8 kB / 430.5 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.94e-05/0.1399, allocations: 112.9 kB / 430.6 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.123e-05/0.1399, allocations: 4 kB / 430.6 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004232/0.1404, allocations: 51.92 kB / 430.7 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001787/0.1405, allocations: 79.94 kB / 430.8 MB, free: 15.26 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.119e-05/0.1406, allocations: 11.94 kB / 430.8 MB, free: 15.25 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002529/0.1408, allocations: 237.9 kB / 431 MB, free: 15.02 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1408, allocations: 0 / 431 MB, free: 15.02 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003715/0.1412, allocations: 83.78 kB / 431.1 MB, free: 14.93 MB / 366.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.0008774/0.1421, allocations: 0.9304 MB / 432 MB, free: 13.97 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003438/0.1424, allocations: 163.9 kB / 432.2 MB, free: 13.81 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.1424, allocations: 3.938 kB / 432.2 MB, free: 13.81 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001769/0.1426, allocations: 103.9 kB / 432.3 MB, free: 13.71 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004203/0.143, allocations: 69.28 kB / 432.4 MB, free: 13.64 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004016/0.147, allocations: 3.051 MB / 435.4 MB, free: 10.45 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003952/0.1474, allocations: 0.779 MB / 436.2 MB, free: 9.641 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001316/0.1475, allocations: 42.27 kB / 436.2 MB, free: 9.602 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001702/0.1477, allocations: 103.4 kB / 436.3 MB, free: 9.5 MB / 366.1 MB Notification: Performance of SimCode: time 4.6e-07/0.1477, allocations: 4 kB / 436.3 MB, free: 9.496 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03193/0.1796, allocations: 7.452 MB / 443.8 MB, free: 2.203 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.283/8.463, allocations: 4.453 kB / 443.8 MB, free: 2.199 MB / 366.1 MB " [Timeout remaining time 651] (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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.577991697005928]