Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008223/0.0008223, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008713/0.0008713, allocations: 165.9 kB / 22.45 MB, free: 2.109 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8449/0.8449, allocations: 177.1 MB / 202.8 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.664/1.664, allocations: 377.8 MB / 0.6221 GB, free: 8.629 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate,fileNamePrefix="Buildings_12_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_NormalizedHeatFlowRate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate,fileNamePrefix="Buildings_12_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_NormalizedHeatFlowRate",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.314e-06/2.314e-06, allocations: 3.938 kB / 0.981 GB, free: 2.539 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.083e-05/2.314e-05, allocations: 2.281 kB / 0.981 GB, free: 2.535 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate): time 0.003193/0.003216, allocations: 1.965 MB / 0.9829 GB, free: 0.5586 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.001294/0.00451, allocations: 0.7049 MB / 0.9836 GB, free: 15.85 MB / 0.948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001231/0.004633, allocations: 4 kB / 0.9836 GB, free: 15.84 MB / 0.948 GB Notification: Performance of NFTyping.typeComponents: time 0.0001452/0.004779, allocations: 15.8 kB / 0.9836 GB, free: 15.83 MB / 0.948 GB Notification: Performance of NFTyping.typeBindings: time 0.0001015/0.00488, allocations: 39.66 kB / 0.9836 GB, free: 15.79 MB / 0.948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004533/0.005333, allocations: 95.77 kB / 0.9837 GB, free: 15.7 MB / 0.948 GB Notification: Performance of NFFlatten.flatten: time 0.0001903/0.005524, allocations: 151.5 kB / 0.9839 GB, free: 15.55 MB / 0.948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001732/0.005697, allocations: 59.59 kB / 0.9839 GB, free: 15.49 MB / 0.948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002055/0.005902, allocations: 95.72 kB / 0.984 GB, free: 15.39 MB / 0.948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001129/0.006015, allocations: 51.8 kB / 0.9841 GB, free: 15.34 MB / 0.948 GB Notification: Performance of NFPackage.collectConstants: time 3.646e-05/0.006052, allocations: 16 kB / 0.9841 GB, free: 15.33 MB / 0.948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001542/0.006206, allocations: 67.94 kB / 0.9842 GB, free: 15.26 MB / 0.948 GB Notification: Performance of NFScalarize.scalarize: time 7.97e-05/0.006286, allocations: 71.75 kB / 0.9842 GB, free: 15.19 MB / 0.948 GB Notification: Performance of NFVerifyModel.verify: time 4.709e-05/0.006333, allocations: 51.84 kB / 0.9843 GB, free: 15.14 MB / 0.948 GB Notification: Performance of NFConvertDAE.convert: time 0.0002976/0.00663, allocations: 286.9 kB / 0.9845 GB, free: 14.86 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.006635, allocations: 0 / 0.9845 GB, free: 14.86 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.683e-06/0.006637, allocations: 0 / 0.9845 GB, free: 14.86 MB / 0.948 GB Notification: Performance of Transformations before backend: time 6.341e-06/0.006643, allocations: 0 / 0.9845 GB, free: 14.86 MB / 0.948 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.0007048/0.007348, allocations: 489 kB / 0.985 GB, free: 14.35 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.053e-05/0.007388, allocations: 8.031 kB / 0.985 GB, free: 14.34 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.153e-05/0.00743, allocations: 54.73 kB / 0.9851 GB, free: 14.28 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009778/0.008408, allocations: 0.644 MB / 0.9857 GB, free: 13.64 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003461/0.008754, allocations: 265 kB / 0.986 GB, free: 13.35 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.148e-05/0.008845, allocations: 139.6 kB / 0.9861 GB, free: 13.19 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.405e-05/0.008869, allocations: 12.31 kB / 0.9861 GB, free: 13.18 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000531/0.0094, allocations: 452.8 kB / 0.9865 GB, free: 12.73 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.784e-06/0.009408, allocations: 4.188 kB / 0.9865 GB, free: 12.73 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.997e-05/0.009428, allocations: 11.94 kB / 0.9865 GB, free: 12.72 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.549e-06/0.009433, allocations: 3.938 kB / 0.9866 GB, free: 12.71 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000674/0.01011, allocations: 0.6451 MB / 0.9872 GB, free: 12.07 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001126/0.01123, allocations: 1.048 MB / 0.9882 GB, free: 10.98 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003827/0.01161, allocations: 346.1 kB / 0.9885 GB, free: 10.63 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000329/0.01194, allocations: 320.5 kB / 0.9888 GB, free: 10.32 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.835e-05/0.01196, allocations: 4 kB / 0.9888 GB, free: 10.31 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.895e-05/0.01198, allocations: 34.56 kB / 0.9889 GB, free: 10.27 MB / 0.948 GB Notification: Performance of pre-optimization done (n=7): time 1.352e-06/0.01198, allocations: 0 / 0.9889 GB, free: 10.27 MB / 0.948 GB Notification: Performance of matching and sorting (n=7): time 0.001106/0.01309, allocations: 0.9731 MB / 0.9898 GB, free: 9.289 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.733e-05/0.01313, allocations: 59.39 kB / 0.9899 GB, free: 9.219 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002415/0.01337, allocations: 301.8 kB / 0.9902 GB, free: 8.922 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 2.336e-05/0.01339, allocations: 25.7 kB / 0.9902 GB, free: 8.891 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 8.169e-05/0.01347, allocations: 152.2 kB / 0.9903 GB, free: 8.738 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 3.228e-05/0.0135, allocations: 23.8 kB / 0.9904 GB, free: 8.715 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.993e-05/0.01358, allocations: 73.62 kB / 0.9904 GB, free: 8.637 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 9.474e-05/0.01368, allocations: 326.8 kB / 0.9907 GB, free: 8.309 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004319/0.01411, allocations: 315.6 kB / 0.991 GB, free: 8 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003241/0.01444, allocations: 311.6 kB / 0.9913 GB, free: 7.695 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000588/0.01502, allocations: 0.5357 MB / 0.9919 GB, free: 7.156 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.01503, allocations: 0 / 0.9919 GB, free: 7.156 MB / 0.948 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0007148/0.01574, allocations: 0.6764 MB / 0.9925 GB, free: 6.473 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.969e-05/0.01576, allocations: 6.969 kB / 0.9925 GB, free: 6.469 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.01577, allocations: 0 / 0.9925 GB, free: 6.469 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.821e-05/0.01578, allocations: 0 / 0.9925 GB, free: 6.469 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002509/0.01604, allocations: 167.7 kB / 0.9927 GB, free: 6.305 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.32e-06/0.01604, allocations: 0 / 0.9927 GB, free: 6.305 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001574/0.0162, allocations: 119.8 kB / 0.9928 GB, free: 6.188 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.016e-05/0.01629, allocations: 139.7 kB / 0.9929 GB, free: 6.051 MB / 0.948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (not1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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.0001206/0.01641, allocations: 137.8 kB / 0.9931 GB, free: 5.906 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.57e-05/0.01644, allocations: 27.78 kB / 0.9931 GB, free: 5.879 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.444e-05/0.01648, allocations: 21.78 kB / 0.9931 GB, free: 5.852 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.516e-06/0.01648, allocations: 8 kB / 0.9931 GB, free: 5.844 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.01649, allocations: 0 / 0.9931 GB, free: 5.844 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/0.01649, allocations: 3.984 kB / 0.9931 GB, free: 5.84 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003264/0.01682, allocations: 383.7 kB / 0.9935 GB, free: 5.422 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.01682, allocations: 0 / 0.9935 GB, free: 5.422 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002081/0.01703, allocations: 167.7 kB / 0.9937 GB, free: 5.258 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.447e-06/0.01703, allocations: 3.938 kB / 0.9937 GB, free: 5.254 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.271e-05/0.01705, allocations: 23.97 kB / 0.9937 GB, free: 5.23 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.866e-06/0.01706, allocations: 4 kB / 0.9937 GB, free: 5.227 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.01706, allocations: 0 / 0.9937 GB, free: 5.227 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007686/0.01783, allocations: 0.772 MB / 0.9944 GB, free: 4.438 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 3.621e-05/0.01786, allocations: 23.84 kB / 0.9945 GB, free: 4.414 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.387e-05/0.01789, allocations: 0 / 0.9945 GB, free: 4.414 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001688/0.01806, allocations: 119.7 kB / 0.9946 GB, free: 4.297 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.491e-05/0.0181, allocations: 8 kB / 0.9946 GB, free: 4.289 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.524e-05/0.01819, allocations: 139.7 kB / 0.9947 GB, free: 4.152 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.0001582/0.01834, allocations: 217.2 kB / 0.9949 GB, free: 3.941 MB / 0.948 GB Notification: Performance of sort global known variables: time 6e-08/0.01834, allocations: 0 / 0.9949 GB, free: 3.941 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0002394/0.01858, allocations: 47.89 kB / 0.995 GB, free: 3.895 MB / 0.948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (not1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * 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.001019/0.0196, allocations: 1.302 MB / 0.9962 GB, free: 2.566 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0007343/0.02034, allocations: 0.6437 MB / 0.9969 GB, free: 1.922 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.02034, allocations: 0 / 0.9969 GB, free: 1.922 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0003409/0.02068, allocations: 339.5 kB / 0.9972 GB, free: 1.59 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002384/0.02092, allocations: 17.06 kB / 0.9972 GB, free: 1.574 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003946/0.02486, allocations: 4.226 MB / 1.001 GB, free: 13.27 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001032/0.02497, allocations: 140.7 kB / 1.001 GB, free: 13.11 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 0.0003176/0.02529, allocations: 388.8 kB / 1.002 GB, free: 12.72 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001465/0.02543, allocations: 112.4 kB / 1.002 GB, free: 12.61 MB / 0.9636 GB Notification: Performance of SimCode: time 9.21e-07/0.02543, allocations: 0 / 1.002 GB, free: 12.61 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01793/0.04336, allocations: 5.935 MB / 1.008 GB, free: 6.836 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.615/6.658, allocations: 7.031 kB / 1.008 GB, free: 6.832 MB / 0.9636 GB " [Timeout remaining time 293] (rm -f Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe ; mkfifo Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe >> ../files/Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.sim & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate_res.csv --start-time 0 --stop-time 7200 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 2.88 Buildings_12_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_NormalizedHeatFlowRate.fmu > Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_NormalizedHeatFlowRate.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable norQSta.canMelt in file Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate_res.csv. Warning: Get data of variable norQSta.canMelt from file Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate_res.csv failed! Error: Could not read variable norQSta.SOC in file Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate_res.csv. Warning: Get data of variable norQSta.SOC from file Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.602431260980666]