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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.00144/0.00144, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001707/0.001707, allocations: 192 kB / 16.25 MB, free: 6.621 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.358/1.358, allocations: 222.9 MB / 239.9 MB, free: 4.578 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.598/2.598, allocations: 437 MB / 0.7101 GB, free: 5.262 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001265/0.001265, allocations: 63.89 kB / 0.8689 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5782/0.5795, allocations: 151.6 MB / 1.017 GB, free: 2.688 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002329/0.5818, allocations: 1.327 MB / 1.018 GB, free: 1.348 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0008479/0.5827, allocations: 0.58 MB / 1.019 GB, free: 0.7656 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.866e-05/0.5827, allocations: 0 / 1.019 GB, free: 0.7656 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 1.589e-05/0.5828, allocations: 0 / 1.019 GB, free: 0.7656 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 3.569e-05/0.5828, allocations: 0 / 1.019 GB, free: 0.7656 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004422/0.5833, allocations: 127.6 kB / 1.019 GB, free: 0.6406 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 4.056e-05/0.5833, allocations: 7.938 kB / 1.019 GB, free: 0.6328 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 3.837e-05/0.5833, allocations: 8 kB / 1.019 GB, free: 0.625 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 1.939e-05/0.5834, allocations: 11.97 kB / 1.019 GB, free: 0.6133 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 4.139e-05/0.5834, allocations: 7.938 kB / 1.019 GB, free: 0.6055 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 9.247e-06/0.5834, allocations: 0 / 1.019 GB, free: 0.6055 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004459/0.5839, allocations: 339.3 kB / 1.019 GB, free: 280 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.016e-05/0.5839, allocations: 7.984 kB / 1.019 GB, free: 272 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 1.482e-05/0.5839, allocations: 0 / 1.019 GB, free: 272 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0002269/0.5842, allocations: 149.9 kB / 1.019 GB, free: 124 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 2.875e-06/0.5842, allocations: 0 / 1.019 GB, free: 124 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.292e-06/0.5842, allocations: 3.938 kB / 1.019 GB, free: 120 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 8.315e-06/0.5842, allocations: 0 / 1.019 GB, free: 120 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.0003539/0.5845, allocations: 347.4 kB / 1.02 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/0.5846, allocations: 12.03 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.648e-05/0.5846, allocations: 34.73 kB / 1.02 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.822e-05/0.5847, allocations: 0.9375 kB / 1.02 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001002/0.5848, allocations: 160.4 kB / 1.02 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.875e-06/0.5848, allocations: 4.375 kB / 1.02 GB, free: 15.47 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.6e-05/0.5848, allocations: 4.375 kB / 1.02 GB, free: 15.47 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.668e-05/0.5849, allocations: 30.2 kB / 1.02 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.404e-06/0.5849, allocations: 3.938 kB / 1.02 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.616e-06/0.5849, allocations: 4 kB / 1.02 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.027e-06/0.5849, allocations: 0 / 1.02 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.449e-05/0.5849, allocations: 7.984 kB / 1.02 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001424/0.5851, allocations: 145.7 kB / 1.02 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 4.887e-05/0.5851, allocations: 34.53 kB / 1.02 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.728e-05/0.5852, allocations: 8.922 kB / 1.02 GB, free: 15.17 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.482e-05/0.5852, allocations: 0 / 1.02 GB, free: 15.17 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.095e-05/0.5852, allocations: 34.5 kB / 1.02 GB, free: 15.13 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 9.92e-07/0.5852, allocations: 4 kB / 1.02 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.000121/0.5853, allocations: 41.64 kB / 1.02 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.03e-05/0.5854, allocations: 51.41 kB / 1.02 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.712e-05/0.5855, allocations: 102 kB / 1.02 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.544e-05/0.5855, allocations: 29.7 kB / 1.02 GB, free: 14.87 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 2.649e-05/0.5855, allocations: 80.14 kB / 1.021 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.172e-05/0.5855, allocations: 7.844 kB / 1.021 GB, free: 14.78 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.283e-05/0.5856, allocations: 13.72 kB / 1.021 GB, free: 14.76 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.699e-05/0.5857, allocations: 314.8 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.293e-05/0.5857, allocations: 4 kB / 1.021 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.03e-05/0.5857, allocations: 8.109 kB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.823e-05/0.5857, allocations: 12.8 kB / 1.021 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.5858, allocations: 0 / 1.021 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.965e-05/0.5858, allocations: 41.7 kB / 1.021 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.316e-05/0.5858, allocations: 7.938 kB / 1.021 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.457e-06/0.5858, allocations: 0 / 1.021 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.172e-05/0.5859, allocations: 0 / 1.021 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001424/0.586, allocations: 11.98 kB / 1.021 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003669/0.5864, allocations: 0.5899 MB / 1.021 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.735e-05/0.5864, allocations: 0 / 1.021 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.789e-06/0.5864, allocations: 0 / 1.021 GB, free: 13.74 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.635e-05/0.5865, allocations: 117.8 kB / 1.022 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.386e-06/0.5865, allocations: 3.984 kB / 1.022 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.905e-05/0.5866, allocations: 48.84 kB / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.5866, allocations: 4.031 kB / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.5866, allocations: 0 / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.5866, allocations: 4 kB / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.921e-05/0.5867, allocations: 153.6 kB / 1.022 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.5867, allocations: 0 / 1.022 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.529e-05/0.5868, allocations: 15.92 kB / 1.022 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.5868, allocations: 0 / 1.022 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.51e-05/0.5869, allocations: 4 kB / 1.022 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002788/0.5871, allocations: 0.586 MB / 1.022 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.506e-06/0.5871, allocations: 3.938 kB / 1.022 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.604e-05/0.5872, allocations: 65.06 kB / 1.022 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.987e-05/0.5873, allocations: 85.05 kB / 1.023 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.117e-05/0.5873, allocations: 4 kB / 1.023 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.453e-05/0.5873, allocations: 0 / 1.023 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.373e-05/0.5873, allocations: 4.062 kB / 1.023 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.344e-06/0.5873, allocations: 4 kB / 1.023 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 2.943e-05/0.5874, allocations: 79.28 kB / 1.023 GB, free: 12.44 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5874, allocations: 0 / 1.023 GB, free: 12.44 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0001925/0.5876, allocations: 11.98 kB / 1.023 GB, free: 12.43 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.0003887/0.588, allocations: 0.6165 MB / 1.023 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001539/0.5881, allocations: 19.92 kB / 1.023 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.5881, allocations: 0 / 1.023 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 8.807e-05/0.5882, allocations: 16.02 kB / 1.023 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001374/0.5884, allocations: 7.031 kB / 1.023 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004066/0.5888, allocations: 147.9 kB / 1.023 GB, free: 11.56 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002263/0.589, allocations: 0.6768 MB / 1.024 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 1.434e-05/0.589, allocations: 0 / 1.024 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.073e-05/0.5891, allocations: 7.438 kB / 1.024 GB, free: 10.85 MB / 0.7794 GB Notification: Performance of SimCode: time 2.2e-07/0.5891, allocations: 0 / 1.024 GB, free: 10.85 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03082/0.6199, allocations: 1.263 MB / 1.025 GB, free: 9.828 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002303/0.6202, allocations: 279.9 kB / 1.026 GB, free: 9.465 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.751/2.371, allocations: 0 / 1.026 GB, free: 9.465 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