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.001945/0.001945, 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.002367/0.002367, allocations: 190.3 kB / 16.25 MB, free: 6.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.878/2.878, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 5.855/5.855, allocations: 461.9 MB / 0.7344 GB, free: 14.99 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.003393/0.003394, allocations: 70.03 kB / 0.8987 GB, free: 37.27 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6436/0.6471, allocations: 157.4 MB / 1.052 GB, free: 8.672 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.00575/0.6529, allocations: 1.31 MB / 1.054 GB, free: 7.344 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001751/0.6547, allocations: 0.5999 MB / 1.054 GB, free: 6.742 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.163e-05/0.6548, allocations: 0 / 1.054 GB, free: 6.742 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.788e-05/0.6548, allocations: 0 / 1.054 GB, free: 6.742 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.98e-05/0.655, allocations: 4 kB / 1.054 GB, free: 6.738 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007703/0.6558, allocations: 126.5 kB / 1.054 GB, free: 6.617 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 5.74e-05/0.6558, allocations: 4 kB / 1.054 GB, free: 6.613 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 6.417e-05/0.6559, allocations: 4 kB / 1.054 GB, free: 6.609 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 3.286e-05/0.6559, allocations: 7.922 kB / 1.054 GB, free: 6.602 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.718e-05/0.656, allocations: 8 kB / 1.054 GB, free: 6.594 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.408e-05/0.656, allocations: 0 / 1.054 GB, free: 6.594 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007739/0.6568, allocations: 343.3 kB / 1.055 GB, free: 6.258 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.797e-05/0.6568, allocations: 7.969 kB / 1.055 GB, free: 6.25 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.296e-05/0.6569, allocations: 7.938 kB / 1.055 GB, free: 6.242 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004319/0.6573, allocations: 140 kB / 1.055 GB, free: 6.105 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 9.298e-06/0.6573, allocations: 0 / 1.055 GB, free: 6.105 MB / 0.8106 GB Notification: Performance of FrontEnd: time 3.146e-06/0.6574, allocations: 0 / 1.055 GB, free: 6.105 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.686e-06/0.6574, allocations: 0 / 1.055 GB, free: 6.105 MB / 0.8106 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.0006531/0.658, allocations: 347.5 kB / 1.055 GB, free: 5.715 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 6.751e-05/0.6581, allocations: 12.62 kB / 1.055 GB, free: 5.703 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.338e-05/0.6582, allocations: 34.75 kB / 1.055 GB, free: 5.66 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.411e-05/0.6582, allocations: 4.875 kB / 1.055 GB, free: 5.656 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001756/0.6584, allocations: 172.3 kB / 1.055 GB, free: 5.449 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.803e-05/0.6584, allocations: 384 / 1.055 GB, free: 5.449 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.1e-05/0.6585, allocations: 8.312 kB / 1.055 GB, free: 5.441 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000138/0.6586, allocations: 30.27 kB / 1.055 GB, free: 5.406 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.37e-05/0.6586, allocations: 3.938 kB / 1.055 GB, free: 5.402 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.029e-05/0.6586, allocations: 0 / 1.055 GB, free: 5.402 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/0.6586, allocations: 0 / 1.055 GB, free: 5.402 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.502e-05/0.6587, allocations: 4 kB / 1.055 GB, free: 5.398 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002415/0.6589, allocations: 157.7 kB / 1.056 GB, free: 5.195 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 7.423e-05/0.659, allocations: 26.61 kB / 1.056 GB, free: 5.16 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.176e-05/0.6591, allocations: 8.797 kB / 1.056 GB, free: 5.148 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.011e-05/0.6591, allocations: 0 / 1.056 GB, free: 5.148 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.832e-05/0.6592, allocations: 34.62 kB / 1.056 GB, free: 5.105 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.242e-06/0.6592, allocations: 0 / 1.056 GB, free: 5.105 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.000236/0.6594, allocations: 49.53 kB / 1.056 GB, free: 5.051 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.501e-05/0.6595, allocations: 55.53 kB / 1.056 GB, free: 4.984 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001028/0.6596, allocations: 93.86 kB / 1.056 GB, free: 4.883 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.068e-05/0.6596, allocations: 25.7 kB / 1.056 GB, free: 4.852 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.148e-05/0.6597, allocations: 80.14 kB / 1.056 GB, free: 4.77 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.883e-05/0.6597, allocations: 7.984 kB / 1.056 GB, free: 4.762 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.279e-05/0.6598, allocations: 13.72 kB / 1.056 GB, free: 4.742 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000159/0.66, allocations: 310.8 kB / 1.056 GB, free: 4.43 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.481e-05/0.66, allocations: 12.06 kB / 1.056 GB, free: 4.418 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.348e-05/0.66, allocations: 4 kB / 1.056 GB, free: 4.414 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.384e-05/0.6601, allocations: 8.859 kB / 1.056 GB, free: 4.402 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.6601, allocations: 4 kB / 1.056 GB, free: 4.398 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001094/0.6602, allocations: 45.59 kB / 1.056 GB, free: 4.348 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.7e-05/0.6602, allocations: 7.938 kB / 1.056 GB, free: 4.34 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/0.6603, allocations: 0 / 1.056 GB, free: 4.34 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.224e-05/0.6603, allocations: 0 / 1.056 GB, free: 4.34 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000265/0.6606, allocations: 11.98 kB / 1.056 GB, free: 4.328 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005172/0.6611, allocations: 0.5861 MB / 1.057 GB, free: 3.719 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.039e-05/0.6611, allocations: 3.984 kB / 1.057 GB, free: 3.715 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.488e-06/0.6612, allocations: 4.031 kB / 1.057 GB, free: 3.711 MB / 0.8106 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 0.0001263/0.6613, allocations: 111.3 kB / 1.057 GB, free: 3.594 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.241e-05/0.6613, allocations: 0 / 1.057 GB, free: 3.594 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001506/0.6615, allocations: 52.84 kB / 1.057 GB, free: 3.539 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.6615, allocations: 3.938 kB / 1.057 GB, free: 3.535 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.6615, allocations: 4 kB / 1.057 GB, free: 3.531 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.097e-06/0.6615, allocations: 0 / 1.057 GB, free: 3.531 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000171/0.6617, allocations: 153.6 kB / 1.057 GB, free: 3.332 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.6617, allocations: 3.938 kB / 1.057 GB, free: 3.328 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.451e-05/0.6618, allocations: 8 kB / 1.057 GB, free: 3.32 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.444e-06/0.6618, allocations: 4 kB / 1.057 GB, free: 3.316 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.225e-06/0.6618, allocations: 0 / 1.057 GB, free: 3.316 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004729/0.6623, allocations: 0.586 MB / 1.058 GB, free: 2.707 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.42e-06/0.6623, allocations: 3.938 kB / 1.058 GB, free: 2.703 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001108/0.6625, allocations: 65.02 kB / 1.058 GB, free: 2.621 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.615e-05/0.6625, allocations: 81.09 kB / 1.058 GB, free: 2.523 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.857e-05/0.6626, allocations: 4 kB / 1.058 GB, free: 2.52 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.957e-05/0.6626, allocations: 4.125 kB / 1.058 GB, free: 2.516 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.859e-05/0.6626, allocations: 7.938 kB / 1.058 GB, free: 2.508 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.55e-06/0.6626, allocations: 4 kB / 1.058 GB, free: 2.504 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.248e-05/0.6627, allocations: 79.28 kB / 1.058 GB, free: 2.426 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.81e-07/0.6627, allocations: 0 / 1.058 GB, free: 2.426 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003341/0.663, allocations: 11.94 kB / 1.058 GB, free: 2.414 MB / 0.8106 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.0006862/0.6637, allocations: 0.6149 MB / 1.059 GB, free: 1.77 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002741/0.664, allocations: 23.92 kB / 1.059 GB, free: 1.746 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 4.087e-06/0.664, allocations: 0 / 1.059 GB, free: 1.746 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001263/0.6642, allocations: 15.98 kB / 1.059 GB, free: 1.73 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002308/0.6644, allocations: 7.875 kB / 1.059 GB, free: 1.723 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007265/0.6652, allocations: 143.8 kB / 1.059 GB, free: 1.543 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004416/0.6656, allocations: 0.6805 MB / 1.06 GB, free: 0.8359 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 2.36e-05/0.6657, allocations: 0 / 1.06 GB, free: 0.8359 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.571e-05/0.6657, allocations: 7.438 kB / 1.06 GB, free: 0.8281 MB / 0.8106 GB Notification: Performance of SimCode: time 3.31e-07/0.6657, allocations: 3.938 kB / 1.06 GB, free: 0.8242 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6033/1.269, allocations: 1.268 MB / 1.061 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0005392/1.27, allocations: 278 kB / 1.061 GB, free: 15.42 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.979/5.248, allocations: 3.094 kB / 1.061 GB, free: 15.42 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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