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.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001847/0.001847, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002037/0.002037, allocations: 195.2 kB / 16.54 MB, free: 6.672 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.389/1.389, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.811/2.811, allocations: 469.4 MB / 0.742 GB, free: 7.695 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001348/0.001348, allocations: 67.42 kB / 0.9083 GB, free: 34.49 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2784/0.2798, allocations: 159.1 MB / 1.064 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002376/0.2822, allocations: 1.259 MB / 1.065 GB, free: 13.25 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0009325/0.2832, allocations: 0.5854 MB / 1.065 GB, free: 12.66 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.496e-05/0.2832, allocations: 0 / 1.065 GB, free: 12.66 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.897e-05/0.2832, allocations: 0 / 1.065 GB, free: 12.66 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.728e-05/0.2833, allocations: 7.938 kB / 1.065 GB, free: 12.65 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007229/0.284, allocations: 135.5 kB / 1.066 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 5.362e-05/0.2841, allocations: 7.938 kB / 1.066 GB, free: 12.51 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.678e-05/0.2842, allocations: 4 kB / 1.066 GB, free: 12.51 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 2.182e-05/0.2842, allocations: 7.984 kB / 1.066 GB, free: 12.5 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 4.229e-05/0.2842, allocations: 11.92 kB / 1.066 GB, free: 12.49 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.459e-05/0.2843, allocations: 7.938 kB / 1.066 GB, free: 12.48 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000503/0.2848, allocations: 339.3 kB / 1.066 GB, free: 12.15 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.016e-05/0.2848, allocations: 0 / 1.066 GB, free: 12.15 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.265e-05/0.2848, allocations: 7.984 kB / 1.066 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002626/0.2851, allocations: 139.9 kB / 1.066 GB, free: 12 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.2851, allocations: 4 kB / 1.066 GB, free: 12 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.413e-06/0.2851, allocations: 0 / 1.066 GB, free: 12 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.318e-06/0.2851, allocations: 0 / 1.066 GB, free: 12 MB / 0.8262 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.000348/0.2855, allocations: 347.5 kB / 1.066 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.524e-05/0.2855, allocations: 8.031 kB / 1.066 GB, free: 11.6 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.771e-05/0.2856, allocations: 38.73 kB / 1.066 GB, free: 11.55 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.44e-05/0.2856, allocations: 4.938 kB / 1.066 GB, free: 11.55 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.532e-05/0.2857, allocations: 160.4 kB / 1.067 GB, free: 11.36 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.157e-06/0.2857, allocations: 384 / 1.067 GB, free: 11.36 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.152e-06/0.2857, allocations: 384 / 1.067 GB, free: 11.36 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.861e-05/0.2858, allocations: 34.2 kB / 1.067 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.108e-06/0.2858, allocations: 7.938 kB / 1.067 GB, free: 11.31 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.793e-06/0.2858, allocations: 3.938 kB / 1.067 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.378e-06/0.2858, allocations: 0 / 1.067 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.611e-05/0.2859, allocations: 7.984 kB / 1.067 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001399/0.286, allocations: 153.6 kB / 1.067 GB, free: 11.1 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 4.996e-05/0.2861, allocations: 26.58 kB / 1.067 GB, free: 11.06 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.938e-05/0.2861, allocations: 12.91 kB / 1.067 GB, free: 11.05 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.772e-05/0.2861, allocations: 7.938 kB / 1.067 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.153e-05/0.2861, allocations: 30.56 kB / 1.067 GB, free: 11 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=2): time 1.102e-06/0.2861, allocations: 0 / 1.067 GB, free: 11 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2): time 0.0001418/0.2863, allocations: 45.64 kB / 1.067 GB, free: 10.95 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.222e-05/0.2863, allocations: 51.41 kB / 1.067 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.591e-05/0.2864, allocations: 93.84 kB / 1.067 GB, free: 10.79 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.177e-05/0.2864, allocations: 25.7 kB / 1.067 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 2.561e-05/0.2864, allocations: 88.39 kB / 1.067 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.239e-05/0.2865, allocations: 7.906 kB / 1.067 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.661e-05/0.2865, allocations: 9.719 kB / 1.067 GB, free: 10.64 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 8.996e-05/0.2866, allocations: 314.8 kB / 1.068 GB, free: 10.32 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.102e-05/0.2866, allocations: 0 / 1.068 GB, free: 10.32 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.462e-05/0.2866, allocations: 15.92 kB / 1.068 GB, free: 10.31 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.598e-05/0.2867, allocations: 8.859 kB / 1.068 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.2867, allocations: 0 / 1.068 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.243e-05/0.2867, allocations: 41.77 kB / 1.068 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.439e-05/0.2868, allocations: 7.938 kB / 1.068 GB, free: 10.24 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.84e-06/0.2868, allocations: 8 kB / 1.068 GB, free: 10.23 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.068e-05/0.2868, allocations: 0 / 1.068 GB, free: 10.23 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001504/0.2869, allocations: 15.92 kB / 1.068 GB, free: 10.22 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003291/0.2873, allocations: 0.5821 MB / 1.068 GB, free: 9.613 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.843e-05/0.2873, allocations: 128 / 1.068 GB, free: 9.613 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.829e-06/0.2873, allocations: 4 kB / 1.068 GB, free: 9.609 MB / 0.8262 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.016e-05/0.2874, allocations: 114.3 kB / 1.068 GB, free: 9.488 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.995e-06/0.2874, allocations: 0 / 1.068 GB, free: 9.488 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.521e-05/0.2875, allocations: 44.81 kB / 1.068 GB, free: 9.441 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.2875, allocations: 3.984 kB / 1.068 GB, free: 9.438 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.2875, allocations: 0 / 1.068 GB, free: 9.438 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.2876, allocations: 0 / 1.068 GB, free: 9.438 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001003/0.2877, allocations: 165.6 kB / 1.069 GB, free: 9.227 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.2877, allocations: 3.938 kB / 1.069 GB, free: 9.223 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.105e-05/0.2878, allocations: 11.98 kB / 1.069 GB, free: 9.211 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.375e-06/0.2878, allocations: 0 / 1.069 GB, free: 9.211 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.29e-06/0.2878, allocations: 0 / 1.069 GB, free: 9.211 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002656/0.288, allocations: 0.582 MB / 1.069 GB, free: 8.605 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.2881, allocations: 3.938 kB / 1.069 GB, free: 8.602 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.907e-05/0.2881, allocations: 73.19 kB / 1.069 GB, free: 8.512 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.25e-05/0.2882, allocations: 77.11 kB / 1.069 GB, free: 8.418 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.077e-05/0.2882, allocations: 0 / 1.069 GB, free: 8.418 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.443e-05/0.2882, allocations: 0 / 1.069 GB, free: 8.418 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.544e-05/0.2882, allocations: 11.94 kB / 1.069 GB, free: 8.406 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.294e-06/0.2882, allocations: 0 / 1.069 GB, free: 8.406 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 2.819e-05/0.2883, allocations: 75.28 kB / 1.069 GB, free: 8.332 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2883, allocations: 4.125 kB / 1.069 GB, free: 8.328 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0001983/0.2885, allocations: 15.94 kB / 1.069 GB, free: 8.312 MB / 0.8262 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.0004457/0.2889, allocations: 0.6008 MB / 1.07 GB, free: 7.68 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001804/0.2891, allocations: 31.95 kB / 1.07 GB, free: 7.648 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.2891, allocations: 0 / 1.07 GB, free: 7.648 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.443e-05/0.2892, allocations: 11.98 kB / 1.07 GB, free: 7.637 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001566/0.2894, allocations: 9.031 kB / 1.07 GB, free: 7.629 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005287/0.2899, allocations: 146 kB / 1.07 GB, free: 7.449 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002099/0.2902, allocations: 0.6729 MB / 1.071 GB, free: 6.75 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 1.861e-05/0.2902, allocations: 8.109 kB / 1.071 GB, free: 6.742 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.254e-05/0.2902, allocations: 7.438 kB / 1.071 GB, free: 6.734 MB / 0.8262 GB Notification: Performance of SimCode: time 2.5e-07/0.2902, allocations: 0 / 1.071 GB, free: 6.734 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01717/0.3074, allocations: 1.36 MB / 1.072 GB, free: 5.574 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.75/11.05, allocations: 15.27 kB / 1.072 GB, free: 5.562 MB / 0.8262 GB (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 50 --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) 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) Reference file matches