Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.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.001215/0.001215, allocations: 105.3 kB / 16.46 MB, free: 6.512 MB / 14.72 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.001294/0.001294, allocations: 208.3 kB / 19.43 MB, free: 3.648 MB / 14.72 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 1.404/1.404, allocations: 230.6 MB / 252.8 MB, free: 8.938 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.133/3.133, allocations: 0.505 GB / 0.8066 GB, free: 23.06 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_m_flow,fileNamePrefix="Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,fileNamePrefix="Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002154/0.002154, allocations: 67.27 kB / 1.172 GB, free: 17.45 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3281/0.3302, allocations: 180.2 MB / 1.348 GB, free: 9.957 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002539/0.3328, allocations: 1.273 MB / 1.349 GB, free: 8.676 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001006/0.3338, allocations: 0.5881 MB / 1.35 GB, free: 8.086 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.357e-05/0.3338, allocations: 0 / 1.35 GB, free: 8.086 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 2.047e-05/0.3338, allocations: 3.938 kB / 1.35 GB, free: 8.082 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 3.836e-05/0.3339, allocations: 0 / 1.35 GB, free: 8.082 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005604/0.3344, allocations: 137.6 kB / 1.35 GB, free: 7.949 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 5.09e-05/0.3345, allocations: 11.94 kB / 1.35 GB, free: 7.938 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 3.843e-05/0.3345, allocations: 4 kB / 1.35 GB, free: 7.934 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 1.606e-05/0.3345, allocations: 0 / 1.35 GB, free: 7.934 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 4.849e-05/0.3346, allocations: 19.91 kB / 1.35 GB, free: 7.914 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 9.358e-06/0.3346, allocations: 0 / 1.35 GB, free: 7.914 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005136/0.3351, allocations: 339.3 kB / 1.35 GB, free: 7.582 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 9.759e-06/0.3351, allocations: 0 / 1.35 GB, free: 7.582 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 2.539e-05/0.3351, allocations: 7.984 kB / 1.35 GB, free: 7.574 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0002625/0.3354, allocations: 143.9 kB / 1.35 GB, free: 7.434 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.3354, allocations: 0 / 1.35 GB, free: 7.434 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.163e-06/0.3354, allocations: 0 / 1.35 GB, free: 7.434 MB / 1.045 GB Notification: Performance of Transformations before backend: time 8.907e-06/0.3354, allocations: 4 kB / 1.35 GB, free: 7.43 MB / 1.045 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.0004083/0.3358, allocations: 355 kB / 1.351 GB, free: 7.031 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.062e-05/0.3359, allocations: 11.98 kB / 1.351 GB, free: 7.02 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.525e-05/0.3359, allocations: 34.75 kB / 1.351 GB, free: 6.977 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.454e-05/0.3359, allocations: 4.938 kB / 1.351 GB, free: 6.973 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001334/0.336, allocations: 168.4 kB / 1.351 GB, free: 6.77 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.012e-05/0.3361, allocations: 384 / 1.351 GB, free: 6.77 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.004e-05/0.3361, allocations: 384 / 1.351 GB, free: 6.77 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.681e-05/0.3362, allocations: 38.27 kB / 1.351 GB, free: 6.727 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.406e-06/0.3362, allocations: 3.938 kB / 1.351 GB, free: 6.723 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.502e-06/0.3362, allocations: 0 / 1.351 GB, free: 6.723 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.3362, allocations: 0 / 1.351 GB, free: 6.723 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.553e-05/0.3362, allocations: 7.938 kB / 1.351 GB, free: 6.715 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001647/0.3364, allocations: 157.6 kB / 1.351 GB, free: 6.512 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 5.7e-05/0.3364, allocations: 22.58 kB / 1.351 GB, free: 6.48 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.819e-05/0.3364, allocations: 4.859 kB / 1.351 GB, free: 6.473 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.329e-05/0.3365, allocations: 12.05 kB / 1.351 GB, free: 6.461 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.443e-05/0.3365, allocations: 30.56 kB / 1.351 GB, free: 6.422 MB / 1.045 GB Notification: Performance of pre-optimization done (n=2): time 9.72e-07/0.3365, allocations: 3.938 kB / 1.351 GB, free: 6.418 MB / 1.045 GB Notification: Performance of matching and sorting (n=2): time 0.0001432/0.3366, allocations: 45.58 kB / 1.351 GB, free: 6.367 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.447e-05/0.3367, allocations: 51.41 kB / 1.351 GB, free: 6.305 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.284e-05/0.3367, allocations: 97.84 kB / 1.351 GB, free: 6.199 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 1.369e-05/0.3368, allocations: 25.95 kB / 1.351 GB, free: 6.168 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 3.834e-05/0.3368, allocations: 84.14 kB / 1.351 GB, free: 6.082 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.621e-05/0.3368, allocations: 11.95 kB / 1.351 GB, free: 6.07 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.743e-05/0.3368, allocations: 9.719 kB / 1.351 GB, free: 6.055 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001244/0.337, allocations: 310.8 kB / 1.352 GB, free: 5.742 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.111e-05/0.337, allocations: 4 kB / 1.352 GB, free: 5.738 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.076e-05/0.337, allocations: 4 kB / 1.352 GB, free: 5.734 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.967e-05/0.337, allocations: 16.84 kB / 1.352 GB, free: 5.715 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.337, allocations: 4.062 kB / 1.352 GB, free: 5.711 MB / 1.045 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.845e-05/0.3371, allocations: 41.64 kB / 1.352 GB, free: 5.664 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.519e-05/0.3371, allocations: 7.938 kB / 1.352 GB, free: 5.656 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.677e-06/0.3371, allocations: 0 / 1.352 GB, free: 5.656 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.657e-05/0.3371, allocations: 4 kB / 1.352 GB, free: 5.652 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001427/0.3373, allocations: 7.984 kB / 1.352 GB, free: 5.645 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003986/0.3377, allocations: 0.586 MB / 1.352 GB, free: 5.035 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.77e-05/0.3377, allocations: 4.125 kB / 1.352 GB, free: 5.031 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.949e-06/0.3377, allocations: 0 / 1.352 GB, free: 5.031 MB / 1.045 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 8.262e-05/0.3378, allocations: 109.8 kB / 1.352 GB, free: 4.914 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.917e-06/0.3378, allocations: 4 kB / 1.352 GB, free: 4.91 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001064/0.3379, allocations: 52.73 kB / 1.352 GB, free: 4.848 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.3379, allocations: 0 / 1.352 GB, free: 4.848 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.3379, allocations: 0 / 1.352 GB, free: 4.848 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.934e-06/0.3379, allocations: 4.031 kB / 1.352 GB, free: 4.844 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001164/0.338, allocations: 157.6 kB / 1.353 GB, free: 4.641 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.338, allocations: 0 / 1.353 GB, free: 4.641 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.852e-05/0.3381, allocations: 11.98 kB / 1.353 GB, free: 4.629 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.3381, allocations: 3.938 kB / 1.353 GB, free: 4.625 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.16e-06/0.3381, allocations: 0 / 1.353 GB, free: 4.625 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003306/0.3384, allocations: 0.5821 MB / 1.353 GB, free: 4.02 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.237e-06/0.3384, allocations: 3.938 kB / 1.353 GB, free: 4.016 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.924e-05/0.3385, allocations: 73.2 kB / 1.353 GB, free: 3.926 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 4.057e-05/0.3386, allocations: 77.11 kB / 1.353 GB, free: 3.832 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.928e-06/0.3386, allocations: 0 / 1.353 GB, free: 3.832 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.604e-05/0.3386, allocations: 4 kB / 1.353 GB, free: 3.828 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.512e-05/0.3386, allocations: 3.938 kB / 1.353 GB, free: 3.824 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.262e-06/0.3386, allocations: 8 kB / 1.353 GB, free: 3.816 MB / 1.045 GB Notification: Performance of sorting global known variables: time 3.827e-05/0.3386, allocations: 79.31 kB / 1.353 GB, free: 3.738 MB / 1.045 GB Notification: Performance of sort global known variables: time 6e-08/0.3386, allocations: 0 / 1.353 GB, free: 3.738 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.000194/0.3388, allocations: 15.88 kB / 1.353 GB, free: 3.723 MB / 1.045 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.0004386/0.3393, allocations: 0.6132 MB / 1.354 GB, free: 3.078 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0001625/0.3394, allocations: 24.11 kB / 1.354 GB, free: 3.055 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.3394, allocations: 0 / 1.354 GB, free: 3.055 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 9.712e-05/0.3395, allocations: 15.98 kB / 1.354 GB, free: 3.039 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001315/0.3397, allocations: 3.938 kB / 1.354 GB, free: 3.035 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000467/0.3401, allocations: 139.5 kB / 1.354 GB, free: 2.859 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002723/0.3404, allocations: 0.6729 MB / 1.355 GB, free: 2.16 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 1.524e-05/0.3404, allocations: 4.125 kB / 1.355 GB, free: 2.156 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.129e-05/0.3404, allocations: 7.438 kB / 1.355 GB, free: 2.152 MB / 1.045 GB Notification: Performance of SimCode: time 3.21e-07/0.3404, allocations: 0 / 1.355 GB, free: 2.152 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02522/0.3657, allocations: 1.403 MB / 1.356 GB, free: 0.9766 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.44/11.81, allocations: 2.719 kB / 1.356 GB, free: 0.9766 MB / 1.045 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow_res.csv --start-time 0 --stop-time 1 --timeout 800 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow.fmu > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.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: 18.27197947911918]