Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.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.0007837/0.0007837, 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.0009805/0.0009805, allocations: 165.9 kB / 22.46 MB, free: 2.105 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.8809/0.8809, allocations: 177.1 MB / 202.8 MB, free: 5.746 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.723/1.723, allocations: 377.8 MB / 0.6221 GB, free: 8.668 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.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp,fileNamePrefix="Buildings_12_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_dp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp,fileNamePrefix="Buildings_12_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_dp",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.024e-06/2.024e-06, allocations: 0 / 0.9809 GB, free: 2.617 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.023e-05/2.225e-05, allocations: 4.812 kB / 0.9809 GB, free: 2.613 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp): time 0.001731/0.001753, allocations: 1.292 MB / 0.9822 GB, free: 1.312 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.0006749/0.002428, allocations: 0.5098 MB / 0.9827 GB, free: 0.8008 MB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.413e-05/0.002452, allocations: 0 / 0.9827 GB, free: 0.8008 MB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 1.786e-05/0.00247, allocations: 7.938 kB / 0.9827 GB, free: 0.793 MB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 4.092e-05/0.002511, allocations: 3.938 kB / 0.9827 GB, free: 0.7891 MB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004163/0.002928, allocations: 135.3 kB / 0.9828 GB, free: 0.6562 MB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 5.315e-05/0.002981, allocations: 15.94 kB / 0.9829 GB, free: 0.6406 MB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 4.371e-05/0.003024, allocations: 3.984 kB / 0.9829 GB, free: 0.6367 MB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 3.439e-05/0.003059, allocations: 11.92 kB / 0.9829 GB, free: 0.625 MB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 4.119e-05/0.0031, allocations: 0 / 0.9829 GB, free: 0.625 MB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 1.301e-05/0.003113, allocations: 0 / 0.9829 GB, free: 0.625 MB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002729/0.003386, allocations: 279.4 kB / 0.9831 GB, free: 360 kB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 1.389e-05/0.0034, allocations: 0 / 0.9831 GB, free: 360 kB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 1.904e-05/0.003419, allocations: 0 / 0.9831 GB, free: 360 kB / 0.9323 GB Notification: Performance of NFConvertDAE.convert: time 0.0001952/0.003614, allocations: 151.5 kB / 0.9833 GB, free: 208 kB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 2.515e-06/0.003617, allocations: 0 / 0.9833 GB, free: 208 kB / 0.9323 GB Notification: Performance of FrontEnd: time 1.133e-06/0.003618, allocations: 0 / 0.9833 GB, free: 208 kB / 0.9323 GB Notification: Performance of Transformations before backend: time 5.179e-06/0.003623, allocations: 0 / 0.9833 GB, free: 208 kB / 0.9323 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003393/0.003962, allocations: 270.1 kB / 0.9835 GB, free: 15.91 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.468e-05/0.004007, allocations: 12.03 kB / 0.9836 GB, free: 15.89 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.259e-05/0.00404, allocations: 34.69 kB / 0.9836 GB, free: 15.85 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.969e-05/0.004059, allocations: 0.9375 kB / 0.9836 GB, free: 15.85 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.298e-05/0.004132, allocations: 109.7 kB / 0.9837 GB, free: 15.72 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.174e-05/0.004144, allocations: 8.359 kB / 0.9837 GB, free: 15.71 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.516e-06/0.004152, allocations: 4.375 kB / 0.9837 GB, free: 15.71 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.495e-05/0.004237, allocations: 34.27 kB / 0.9837 GB, free: 15.67 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.174e-06/0.004245, allocations: 192 / 0.9837 GB, free: 15.67 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.925e-06/0.004253, allocations: 384 / 0.9837 GB, free: 15.67 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.331e-06/0.004259, allocations: 8.062 kB / 0.9838 GB, free: 15.66 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.358e-05/0.004282, allocations: 4 kB / 0.9838 GB, free: 15.66 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001271/0.00441, allocations: 124.8 kB / 0.9839 GB, free: 15.49 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 5.238e-05/0.004462, allocations: 30.5 kB / 0.9839 GB, free: 15.45 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.719e-05/0.004479, allocations: 4.859 kB / 0.9839 GB, free: 15.45 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.977e-05/0.004499, allocations: 4.062 kB / 0.9839 GB, free: 15.44 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.031e-05/0.004519, allocations: 30.56 kB / 0.9839 GB, free: 15.4 MB / 0.948 GB Notification: Performance of pre-optimization done (n=2): time 7.62e-07/0.00452, allocations: 0 / 0.9839 GB, free: 15.4 MB / 0.948 GB Notification: Performance of matching and sorting (n=2): time 0.0001348/0.004655, allocations: 45.64 kB / 0.984 GB, free: 15.35 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.319e-05/0.004688, allocations: 63.28 kB / 0.984 GB, free: 15.28 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.327e-05/0.004741, allocations: 93.86 kB / 0.9841 GB, free: 15.18 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.449e-05/0.004756, allocations: 29.7 kB / 0.9842 GB, free: 15.14 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 2.346e-05/0.004779, allocations: 80.39 kB / 0.9842 GB, free: 15.06 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 2.561e-05/0.004805, allocations: 7.953 kB / 0.9842 GB, free: 15.05 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.447e-05/0.004829, allocations: 17.66 kB / 0.9843 GB, free: 15.03 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 8.217e-05/0.004911, allocations: 318.8 kB / 0.9846 GB, free: 14.71 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.082e-05/0.004922, allocations: 0 / 0.9846 GB, free: 14.71 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.117e-06/0.004931, allocations: 4 kB / 0.9846 GB, free: 14.7 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.534e-05/0.004957, allocations: 8.859 kB / 0.9846 GB, free: 14.69 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.004959, allocations: 0 / 0.9846 GB, free: 14.69 MB / 0.948 GB Notification: Performance of matching and sorting (n=2) (initialization): time 4.708e-05/0.005006, allocations: 37.7 kB / 0.9846 GB, free: 14.65 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.366e-05/0.00502, allocations: 15.92 kB / 0.9846 GB, free: 14.63 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.042e-06/0.005026, allocations: 4.094 kB / 0.9846 GB, free: 14.63 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.333e-05/0.005039, allocations: 0 / 0.9846 GB, free: 14.63 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001555/0.005194, allocations: 11.94 kB / 0.9846 GB, free: 14.62 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002625/0.005457, allocations: 0.5782 MB / 0.9852 GB, free: 14.02 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.5e-05/0.005472, allocations: 3.984 kB / 0.9852 GB, free: 14.01 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.362e-06/0.005478, allocations: 4.031 kB / 0.9852 GB, free: 14.01 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 5.514e-05/0.005533, allocations: 109.8 kB / 0.9853 GB, free: 13.89 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.569e-06/0.005538, allocations: 3.938 kB / 0.9853 GB, free: 13.89 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.089e-05/0.005619, allocations: 53.03 kB / 0.9854 GB, free: 13.83 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.005621, allocations: 4 kB / 0.9854 GB, free: 13.83 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.005624, allocations: 0 / 0.9854 GB, free: 13.83 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.776e-06/0.005627, allocations: 0 / 0.9854 GB, free: 13.83 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.929e-05/0.005697, allocations: 116.8 kB / 0.9855 GB, free: 13.67 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.424e-06/0.005699, allocations: 3.938 kB / 0.9855 GB, free: 13.67 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.511e-05/0.005754, allocations: 11.98 kB / 0.9855 GB, free: 13.66 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.005756, allocations: 0 / 0.9855 GB, free: 13.66 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.799e-06/0.005761, allocations: 0 / 0.9855 GB, free: 13.66 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003265/0.006088, allocations: 0.586 MB / 0.9861 GB, free: 13.05 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.006089, allocations: 0 / 0.9861 GB, free: 13.05 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.511e-05/0.006134, allocations: 73.03 kB / 0.9861 GB, free: 12.96 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 5.791e-06/0.00614, allocations: 3.938 kB / 0.9862 GB, free: 12.95 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.073e-05/0.00615, allocations: 4 kB / 0.9862 GB, free: 12.95 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.354e-06/0.006158, allocations: 8 kB / 0.9862 GB, free: 12.94 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.162e-05/0.006169, allocations: 0 / 0.9862 GB, free: 12.94 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.964e-06/0.006171, allocations: 0 / 0.9862 GB, free: 12.94 MB / 0.948 GB Notification: Performance of sorting global known variables: time 2.283e-05/0.006194, allocations: 83.27 kB / 0.9862 GB, free: 12.86 MB / 0.948 GB Notification: Performance of sort global known variables: time 5e-08/0.006194, allocations: 224 / 0.9862 GB, free: 12.86 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001347/0.006329, allocations: 15.88 kB / 0.9863 GB, free: 12.84 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002954/0.006624, allocations: 0.6167 MB / 0.9869 GB, free: 12.2 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0001436/0.006768, allocations: 19.98 kB / 0.9869 GB, free: 12.18 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.006769, allocations: 0 / 0.9869 GB, free: 12.18 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 3.153e-05/0.006801, allocations: 15.98 kB / 0.9869 GB, free: 12.16 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001177/0.006919, allocations: 0 / 0.9869 GB, free: 12.16 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004381/0.007357, allocations: 138.5 kB / 0.987 GB, free: 11.99 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.96e-05/0.007396, allocations: 59.34 kB / 0.9871 GB, free: 11.91 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 1.798e-05/0.007414, allocations: 0 / 0.9871 GB, free: 11.91 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.791e-05/0.007442, allocations: 12.5 kB / 0.9871 GB, free: 11.9 MB / 0.948 GB Notification: Performance of SimCode: time 1.373e-06/0.007444, allocations: 0 / 0.9871 GB, free: 11.9 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01405/0.02149, allocations: 1.948 MB / 0.989 GB, free: 10.11 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.115/7.136, allocations: 3.062 kB / 0.989 GB, free: 10.11 MB / 0.948 GB " [Timeout remaining time 293] (rm -f Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe ; mkfifo Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe >> ../files/Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.sim & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_12_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_dp.fmu > Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_dp.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.259133918210864]