Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.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/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,fileNamePrefix="Buildings_9_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_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow",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.008666/0.008666, allocations: 99.45 kB / 15.73 MB, free: 6.059 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.002174/0.002173, allocations: 193.5 kB / 16.67 MB, free: 5.969 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.329/1.329, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.256/2.256, allocations: 390.3 MB / 0.6648 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001463/0.001463, allocations: 67.89 kB / 0.9504 GB, free: 8.117 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7882/0.7897, allocations: 140.4 MB / 1.087 GB, free: 5.258 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002826/0.7926, allocations: 1.264 MB / 1.089 GB, free: 4.379 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0009836/0.7936, allocations: 0.5842 MB / 1.089 GB, free: 3.973 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.478e-05/0.7937, allocations: 0 / 1.089 GB, free: 3.973 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.067e-05/0.7937, allocations: 0.7969 kB / 1.089 GB, free: 3.973 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.681e-05/0.7938, allocations: 12.98 kB / 1.089 GB, free: 3.961 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006559/0.7945, allocations: 138.5 kB / 1.089 GB, free: 3.898 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 6.266e-05/0.7945, allocations: 6.859 kB / 1.089 GB, free: 3.898 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.79e-05/0.7946, allocations: 5.641 kB / 1.089 GB, free: 3.895 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 1.988e-05/0.7946, allocations: 6.797 kB / 1.089 GB, free: 3.891 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.65e-05/0.7947, allocations: 7.578 kB / 1.089 GB, free: 3.887 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.356e-05/0.7947, allocations: 1.062 kB / 1.089 GB, free: 3.887 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006759/0.7954, allocations: 340.3 kB / 1.09 GB, free: 3.789 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.341e-05/0.7954, allocations: 4.516 kB / 1.09 GB, free: 3.785 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.017e-05/0.7954, allocations: 6.797 kB / 1.09 GB, free: 3.781 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003411/0.7958, allocations: 142.7 kB / 1.09 GB, free: 3.738 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.7958, allocations: 0 / 1.09 GB, free: 3.738 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.645e-06/0.7958, allocations: 1.156 kB / 1.09 GB, free: 3.738 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.681e-06/0.7958, allocations: 0 / 1.09 GB, free: 3.738 MB / 0.8575 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.0003692/0.7962, allocations: 356.8 kB / 1.09 GB, free: 3.355 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.831e-05/0.7962, allocations: 9.672 kB / 1.09 GB, free: 3.355 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.077e-05/0.7963, allocations: 34.75 kB / 1.09 GB, free: 3.312 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.739e-05/0.7963, allocations: 7.109 kB / 1.09 GB, free: 3.309 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.371e-05/0.7964, allocations: 169.9 kB / 1.09 GB, free: 3.105 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.17e-05/0.7964, allocations: 1.375 kB / 1.09 GB, free: 3.105 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.406e-06/0.7964, allocations: 1.188 kB / 1.09 GB, free: 3.105 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.98e-05/0.7965, allocations: 35.58 kB / 1.09 GB, free: 3.07 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/0.7966, allocations: 3.938 kB / 1.091 GB, free: 3.066 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.346e-06/0.7966, allocations: 0 / 1.091 GB, free: 3.066 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.132e-06/0.7966, allocations: 1.672 kB / 1.091 GB, free: 3.066 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.249e-05/0.7966, allocations: 7.766 kB / 1.091 GB, free: 3.062 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001401/0.7968, allocations: 149.9 kB / 1.091 GB, free: 2.871 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 5.493e-05/0.7968, allocations: 29.38 kB / 1.091 GB, free: 2.84 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.867e-05/0.7969, allocations: 7.672 kB / 1.091 GB, free: 2.832 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.405e-05/0.7969, allocations: 1.578 kB / 1.091 GB, free: 2.832 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.813e-05/0.7969, allocations: 32.3 kB / 1.091 GB, free: 2.793 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 8.82e-07/0.7969, allocations: 0 / 1.091 GB, free: 2.793 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.000163/0.7971, allocations: 48.47 kB / 1.091 GB, free: 2.75 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.77e-05/0.7971, allocations: 56.41 kB / 1.091 GB, free: 2.684 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.507e-05/0.7972, allocations: 93.22 kB / 1.091 GB, free: 2.586 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.004e-05/0.7972, allocations: 27.44 kB / 1.091 GB, free: 2.555 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 1.858e-05/0.7972, allocations: 84.14 kB / 1.091 GB, free: 2.469 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.052e-05/0.7973, allocations: 5.734 kB / 1.091 GB, free: 2.465 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.823e-05/0.7973, allocations: 12.61 kB / 1.091 GB, free: 2.449 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.845e-05/0.7974, allocations: 313.5 kB / 1.091 GB, free: 2.137 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.547e-05/0.7974, allocations: 10.12 kB / 1.091 GB, free: 2.129 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.054e-05/0.7974, allocations: 2.938 kB / 1.091 GB, free: 2.129 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.009e-05/0.7974, allocations: 10.7 kB / 1.091 GB, free: 2.121 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.7974, allocations: 0 / 1.091 GB, free: 2.121 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.945e-05/0.7975, allocations: 39.81 kB / 1.091 GB, free: 2.086 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.602e-05/0.7975, allocations: 9.219 kB / 1.091 GB, free: 2.082 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.59e-06/0.7975, allocations: 3.938 kB / 1.091 GB, free: 2.078 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.504e-05/0.7975, allocations: 5.438 kB / 1.091 GB, free: 2.074 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001738/0.7977, allocations: 13.61 kB / 1.091 GB, free: 2.07 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002544/0.798, allocations: 0.58 MB / 1.092 GB, free: 1.484 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.916e-05/0.798, allocations: 0 / 1.092 GB, free: 1.484 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.552e-06/0.798, allocations: 1.891 kB / 1.092 GB, free: 1.484 MB / 0.8575 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.452e-05/0.7981, allocations: 111.8 kB / 1.092 GB, free: 1.367 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.646e-06/0.7981, allocations: 9.359 kB / 1.092 GB, free: 1.359 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001075/0.7982, allocations: 47.62 kB / 1.092 GB, free: 1.316 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.7982, allocations: 2.172 kB / 1.092 GB, free: 1.316 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.7982, allocations: 0 / 1.092 GB, free: 1.316 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.7983, allocations: 3.984 kB / 1.092 GB, free: 1.312 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.16e-05/0.7983, allocations: 155.7 kB / 1.092 GB, free: 1.117 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.7983, allocations: 0.6562 kB / 1.092 GB, free: 1.117 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.124e-05/0.7984, allocations: 9.781 kB / 1.092 GB, free: 1.117 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.557e-06/0.7984, allocations: 0.5156 kB / 1.092 GB, free: 1.117 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.823e-06/0.7984, allocations: 1.125 kB / 1.092 GB, free: 1.117 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003017/0.7988, allocations: 0.5917 MB / 1.093 GB, free: 16.52 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.045e-06/0.7988, allocations: 3.938 kB / 1.093 GB, free: 16.52 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.338e-05/0.7989, allocations: 64.8 kB / 1.093 GB, free: 16.45 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 3.855e-05/0.7989, allocations: 79.72 kB / 1.093 GB, free: 16.35 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.272e-05/0.7989, allocations: 4.125 kB / 1.093 GB, free: 16.35 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.77e-05/0.7989, allocations: 5.938 kB / 1.093 GB, free: 16.34 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.342e-05/0.799, allocations: 5.859 kB / 1.093 GB, free: 16.34 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.455e-06/0.799, allocations: 0 / 1.093 GB, free: 16.34 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 3.572e-05/0.799, allocations: 77.8 kB / 1.093 GB, free: 16.27 MB / 0.8731 GB Notification: Performance of sort global known variables: time 2.61e-07/0.799, allocations: 1.125 kB / 1.093 GB, free: 16.27 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0002364/0.7993, allocations: 11 kB / 1.093 GB, free: 16.26 MB / 0.8731 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.000405/0.7997, allocations: 0.6138 MB / 1.094 GB, free: 15.66 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0001901/0.7999, allocations: 20.28 kB / 1.094 GB, free: 15.65 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.7999, allocations: 0 / 1.094 GB, free: 15.65 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 8.631e-05/0.8, allocations: 13.81 kB / 1.094 GB, free: 15.65 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001524/0.8001, allocations: 5.781 kB / 1.094 GB, free: 15.65 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005197/0.8007, allocations: 146.4 kB / 1.094 GB, free: 15.49 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000252/0.8009, allocations: 0.674 MB / 1.095 GB, free: 14.79 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 2.006e-05/0.801, allocations: 0.9062 kB / 1.095 GB, free: 14.79 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.057e-05/0.801, allocations: 8.906 kB / 1.095 GB, free: 14.79 MB / 0.8731 GB Notification: Performance of SimCode: time 6.72e-07/0.801, allocations: 0 / 1.095 GB, free: 14.79 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02039/0.8214, allocations: 1.39 MB / 1.096 GB, free: 14.42 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.53/12.35, allocations: 7.891 kB / 1.096 GB, free: 14.41 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow.fmu > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches