Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.007131/0.007131, allocations: 97.41 kB / 15.73 MB, free: 6.039 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.002051/0.002051, allocations: 195.8 kB / 16.67 MB, free: 5.961 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.425/1.425, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.856/2.856, allocations: 469.8 MB / 0.7425 GB, free: 7.371 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00325/0.00325, allocations: 67.89 kB / 1.065 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3191/0.3223, allocations: 159.1 MB / 1.22 GB, free: 14.35 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002358/0.3247, allocations: 1.255 MB / 1.221 GB, free: 13.07 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0009941/0.3257, allocations: 0.5856 MB / 1.222 GB, free: 12.49 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.3e-05/0.3258, allocations: 0 / 1.222 GB, free: 12.49 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 1.316e-05/0.3258, allocations: 0 / 1.222 GB, free: 12.49 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 4.239e-05/0.3259, allocations: 7.922 kB / 1.222 GB, free: 12.48 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005207/0.3264, allocations: 143.2 kB / 1.222 GB, free: 12.34 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 4.096e-05/0.3264, allocations: 11.92 kB / 1.222 GB, free: 12.33 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 3.68e-05/0.3265, allocations: 4 kB / 1.222 GB, free: 12.33 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 1.66e-05/0.3265, allocations: 3.938 kB / 1.222 GB, free: 12.32 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 4.243e-05/0.3265, allocations: 8 kB / 1.222 GB, free: 12.32 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 9.117e-06/0.3266, allocations: 0 / 1.222 GB, free: 12.32 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005657/0.3271, allocations: 343.3 kB / 1.222 GB, free: 11.98 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 8.205e-06/0.3271, allocations: 0 / 1.222 GB, free: 11.98 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 2.101e-05/0.3272, allocations: 15.92 kB / 1.222 GB, free: 11.96 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002713/0.3275, allocations: 139.6 kB / 1.223 GB, free: 11.83 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.3275, allocations: 0 / 1.223 GB, free: 11.83 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.232e-06/0.3275, allocations: 0 / 1.223 GB, free: 11.83 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 3.988e-06/0.3275, allocations: 0 / 1.223 GB, free: 11.83 MB / 0.9825 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.0003983/0.3279, allocations: 347.2 kB / 1.223 GB, free: 11.44 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.721e-05/0.3279, allocations: 8.031 kB / 1.223 GB, free: 11.43 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.221e-05/0.328, allocations: 42.69 kB / 1.223 GB, free: 11.38 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.776e-05/0.328, allocations: 0.9375 kB / 1.223 GB, free: 11.38 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001409/0.3281, allocations: 164.3 kB / 1.223 GB, free: 11.18 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.051e-06/0.3281, allocations: 4.375 kB / 1.223 GB, free: 11.18 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.799e-06/0.3282, allocations: 384 / 1.223 GB, free: 11.18 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.725e-05/0.3282, allocations: 38.19 kB / 1.223 GB, free: 11.13 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.406e-06/0.3283, allocations: 3.938 kB / 1.223 GB, free: 11.13 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.222e-06/0.3283, allocations: 0 / 1.223 GB, free: 11.13 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.052e-06/0.3283, allocations: 4 kB / 1.223 GB, free: 11.12 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.294e-05/0.3283, allocations: 3.984 kB / 1.223 GB, free: 11.12 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001683/0.3285, allocations: 153.7 kB / 1.223 GB, free: 10.92 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 4.395e-05/0.3285, allocations: 26.61 kB / 1.223 GB, free: 10.89 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.197e-05/0.3286, allocations: 12.86 kB / 1.223 GB, free: 10.87 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.554e-05/0.3286, allocations: 7.922 kB / 1.223 GB, free: 10.86 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.067e-05/0.3286, allocations: 30.56 kB / 1.223 GB, free: 10.82 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=2): time 9.02e-07/0.3286, allocations: 0 / 1.223 GB, free: 10.82 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2): time 0.0001349/0.3288, allocations: 53.58 kB / 1.223 GB, free: 10.77 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.25e-05/0.3288, allocations: 55.53 kB / 1.224 GB, free: 10.7 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.146e-05/0.3289, allocations: 93.86 kB / 1.224 GB, free: 10.6 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.565e-05/0.3289, allocations: 25.7 kB / 1.224 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 4.438e-05/0.329, allocations: 84.14 kB / 1.224 GB, free: 10.48 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.664e-05/0.329, allocations: 0 / 1.224 GB, free: 10.48 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.219e-05/0.329, allocations: 17.7 kB / 1.224 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001329/0.3292, allocations: 310.8 kB / 1.224 GB, free: 10.14 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.283e-05/0.3292, allocations: 3.938 kB / 1.224 GB, free: 10.14 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.191e-05/0.3292, allocations: 12.12 kB / 1.224 GB, free: 10.13 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.075e-05/0.3292, allocations: 8.859 kB / 1.224 GB, free: 10.12 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.3292, allocations: 0 / 1.224 GB, free: 10.12 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.287e-05/0.3293, allocations: 45.64 kB / 1.224 GB, free: 10.07 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.45e-05/0.3293, allocations: 11.94 kB / 1.224 GB, free: 10.05 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.125e-06/0.3293, allocations: 0 / 1.224 GB, free: 10.05 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.352e-05/0.3294, allocations: 0 / 1.224 GB, free: 10.05 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001336/0.3295, allocations: 8 kB / 1.224 GB, free: 10.05 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004226/0.3299, allocations: 0.59 MB / 1.225 GB, free: 9.434 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.745e-05/0.33, allocations: 0 / 1.225 GB, free: 9.434 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.703e-06/0.33, allocations: 0 / 1.225 GB, free: 9.434 MB / 0.9825 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.075e-05/0.3301, allocations: 118.3 kB / 1.225 GB, free: 9.309 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.184e-06/0.3301, allocations: 0 / 1.225 GB, free: 9.309 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001041/0.3302, allocations: 48.91 kB / 1.225 GB, free: 9.258 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.3302, allocations: 0 / 1.225 GB, free: 9.258 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.3302, allocations: 3.938 kB / 1.225 GB, free: 9.254 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-06/0.3302, allocations: 0 / 1.225 GB, free: 9.254 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001196/0.3303, allocations: 153.6 kB / 1.225 GB, free: 9.055 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.906e-06/0.3303, allocations: 3.984 kB / 1.225 GB, free: 9.051 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.973e-05/0.3304, allocations: 8 kB / 1.225 GB, free: 9.043 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.608e-06/0.3304, allocations: 4 kB / 1.225 GB, free: 9.039 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.219e-06/0.3304, allocations: 0 / 1.225 GB, free: 9.039 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003587/0.3308, allocations: 0.5899 MB / 1.226 GB, free: 8.426 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.387e-06/0.3308, allocations: 3.938 kB / 1.226 GB, free: 8.422 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001127/0.3309, allocations: 65.09 kB / 1.226 GB, free: 8.34 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.097e-05/0.331, allocations: 77.11 kB / 1.226 GB, free: 8.246 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.887e-06/0.331, allocations: 0 / 1.226 GB, free: 8.246 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.46e-05/0.331, allocations: 4 kB / 1.226 GB, free: 8.242 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.852e-05/0.3311, allocations: 16.05 kB / 1.226 GB, free: 8.227 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.575e-06/0.3311, allocations: 0 / 1.226 GB, free: 8.227 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 3.963e-05/0.3311, allocations: 83.22 kB / 1.226 GB, free: 8.145 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.41e-07/0.3311, allocations: 0 / 1.226 GB, free: 8.145 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0001958/0.3313, allocations: 7.938 kB / 1.226 GB, free: 8.137 MB / 0.9825 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.00045/0.3318, allocations: 0.6125 MB / 1.226 GB, free: 7.492 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001539/0.3319, allocations: 19.94 kB / 1.226 GB, free: 7.473 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.3319, allocations: 0 / 1.226 GB, free: 7.473 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 9.29e-05/0.332, allocations: 15.98 kB / 1.226 GB, free: 7.457 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001313/0.3322, allocations: 6.844 kB / 1.226 GB, free: 7.453 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003965/0.3326, allocations: 147.6 kB / 1.227 GB, free: 7.27 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003038/0.3329, allocations: 0.6729 MB / 1.227 GB, free: 6.57 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 1.552e-05/0.3329, allocations: 4 kB / 1.227 GB, free: 6.566 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.952e-05/0.333, allocations: 7.438 kB / 1.227 GB, free: 6.559 MB / 0.9825 GB Notification: Performance of SimCode: time 2.41e-07/0.333, allocations: 0 / 1.227 GB, free: 6.559 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02286/0.3558, allocations: 1.398 MB / 1.229 GB, free: 5.387 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.01/11.37, allocations: 12.19 kB / 1.229 GB, free: 5.379 MB / 0.9825 GB (rm -f Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; mkfifo Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe >> ../files/Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_11_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow.fmu > Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches