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.001096/0.001096, 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.001086/0.001086, allocations: 169.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.8769/0.8769, allocations: 177.1 MB / 202.8 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] 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 1.748/1.748, allocations: 389 MB / 0.633 GB, free: 12.69 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/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: Performance of FrontEnd - loaded program: time 2.554e-06/2.554e-06, allocations: 3.984 kB / 0.9997 GB, free: 13.49 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.994e-05/2.249e-05, allocations: 2.281 kB / 0.9997 GB, free: 13.48 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.001609/0.001632, allocations: 1.267 MB / 1.001 GB, free: 12.21 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.0006291/0.002261, allocations: 0.5183 MB / 1.001 GB, free: 11.69 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.895e-05/0.00228, allocations: 8 kB / 1.001 GB, free: 11.68 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 1.509e-05/0.002295, allocations: 3.938 kB / 1.001 GB, free: 11.68 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 3.009e-05/0.002325, allocations: 0 / 1.001 GB, free: 11.68 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003607/0.002686, allocations: 139.3 kB / 1.002 GB, free: 11.54 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 3.805e-05/0.002724, allocations: 7.938 kB / 1.002 GB, free: 11.53 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 3.297e-05/0.002757, allocations: 3.938 kB / 1.002 GB, free: 11.53 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 2.567e-05/0.002782, allocations: 8 kB / 1.002 GB, free: 11.52 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 3.552e-05/0.002818, allocations: 7.984 kB / 1.002 GB, free: 11.51 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 1.132e-05/0.002829, allocations: 11.92 kB / 1.002 GB, free: 11.5 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002574/0.003087, allocations: 263.4 kB / 1.002 GB, free: 11.24 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 1.019e-05/0.003097, allocations: 0 / 1.002 GB, free: 11.24 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 1.344e-05/0.00311, allocations: 4 kB / 1.002 GB, free: 11.24 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0001605/0.003271, allocations: 151.5 kB / 1.002 GB, free: 11.09 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 1.432e-06/0.003272, allocations: 0 / 1.002 GB, free: 11.09 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.152e-06/0.003273, allocations: 4 kB / 1.002 GB, free: 11.09 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 3.236e-06/0.003277, allocations: 0 / 1.002 GB, free: 11.09 MB / 0.9636 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.0002514/0.003528, allocations: 272.3 kB / 1.002 GB, free: 10.79 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.165e-05/0.00356, allocations: 8.75 kB / 1.002 GB, free: 10.78 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.354e-05/0.003583, allocations: 34.73 kB / 1.002 GB, free: 10.74 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.642e-05/0.0036, allocations: 8.938 kB / 1.002 GB, free: 10.73 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.035e-05/0.00366, allocations: 109.7 kB / 1.002 GB, free: 10.6 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.013e-06/0.003667, allocations: 384 / 1.002 GB, free: 10.6 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.989e-06/0.003672, allocations: 384 / 1.002 GB, free: 10.6 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.327e-05/0.003735, allocations: 30.27 kB / 1.002 GB, free: 10.56 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.41e-06/0.003741, allocations: 192 / 1.002 GB, free: 10.56 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.973e-06/0.003748, allocations: 4.375 kB / 1.002 GB, free: 10.56 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.449e-06/0.003752, allocations: 8.125 kB / 1.002 GB, free: 10.55 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.052e-05/0.003773, allocations: 7.922 kB / 1.002 GB, free: 10.54 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001041/0.003877, allocations: 116.8 kB / 1.003 GB, free: 10.39 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 3.958e-05/0.003916, allocations: 34.59 kB / 1.003 GB, free: 10.34 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.223e-05/0.003928, allocations: 8.859 kB / 1.003 GB, free: 10.33 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 1.413e-05/0.003943, allocations: 0 / 1.003 GB, free: 10.33 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.723e-05/0.00396, allocations: 38.55 kB / 1.003 GB, free: 10.29 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=2): time 5.91e-07/0.00396, allocations: 0 / 1.003 GB, free: 10.29 MB / 0.9636 GB Notification: Performance of matching and sorting (n=2): time 0.0001005/0.004061, allocations: 41.64 kB / 1.003 GB, free: 10.24 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.43e-05/0.004085, allocations: 55.34 kB / 1.003 GB, free: 10.17 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.209e-05/0.004127, allocations: 93.86 kB / 1.003 GB, free: 10.07 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 9.268e-06/0.004137, allocations: 29.95 kB / 1.003 GB, free: 10.04 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 2.102e-05/0.004158, allocations: 88.12 kB / 1.003 GB, free: 9.945 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 1.877e-05/0.004176, allocations: 7.953 kB / 1.003 GB, free: 9.938 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.94e-05/0.004196, allocations: 9.719 kB / 1.003 GB, free: 9.922 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 7.841e-05/0.004274, allocations: 314.8 kB / 1.003 GB, free: 9.605 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.726e-06/0.004283, allocations: 8 kB / 1.003 GB, free: 9.598 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.912e-06/0.004289, allocations: 4 kB / 1.003 GB, free: 9.594 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.005e-05/0.004309, allocations: 8.859 kB / 1.003 GB, free: 9.582 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.00431, allocations: 0 / 1.003 GB, free: 9.582 MB / 0.9636 GB Notification: Performance of matching and sorting (n=2) (initialization): time 3.694e-05/0.004347, allocations: 45.62 kB / 1.003 GB, free: 9.531 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.004e-05/0.004357, allocations: 12.03 kB / 1.003 GB, free: 9.52 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.987e-06/0.004361, allocations: 0 / 1.003 GB, free: 9.52 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.327e-06/0.004371, allocations: 4 kB / 1.003 GB, free: 9.516 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001148/0.004485, allocations: 15.92 kB / 1.003 GB, free: 9.5 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002246/0.00471, allocations: 0.5782 MB / 1.004 GB, free: 8.898 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.035e-05/0.00472, allocations: 0 / 1.004 GB, free: 8.898 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.208e-06/0.004724, allocations: 0 / 1.004 GB, free: 8.898 MB / 0.9636 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 4.802e-05/0.004772, allocations: 109.9 kB / 1.004 GB, free: 8.781 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.508e-06/0.004777, allocations: 11.98 kB / 1.004 GB, free: 8.77 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.226e-05/0.004849, allocations: 52.94 kB / 1.004 GB, free: 8.707 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.383e-06/0.004851, allocations: 0 / 1.004 GB, free: 8.707 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.004854, allocations: 0 / 1.004 GB, free: 8.707 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.415e-06/0.004856, allocations: 0 / 1.004 GB, free: 8.707 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.792e-05/0.004914, allocations: 120.8 kB / 1.004 GB, free: 8.547 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.004916, allocations: 3.938 kB / 1.004 GB, free: 8.543 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.731e-05/0.004953, allocations: 8 kB / 1.004 GB, free: 8.535 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.052e-06/0.004954, allocations: 0 / 1.004 GB, free: 8.535 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.33e-06/0.00496, allocations: 4 kB / 1.004 GB, free: 8.531 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001718/0.005131, allocations: 0.5937 MB / 1.005 GB, free: 7.914 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-07/0.005132, allocations: 0 / 1.005 GB, free: 7.914 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.695e-05/0.005179, allocations: 65.11 kB / 1.005 GB, free: 7.832 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 4.388e-06/0.005183, allocations: 0 / 1.005 GB, free: 7.832 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.318e-06/0.005193, allocations: 3.984 kB / 1.005 GB, free: 7.828 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.152e-06/0.005199, allocations: 0 / 1.005 GB, free: 7.828 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.857e-06/0.005208, allocations: 0 / 1.005 GB, free: 7.828 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.385e-06/0.00521, allocations: 4 kB / 1.005 GB, free: 7.824 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 2.156e-05/0.005231, allocations: 79.28 kB / 1.005 GB, free: 7.746 MB / 0.9636 GB Notification: Performance of sort global known variables: time 5e-08/0.005232, allocations: 4.219 kB / 1.005 GB, free: 7.742 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001304/0.005362, allocations: 15.88 kB / 1.005 GB, free: 7.727 MB / 0.9636 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.0002687/0.005631, allocations: 0.6085 MB / 1.006 GB, free: 7.09 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 9.658e-05/0.005727, allocations: 15.98 kB / 1.006 GB, free: 7.074 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.423e-06/0.005729, allocations: 4 kB / 1.006 GB, free: 7.07 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 3.394e-05/0.005763, allocations: 12 kB / 1.006 GB, free: 7.059 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.298e-05/0.005856, allocations: 160 / 1.006 GB, free: 7.059 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003053/0.006161, allocations: 154.3 kB / 1.006 GB, free: 6.867 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.966e-05/0.00619, allocations: 55.36 kB / 1.006 GB, free: 6.793 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 1.09e-05/0.006201, allocations: 0 / 1.006 GB, free: 6.793 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.632e-05/0.006218, allocations: 8.5 kB / 1.006 GB, free: 6.785 MB / 0.9636 GB Notification: Performance of SimCode: time 2.9e-07/0.006218, allocations: 3.938 kB / 1.006 GB, free: 6.781 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01314/0.01936, allocations: 1.963 MB / 1.008 GB, free: 5.012 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.127/7.146, allocations: 8.203 kB / 1.008 GB, free: 5.008 MB / 0.9636 GB " [Timeout remaining time 293] (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/jenkins/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: 11.242951327003539]