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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.0007396/0.0007396, allocations: 91.84 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.004759/0.004759, allocations: 170 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.322/1.322, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.535/2.535, allocations: 462.6 MB / 0.7364 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003122/0.0003124, allocations: 9.781 kB / 0.9029 GB, free: 36.44 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2522/0.2525, allocations: 159.6 MB / 1.059 GB, free: 4.875 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.001242/0.2538, allocations: 0.9867 MB / 1.06 GB, free: 3.875 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.000957/0.2548, allocations: 0.584 MB / 1.06 GB, free: 3.289 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.355e-05/0.2548, allocations: 0 / 1.06 GB, free: 3.289 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.248e-05/0.2548, allocations: 0 / 1.06 GB, free: 3.289 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.135e-05/0.2549, allocations: 11.92 kB / 1.06 GB, free: 3.277 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004739/0.2554, allocations: 115.6 kB / 1.06 GB, free: 3.164 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 4.361e-05/0.2554, allocations: 12 kB / 1.06 GB, free: 3.152 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.72e-05/0.2555, allocations: 0 / 1.06 GB, free: 3.152 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 2.231e-05/0.2555, allocations: 7.969 kB / 1.06 GB, free: 3.145 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 3.655e-05/0.2555, allocations: 11.88 kB / 1.06 GB, free: 3.133 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 9.899e-06/0.2555, allocations: 0 / 1.06 GB, free: 3.133 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004794/0.256, allocations: 339.3 kB / 1.061 GB, free: 2.801 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.219e-05/0.256, allocations: 7.984 kB / 1.061 GB, free: 2.793 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.619e-05/0.2561, allocations: 25.7 kB / 1.061 GB, free: 2.762 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002383/0.2563, allocations: 139.9 kB / 1.061 GB, free: 2.625 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.2563, allocations: 4 kB / 1.061 GB, free: 2.621 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.443e-06/0.2563, allocations: 0 / 1.061 GB, free: 2.621 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.407e-06/0.2563, allocations: 0 / 1.061 GB, free: 2.621 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.000322/0.2567, allocations: 352.7 kB / 1.061 GB, free: 2.227 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.2567, allocations: 8.031 kB / 1.061 GB, free: 2.219 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.688e-05/0.2568, allocations: 34.73 kB / 1.061 GB, free: 2.176 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.928e-05/0.2568, allocations: 0.9375 kB / 1.061 GB, free: 2.176 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001023/0.2569, allocations: 168.3 kB / 1.062 GB, free: 1.973 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.278e-06/0.2569, allocations: 384 / 1.062 GB, free: 1.973 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.733e-06/0.2569, allocations: 4.375 kB / 1.062 GB, free: 1.969 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.942e-05/0.257, allocations: 30.27 kB / 1.062 GB, free: 1.934 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.744e-06/0.257, allocations: 3.938 kB / 1.062 GB, free: 1.93 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.706e-06/0.257, allocations: 4 kB / 1.062 GB, free: 1.926 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/0.257, allocations: 0 / 1.062 GB, free: 1.926 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.501e-05/0.2571, allocations: 11.92 kB / 1.062 GB, free: 1.914 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001334/0.2572, allocations: 145.7 kB / 1.062 GB, free: 1.723 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 4.844e-05/0.2573, allocations: 30.52 kB / 1.062 GB, free: 1.684 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.761e-05/0.2573, allocations: 12.84 kB / 1.062 GB, free: 1.668 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.664e-05/0.2573, allocations: 4.062 kB / 1.062 GB, free: 1.664 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.759e-05/0.2573, allocations: 30.56 kB / 1.062 GB, free: 1.625 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 8.42e-07/0.2573, allocations: 0 / 1.062 GB, free: 1.625 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0001246/0.2575, allocations: 41.64 kB / 1.062 GB, free: 1.578 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.737e-05/0.2575, allocations: 51.41 kB / 1.062 GB, free: 1.516 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.409e-05/0.2576, allocations: 106 kB / 1.062 GB, free: 1.402 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.291e-05/0.2576, allocations: 25.7 kB / 1.062 GB, free: 1.371 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 2.439e-05/0.2576, allocations: 84.08 kB / 1.062 GB, free: 1.285 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.045e-05/0.2577, allocations: 7.906 kB / 1.062 GB, free: 1.277 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.283e-05/0.2577, allocations: 9.719 kB / 1.062 GB, free: 1.262 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.369e-05/0.2578, allocations: 310.8 kB / 1.062 GB, free: 0.9492 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.314e-05/0.2578, allocations: 8 kB / 1.062 GB, free: 0.9414 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.564e-06/0.2578, allocations: 0 / 1.062 GB, free: 0.9414 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.979e-05/0.2578, allocations: 17.03 kB / 1.062 GB, free: 0.9219 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.2578, allocations: 0 / 1.062 GB, free: 0.9219 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.233e-05/0.2579, allocations: 41.7 kB / 1.062 GB, free: 0.875 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.473e-05/0.2579, allocations: 9.656 kB / 1.062 GB, free: 0.8672 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.2579, allocations: 0 / 1.062 GB, free: 0.8672 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.298e-06/0.258, allocations: 3.938 kB / 1.062 GB, free: 0.8633 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001528/0.2581, allocations: 15.92 kB / 1.062 GB, free: 0.8477 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003164/0.2584, allocations: 0.586 MB / 1.063 GB, free: 244 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.828e-05/0.2585, allocations: 0 / 1.063 GB, free: 244 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.526e-06/0.2585, allocations: 4.031 kB / 1.063 GB, free: 240 kB / 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 6.207e-05/0.2586, allocations: 109.8 kB / 1.063 GB, free: 120 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.936e-06/0.2586, allocations: 3.984 kB / 1.063 GB, free: 116 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001044/0.2587, allocations: 48.75 kB / 1.063 GB, free: 64 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.2587, allocations: 0 / 1.063 GB, free: 64 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/0.2587, allocations: 8.125 kB / 1.063 GB, free: 56 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.504e-06/0.2587, allocations: 0 / 1.063 GB, free: 56 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.56e-05/0.2588, allocations: 153.6 kB / 1.063 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.2588, allocations: 0 / 1.063 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.408e-05/0.2589, allocations: 15.98 kB / 1.063 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.265e-06/0.2589, allocations: 3.938 kB / 1.063 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.871e-06/0.2589, allocations: 4 kB / 1.063 GB, free: 15.83 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002536/0.2592, allocations: 0.5822 MB / 1.064 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.2592, allocations: 3.938 kB / 1.064 GB, free: 15.22 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.531e-05/0.2593, allocations: 69 kB / 1.064 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.016e-05/0.2593, allocations: 81.11 kB / 1.064 GB, free: 15.04 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.006e-05/0.2593, allocations: 0 / 1.064 GB, free: 15.04 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.619e-05/0.2593, allocations: 4 kB / 1.064 GB, free: 15.04 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.389e-05/0.2594, allocations: 3.938 kB / 1.064 GB, free: 15.03 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.445e-06/0.2594, allocations: 0 / 1.064 GB, free: 15.03 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 2.833e-05/0.2594, allocations: 83.38 kB / 1.064 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2594, allocations: 0 / 1.064 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0001937/0.2596, allocations: 15.94 kB / 1.064 GB, free: 14.93 MB / 0.8262 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.0003323/0.2599, allocations: 0.6086 MB / 1.065 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001475/0.2601, allocations: 19.98 kB / 1.065 GB, free: 14.27 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.2601, allocations: 0 / 1.065 GB, free: 14.27 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 8.608e-05/0.2602, allocations: 15.98 kB / 1.065 GB, free: 14.26 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001348/0.2603, allocations: 3.938 kB / 1.065 GB, free: 14.25 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003705/0.2607, allocations: 148.9 kB / 1.065 GB, free: 14.07 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001871/0.2609, allocations: 0.677 MB / 1.066 GB, free: 13.37 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 1.505e-05/0.2609, allocations: 3.938 kB / 1.066 GB, free: 13.36 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.12e-05/0.261, allocations: 7.438 kB / 1.066 GB, free: 13.36 MB / 0.8262 GB Notification: Performance of SimCode: time 2.5e-07/0.261, allocations: 3.938 kB / 1.066 GB, free: 13.35 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02282/0.2838, allocations: 1.167 MB / 1.067 GB, free: 12.44 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002158/0.284, allocations: 287.3 kB / 1.067 GB, free: 12.06 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.091/2.375, allocations: 0 / 1.067 GB, free: 12.06 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) "" Variables in the reference:time,m_flow,m_flow_nominal,dp Variables in the result:dp,k,m_flow,m_flow_nominal,time