Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.00152/0.00152, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001579/0.001579, allocations: 187.7 kB / 16.13 MB, free: 6.645 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.349/1.349, allocations: 222.9 MB / 239.8 MB, free: 4.496 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.573/2.573, allocations: 437 MB / 0.7099 GB, free: 5.395 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001337/0.001338, allocations: 71.88 kB / 0.8687 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5449/0.5462, allocations: 151.6 MB / 1.017 GB, free: 2.801 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002301/0.5486, allocations: 1.335 MB / 1.018 GB, free: 1.453 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0009322/0.5495, allocations: 0.5956 MB / 1.019 GB, free: 0.8555 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.38e-05/0.5496, allocations: 4 kB / 1.019 GB, free: 0.8516 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 1.604e-05/0.5496, allocations: 0 / 1.019 GB, free: 0.8516 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 4.194e-05/0.5496, allocations: 3.984 kB / 1.019 GB, free: 0.8477 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004676/0.5501, allocations: 117.6 kB / 1.019 GB, free: 0.7344 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 4.061e-05/0.5502, allocations: 11.94 kB / 1.019 GB, free: 0.7227 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 3.59e-05/0.5502, allocations: 4 kB / 1.019 GB, free: 0.7188 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 1.758e-05/0.5502, allocations: 3.984 kB / 1.019 GB, free: 0.7148 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 3.523e-05/0.5503, allocations: 7.938 kB / 1.019 GB, free: 0.707 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.015e-05/0.5503, allocations: 4 kB / 1.019 GB, free: 0.7031 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004652/0.5508, allocations: 343.3 kB / 1.019 GB, free: 376 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 8.726e-06/0.5508, allocations: 0 / 1.019 GB, free: 376 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.021e-05/0.5508, allocations: 4 kB / 1.019 GB, free: 372 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0002431/0.5511, allocations: 145.9 kB / 1.019 GB, free: 228 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.5511, allocations: 0 / 1.019 GB, free: 228 kB / 0.7637 GB Notification: Performance of FrontEnd: time 9.12e-07/0.5511, allocations: 0 / 1.019 GB, free: 228 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 3.056e-06/0.5511, allocations: 0 / 1.019 GB, free: 228 kB / 0.7637 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.0003626/0.5514, allocations: 351.5 kB / 1.02 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.689e-05/0.5515, allocations: 12.02 kB / 1.02 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.286e-05/0.5515, allocations: 34.75 kB / 1.02 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.178e-05/0.5516, allocations: 4.938 kB / 1.02 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.618e-05/0.5517, allocations: 164.4 kB / 1.02 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.875e-06/0.5517, allocations: 384 / 1.02 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.212e-06/0.5517, allocations: 384 / 1.02 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.899e-05/0.5518, allocations: 34.27 kB / 1.02 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.424e-06/0.5518, allocations: 3.938 kB / 1.02 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.597e-06/0.5518, allocations: 3.984 kB / 1.02 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.5518, allocations: 3.938 kB / 1.02 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.275e-05/0.5518, allocations: 11.94 kB / 1.02 GB, free: 15.51 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001351/0.552, allocations: 149.7 kB / 1.02 GB, free: 15.31 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 4.57e-05/0.552, allocations: 26.53 kB / 1.02 GB, free: 15.28 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.912e-05/0.552, allocations: 8.922 kB / 1.02 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.86e-05/0.5521, allocations: 7.984 kB / 1.02 GB, free: 15.26 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.833e-05/0.5521, allocations: 30.56 kB / 1.02 GB, free: 15.22 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 1.012e-06/0.5521, allocations: 4 kB / 1.02 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.0001205/0.5522, allocations: 45.58 kB / 1.02 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.786e-05/0.5523, allocations: 51.41 kB / 1.02 GB, free: 15.1 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.784e-05/0.5523, allocations: 97.84 kB / 1.02 GB, free: 15 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 9.518e-06/0.5523, allocations: 29.7 kB / 1.02 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 2.364e-05/0.5524, allocations: 80.14 kB / 1.02 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.115e-05/0.5524, allocations: 7.844 kB / 1.02 GB, free: 14.87 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.234e-05/0.5524, allocations: 17.97 kB / 1.02 GB, free: 14.85 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.657e-05/0.5525, allocations: 314.8 kB / 1.021 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.204e-05/0.5525, allocations: 3.984 kB / 1.021 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.498e-06/0.5526, allocations: 4 kB / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.82e-05/0.5526, allocations: 16.8 kB / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.5526, allocations: 0 / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.011e-05/0.5527, allocations: 33.7 kB / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.471e-05/0.5527, allocations: 11.94 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.597e-06/0.5527, allocations: 96 / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.002e-05/0.5527, allocations: 4 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001422/0.5529, allocations: 11.98 kB / 1.021 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003165/0.5532, allocations: 0.5859 MB / 1.021 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.009e-05/0.5532, allocations: 4 kB / 1.021 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.969e-06/0.5532, allocations: 0 / 1.021 GB, free: 13.82 MB / 0.7794 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 6.63e-05/0.5533, allocations: 117.9 kB / 1.021 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.378e-06/0.5533, allocations: 3.984 kB / 1.021 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.439e-05/0.5534, allocations: 40.83 kB / 1.021 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.5534, allocations: 0 / 1.021 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.906e-06/0.5534, allocations: 0 / 1.021 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.974e-06/0.5534, allocations: 0 / 1.021 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.749e-05/0.5535, allocations: 153.6 kB / 1.022 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.133e-06/0.5535, allocations: 0 / 1.022 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.142e-05/0.5536, allocations: 19.97 kB / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.255e-06/0.5536, allocations: 32 / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.346e-06/0.5536, allocations: 4 kB / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002655/0.5539, allocations: 0.5859 MB / 1.022 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.101e-06/0.5539, allocations: 7.969 kB / 1.022 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.391e-05/0.554, allocations: 65.03 kB / 1.022 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.216e-05/0.554, allocations: 85.23 kB / 1.022 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.035e-05/0.5541, allocations: 3.938 kB / 1.022 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.469e-05/0.5541, allocations: 0 / 1.022 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.569e-05/0.5541, allocations: 7.938 kB / 1.022 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.787e-06/0.5541, allocations: 0 / 1.022 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.148e-05/0.5541, allocations: 83.2 kB / 1.022 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.6e-07/0.5541, allocations: 0 / 1.022 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000192/0.5543, allocations: 8 kB / 1.022 GB, free: 12.52 MB / 0.7794 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.000347/0.5547, allocations: 0.6165 MB / 1.023 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001451/0.5548, allocations: 15.98 kB / 1.023 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.5549, allocations: 0 / 1.023 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 8.934e-05/0.555, allocations: 19.92 kB / 1.023 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001404/0.5551, allocations: 13.03 kB / 1.023 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003994/0.5555, allocations: 142 kB / 1.023 GB, free: 11.65 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001941/0.5557, allocations: 0.6731 MB / 1.024 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 1.559e-05/0.5557, allocations: 0 / 1.024 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.313e-05/0.5558, allocations: 14.11 kB / 1.024 GB, free: 10.94 MB / 0.7794 GB Notification: Performance of SimCode: time 4.11e-07/0.5558, allocations: 0 / 1.024 GB, free: 10.94 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1687/0.7245, allocations: 1.223 MB / 1.025 GB, free: 9.938 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000348/0.7249, allocations: 275.4 kB / 1.025 GB, free: 9.578 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.265/2.99, allocations: 4 kB / 1.025 GB, free: 9.574 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; mkfifo Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe >> ../files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow.fmu > Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches