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.0009388/0.0009389, allocations: 90.75 kB / 15.36 MB, free: 0.7383 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.007345/0.007345, allocations: 172.7 kB / 16.26 MB, free: 6.613 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: 223.3 MB / 240.3 MB, free: 5.324 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.528/2.528, allocations: 437.8 MB / 0.7121 GB, free: 7.035 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000326/0.0003261, allocations: 11.94 kB / 0.8729 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5854/0.5858, allocations: 153.8 MB / 1.023 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.001221/0.5871, allocations: 0.9807 MB / 1.024 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.000967/0.588, allocations: 0.5956 MB / 1.025 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.361e-05/0.5881, allocations: 0 / 1.025 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.536e-05/0.5881, allocations: 0 / 1.025 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 3.354e-05/0.5881, allocations: 0 / 1.025 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004397/0.5886, allocations: 111.6 kB / 1.025 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 3.892e-05/0.5886, allocations: 11.92 kB / 1.025 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 4.202e-05/0.5887, allocations: 8 kB / 1.025 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 1.73e-05/0.5887, allocations: 4 kB / 1.025 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 3.779e-05/0.5887, allocations: 7.938 kB / 1.025 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 8.837e-06/0.5888, allocations: 0 / 1.025 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004797/0.5892, allocations: 343.3 kB / 1.025 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 8.666e-06/0.5893, allocations: 0 / 1.025 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 2.831e-05/0.5893, allocations: 29.7 kB / 1.025 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002376/0.5895, allocations: 149.9 kB / 1.025 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.5896, allocations: 0 / 1.025 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.342e-06/0.5896, allocations: 0 / 1.025 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.617e-06/0.5896, allocations: 0 / 1.025 GB, free: 13.63 MB / 0.7794 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.0003276/0.5899, allocations: 351.4 kB / 1.026 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.914e-05/0.5899, allocations: 12.03 kB / 1.026 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.478e-05/0.59, allocations: 34.75 kB / 1.026 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.862e-05/0.59, allocations: 0.9375 kB / 1.026 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.488e-05/0.5901, allocations: 160.4 kB / 1.026 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.02e-05/0.5901, allocations: 4.375 kB / 1.026 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.722e-06/0.5901, allocations: 384 / 1.026 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.13e-05/0.5902, allocations: 34.25 kB / 1.026 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.377e-06/0.5902, allocations: 7.938 kB / 1.026 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.412e-06/0.5903, allocations: 3.938 kB / 1.026 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.5903, allocations: 0 / 1.026 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.552e-05/0.5903, allocations: 4 kB / 1.026 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001406/0.5904, allocations: 149.6 kB / 1.026 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 5.004e-05/0.5905, allocations: 30.59 kB / 1.026 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.742e-05/0.5905, allocations: 8.859 kB / 1.026 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.814e-05/0.5905, allocations: 0 / 1.026 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.662e-05/0.5906, allocations: 42.56 kB / 1.026 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 8.82e-07/0.5906, allocations: 0 / 1.026 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.0001233/0.5907, allocations: 49.56 kB / 1.026 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.789e-05/0.5907, allocations: 51.41 kB / 1.026 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.252e-05/0.5908, allocations: 93.86 kB / 1.026 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.13e-05/0.5908, allocations: 25.7 kB / 1.026 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 2.635e-05/0.5909, allocations: 84.39 kB / 1.026 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.145e-05/0.5909, allocations: 11.84 kB / 1.026 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.062e-05/0.5909, allocations: 13.72 kB / 1.026 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.401e-05/0.591, allocations: 310.8 kB / 1.027 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.188e-05/0.591, allocations: 3.984 kB / 1.027 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.736e-06/0.591, allocations: 4 kB / 1.027 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.008e-05/0.5911, allocations: 16.8 kB / 1.027 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.5911, allocations: 0 / 1.027 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.317e-05/0.5912, allocations: 41.77 kB / 1.027 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.54e-05/0.5912, allocations: 11.94 kB / 1.027 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.697e-06/0.5912, allocations: 0 / 1.027 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.097e-05/0.5912, allocations: 0 / 1.027 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001456/0.5914, allocations: 11.98 kB / 1.027 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003365/0.5917, allocations: 0.5859 MB / 1.027 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.107e-05/0.5917, allocations: 4 kB / 1.027 GB, free: 11.24 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.969e-06/0.5917, allocations: 128 / 1.027 GB, free: 11.24 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.714e-05/0.5918, allocations: 121.8 kB / 1.028 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.364e-06/0.5918, allocations: 0 / 1.028 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.155e-05/0.5919, allocations: 40.83 kB / 1.028 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-06/0.5919, allocations: 0 / 1.028 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.5919, allocations: 0 / 1.028 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.592, allocations: 3.984 kB / 1.028 GB, free: 11.06 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.081e-05/0.5921, allocations: 153.6 kB / 1.028 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.5921, allocations: 8.016 kB / 1.028 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.928e-05/0.5921, allocations: 11.98 kB / 1.028 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.058e-06/0.5922, allocations: 0 / 1.028 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.841e-06/0.5922, allocations: 3.938 kB / 1.028 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002722/0.5924, allocations: 0.586 MB / 1.028 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.5925, allocations: 3.938 kB / 1.028 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.742e-05/0.5925, allocations: 65.25 kB / 1.028 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.119e-05/0.5926, allocations: 81.02 kB / 1.028 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.152e-05/0.5926, allocations: 4 kB / 1.028 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.438e-05/0.5926, allocations: 0 / 1.028 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.026e-05/0.5926, allocations: 3.938 kB / 1.028 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.705e-06/0.5926, allocations: 3.938 kB / 1.028 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.172e-05/0.5927, allocations: 87.27 kB / 1.029 GB, free: 9.949 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.41e-07/0.5927, allocations: 4.062 kB / 1.029 GB, free: 9.945 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0001943/0.5929, allocations: 8 kB / 1.029 GB, free: 9.938 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.0003512/0.5932, allocations: 0.6125 MB / 1.029 GB, free: 9.297 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001481/0.5934, allocations: 19.98 kB / 1.029 GB, free: 9.277 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.5934, allocations: 4.094 kB / 1.029 GB, free: 9.273 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 8.696e-05/0.5935, allocations: 19.92 kB / 1.029 GB, free: 9.254 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001419/0.5937, allocations: 9.984 kB / 1.029 GB, free: 9.246 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003722/0.594, allocations: 140.8 kB / 1.029 GB, free: 9.066 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001957/0.5942, allocations: 0.677 MB / 1.03 GB, free: 8.363 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.075e-05/0.5943, allocations: 4.062 kB / 1.03 GB, free: 8.359 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.019e-05/0.5943, allocations: 7.438 kB / 1.03 GB, free: 8.352 MB / 0.7794 GB Notification: Performance of SimCode: time 2.71e-07/0.5943, allocations: 0 / 1.03 GB, free: 8.352 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01086/0.6052, allocations: 1.158 MB / 1.031 GB, free: 7.445 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000205/0.6054, allocations: 281.9 kB / 1.031 GB, free: 7.082 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.705/2.31, allocations: 0 / 1.031 GB, free: 7.082 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