Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ScalableTestSuite_ScalableTestSuite.Thermal.DistrictHeating.ScaledExperiments.HeatingSystem_N_5.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ScalableTestSuite 2.2.0-master/package.mo", uses=false) Using package ScalableTestSuite with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ScalableTestSuite 2.2.0-master/package.mo) 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(ScalableTestSuite.Thermal.DistrictHeating.ScaledExperiments.HeatingSystem_N_5,fileNamePrefix="ScalableTestSuite_ScalableTestSuite_Thermal_DistrictHeating_ScaledExperiments_HeatingSystem_N_5",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ScalableTestSuite.Thermal.DistrictHeating.ScaledExperiments.HeatingSystem_N_5,fileNamePrefix="ScalableTestSuite_ScalableTestSuite_Thermal_DistrictHeating_ScaledExperiments_HeatingSystem_N_5",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.001079/0.001079, allocations: 112.7 kB / 17.06 MB, free: 5.969 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.001046/0.001047, allocations: 200 kB / 18.01 MB, free: 5.051 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.273/1.273, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ScalableTestSuite 2.2.0-master/package.mo): time 0.7948/0.7948, allocations: 119.3 MB / 411.2 MB, free: 9.512 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002391/0.002391, allocations: 65.7 kB / 0.5719 GB, free: 39.12 MB / 462.3 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1452/0.1476, allocations: 80.69 MB / 0.6507 GB, free: 12.08 MB / 0.4983 GB Notification: Performance of NFInst.instantiate(ScalableTestSuite.Thermal.DistrictHeating.ScaledExperiments.HeatingSystem_N_5): time 0.002119/0.1498, allocations: 1.382 MB / 0.652 GB, free: 10.69 MB / 0.4983 GB Notification: Performance of NFInst.instExpressions: time 0.0008068/0.1506, allocations: 0.5185 MB / 0.6525 GB, free: 10.17 MB / 0.4983 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.869e-05/0.1507, allocations: 0 / 0.6525 GB, free: 10.17 MB / 0.4983 GB Notification: Performance of NFTyping.typeComponents: time 8.14e-05/0.1508, allocations: 7.922 kB / 0.6525 GB, free: 10.16 MB / 0.4983 GB Notification: Performance of NFTyping.typeBindings: time 0.0002704/0.1511, allocations: 63.67 kB / 0.6526 GB, free: 10.1 MB / 0.4983 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001096/0.1512, allocations: 35.83 kB / 0.6526 GB, free: 10.06 MB / 0.4983 GB Notification: Performance of NFFlatten.flatten: time 0.0002095/0.1514, allocations: 195.5 kB / 0.6528 GB, free: 9.871 MB / 0.4983 GB Notification: Performance of NFFlatten.resolveConnections: time 4.761e-05/0.1514, allocations: 12.17 kB / 0.6528 GB, free: 9.859 MB / 0.4983 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001157/0.1516, allocations: 79.81 kB / 0.6529 GB, free: 9.781 MB / 0.4983 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001772/0.1518, allocations: 95.75 kB / 0.653 GB, free: 9.688 MB / 0.4983 GB Notification: Performance of NFPackage.collectConstants: time 2.68e-05/0.1518, allocations: 11.94 kB / 0.653 GB, free: 9.676 MB / 0.4983 GB Notification: Performance of NFFlatten.collectFunctions: time 9.035e-05/0.1519, allocations: 31.97 kB / 0.653 GB, free: 9.645 MB / 0.4983 GB Notification: Performance of NFScalarize.scalarize: time 9.545e-05/0.152, allocations: 67.84 kB / 0.6531 GB, free: 9.578 MB / 0.4983 GB Notification: Performance of NFVerifyModel.verify: time 9.041e-05/0.1521, allocations: 67.66 kB / 0.6532 GB, free: 9.512 MB / 0.4983 GB Notification: Performance of NFConvertDAE.convert: time 0.0001774/0.1523, allocations: 139.4 kB / 0.6533 GB, free: 9.375 MB / 0.4983 GB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.1523, allocations: 4 kB / 0.6533 GB, free: 9.371 MB / 0.4983 GB Notification: Performance of FrontEnd: time 1.253e-06/0.1523, allocations: 0 / 0.6533 GB, free: 9.371 MB / 0.4983 GB Notification: Performance of Transformations before backend: time 5.119e-06/0.1523, allocations: 0 / 0.6533 GB, free: 9.371 MB / 0.4983 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.000763/0.1531, allocations: 482.9 kB / 0.6538 GB, free: 8.848 MB / 0.4983 GB Notification: Performance of prepare preOptimizeDAE: time 3.544e-05/0.1531, allocations: 11.89 kB / 0.6538 GB, free: 8.836 MB / 0.4983 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.485e-05/0.1532, allocations: 46.73 kB / 0.6538 GB, free: 8.781 MB / 0.4983 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.431e-05/0.1532, allocations: 12.89 kB / 0.6538 GB, free: 8.77 MB / 0.4983 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000215/0.1534, allocations: 219.7 kB / 0.654 GB, free: 8.516 MB / 0.4983 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.283e-05/0.1535, allocations: 8.234 kB / 0.6541 GB, free: 8.508 MB / 0.4983 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.186e-05/0.1535, allocations: 16 kB / 0.6541 GB, free: 8.492 MB / 0.4983 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002861/0.1538, allocations: 175.4 kB / 0.6542 GB, free: 8.316 MB / 0.4983 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.205e-06/0.1538, allocations: 4 kB / 0.6542 GB, free: 8.312 MB / 0.4983 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.752e-05/0.1538, allocations: 0 / 0.6542 GB, free: 8.312 MB / 0.4983 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.372e-06/0.1538, allocations: 4 kB / 0.6542 GB, free: 8.309 MB / 0.4983 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002273/0.1541, allocations: 148.6 kB / 0.6544 GB, free: 8.164 MB / 0.4983 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002902/0.1544, allocations: 286.2 kB / 0.6547 GB, free: 7.836 MB / 0.4983 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009446/0.1553, allocations: 358.8 kB / 0.655 GB, free: 7.477 MB / 0.4983 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001776/0.1555, allocations: 120.8 kB / 0.6551 GB, free: 7.355 MB / 0.4983 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001679/0.1557, allocations: 97.02 kB / 0.6552 GB, free: 7.242 MB / 0.4983 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.014e-05/0.1557, allocations: 34.56 kB / 0.6552 GB, free: 7.199 MB / 0.4983 GB Notification: Performance of pre-optimization done (n=28): time 1.453e-06/0.1557, allocations: 0 / 0.6552 GB, free: 7.199 MB / 0.4983 GB Notification: Performance of matching and sorting (n=28): time 0.0006361/0.1564, allocations: 378.1 kB / 0.6556 GB, free: 6.824 MB / 0.4983 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.106e-05/0.1564, allocations: 59.41 kB / 0.6557 GB, free: 6.754 MB / 0.4983 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.442e-05/0.1565, allocations: 128.6 kB / 0.6558 GB, free: 6.621 MB / 0.4983 GB Notification: Performance of collectPreVariables (initialization): time 2.265e-05/0.1565, allocations: 29.7 kB / 0.6558 GB, free: 6.586 MB / 0.4983 GB Notification: Performance of collectInitialEqns (initialization): time 3.624e-05/0.1566, allocations: 92.7 kB / 0.6559 GB, free: 6.492 MB / 0.4983 GB Notification: Performance of collectInitialBindings (initialization): time 9.183e-05/0.1567, allocations: 119 kB / 0.656 GB, free: 6.375 MB / 0.4983 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.85e-05/0.1568, allocations: 58.03 kB / 0.6561 GB, free: 6.309 MB / 0.4983 GB Notification: Performance of setup shared object (initialization): time 9.89e-05/0.1569, allocations: 338.7 kB / 0.6564 GB, free: 5.969 MB / 0.4983 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001796/0.1571, allocations: 120.6 kB / 0.6565 GB, free: 5.852 MB / 0.4983 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001812/0.1572, allocations: 137.1 kB / 0.6566 GB, free: 5.719 MB / 0.4983 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003767/0.1576, allocations: 278.9 kB / 0.6569 GB, free: 5.445 MB / 0.4983 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.1576, allocations: 0 / 0.6569 GB, free: 5.445 MB / 0.4983 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004949/0.1581, allocations: 353.3 kB / 0.6572 GB, free: 5.094 MB / 0.4983 GB Notification: Performance of prepare postOptimizeDAE: time 1.351e-05/0.1582, allocations: 4 kB / 0.6572 GB, free: 5.09 MB / 0.4983 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.1582, allocations: 0 / 0.6572 GB, free: 5.09 MB / 0.4983 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.471e-05/0.1582, allocations: 4 kB / 0.6572 GB, free: 5.086 MB / 0.4983 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003147/0.1585, allocations: 67.91 kB / 0.6573 GB, free: 5.02 MB / 0.4983 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.536e-06/0.1585, allocations: 7.984 kB / 0.6573 GB, free: 5.012 MB / 0.4983 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001148/0.1586, allocations: 23.84 kB / 0.6573 GB, free: 4.988 MB / 0.4983 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.04e-05/0.1587, allocations: 12 kB / 0.6574 GB, free: 4.977 MB / 0.4983 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0001114/0.1588, allocations: 139.1 kB / 0.6575 GB, free: 4.832 MB / 0.4983 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.306e-05/0.1588, allocations: 15.91 kB / 0.6575 GB, free: 4.816 MB / 0.4983 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006375/0.1595, allocations: 403.3 kB / 0.6579 GB, free: 4.41 MB / 0.4983 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-06/0.1595, allocations: 8 kB / 0.6579 GB, free: 4.402 MB / 0.4983 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.1595, allocations: 0 / 0.6579 GB, free: 4.402 MB / 0.4983 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.1595, allocations: 3.984 kB / 0.6579 GB, free: 4.398 MB / 0.4983 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002796/0.1598, allocations: 317.3 kB / 0.6582 GB, free: 4.039 MB / 0.4983 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.1598, allocations: 4 kB / 0.6582 GB, free: 4.035 MB / 0.4983 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004337/0.1602, allocations: 87.89 kB / 0.6583 GB, free: 3.949 MB / 0.4983 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.926e-06/0.1603, allocations: 0 / 0.6583 GB, free: 3.949 MB / 0.4983 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.221e-05/0.1603, allocations: 11.98 kB / 0.6583 GB, free: 3.938 MB / 0.4983 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.877e-06/0.1603, allocations: 4 kB / 0.6583 GB, free: 3.934 MB / 0.4983 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1603, allocations: 0 / 0.6583 GB, free: 3.934 MB / 0.4983 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007285/0.161, allocations: 0.5337 MB / 0.6588 GB, free: 3.379 MB / 0.4983 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001284/0.1612, allocations: 132.8 kB / 0.659 GB, free: 3.23 MB / 0.4983 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.893e-05/0.1612, allocations: 8 kB / 0.659 GB, free: 3.223 MB / 0.4983 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001107/0.1613, allocations: 4 kB / 0.659 GB, free: 3.219 MB / 0.4983 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.054e-05/0.1614, allocations: 23.97 kB / 0.659 GB, free: 3.195 MB / 0.4983 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.173e-05/0.1614, allocations: 15.98 kB / 0.659 GB, free: 3.18 MB / 0.4983 GB Notification: Performance of sorting global known variables: time 6.042e-05/0.1615, allocations: 103.2 kB / 0.6591 GB, free: 3.078 MB / 0.4983 GB Notification: Performance of sort global known variables: time 1.5e-07/0.1615, allocations: 0 / 0.6591 GB, free: 3.078 MB / 0.4983 GB Notification: Performance of remove unused functions: time 0.0002721/0.1618, allocations: 72 kB / 0.6592 GB, free: 3.008 MB / 0.4983 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 11 (Td,Tu[1],Tu[2],Tu[3],Tu[4],Tu[5],x[1],x[2],x[3],x[4],x[5]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 39 * 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.0009709/0.1628, allocations: 1.071 MB / 0.6602 GB, free: 1.91 MB / 0.4983 GB Notification: Performance of simCode: created initialization part: time 0.0004618/0.1632, allocations: 303.7 kB / 0.6605 GB, free: 1.613 MB / 0.4983 GB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.1632, allocations: 0 / 0.6605 GB, free: 1.613 MB / 0.4983 GB Notification: Performance of simCode: created simulation system equations: time 0.0002104/0.1635, allocations: 172 kB / 0.6607 GB, free: 1.445 MB / 0.4983 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002706/0.1637, allocations: 36.36 kB / 0.6607 GB, free: 1.41 MB / 0.4983 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003086/0.1668, allocations: 2.886 MB / 0.6635 GB, free: 14.43 MB / 0.5139 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00025/0.1671, allocations: 0.7449 MB / 0.6643 GB, free: 13.66 MB / 0.5139 GB Notification: Performance of simCode: alias equations: time 0.0002041/0.1673, allocations: 89.86 kB / 0.6643 GB, free: 13.57 MB / 0.5139 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001276/0.1675, allocations: 71.34 kB / 0.6644 GB, free: 13.5 MB / 0.5139 GB Notification: Performance of SimCode: time 5.91e-07/0.1675, allocations: 0 / 0.6644 GB, free: 13.5 MB / 0.5139 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02207/0.1895, allocations: 5.503 MB / 0.6698 GB, free: 8.16 MB / 0.5139 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.587/7.777, allocations: 12.36 kB / 0.6698 GB, free: 8.148 MB / 0.5139 GB (rm -f ScalableTestSuite_ScalableTestSuite.Thermal.DistrictHeating.ScaledExperiments.HeatingSystem_N_5.pipe ; mkfifo ScalableTestSuite_ScalableTestSuite.Thermal.DistrictHeating.ScaledExperiments.HeatingSystem_N_5.pipe ; head -c 1048576 < ScalableTestSuite_ScalableTestSuite.Thermal.DistrictHeating.ScaledExperiments.HeatingSystem_N_5.pipe >> ../files/ScalableTestSuite_ScalableTestSuite.Thermal.DistrictHeating.ScaledExperiments.HeatingSystem_N_5.sim & python3 -m fmpy simulate --output-file ScalableTestSuite_ScalableTestSuite.Thermal.DistrictHeating.ScaledExperiments.HeatingSystem_N_5_res.csv --start-time 0 --stop-time 432000 --timeout 300 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 20 ScalableTestSuite_ScalableTestSuite_Thermal_DistrictHeating_ScaledExperiments_HeatingSystem_N_5.fmu > ScalableTestSuite_ScalableTestSuite.Thermal.DistrictHeating.ScaledExperiments.HeatingSystem_N_5.pipe 2>&1) diffSimulationResults("ScalableTestSuite_ScalableTestSuite.Thermal.DistrictHeating.ScaledExperiments.HeatingSystem_N_5_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/ScalableTestSuite/ScalableTestSuite.Thermal.DistrictHeating.ScaledExperiments.HeatingSystem_N_5_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ScalableTestSuite_ScalableTestSuite.Thermal.DistrictHeating.ScaledExperiments.HeatingSystem_N_5.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches