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: translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_nominal|dp",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_nominal|dp",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001065/0.001065, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001512/0.001512, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.511/1.511, allocations: 223.3 MB / 240 MB, free: 5.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.847/2.847, allocations: 462.6 MB / 0.736 GB, free: 15.79 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003521/0.0003521, allocations: 7.406 kB / 0.9021 GB, free: 36.68 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3396/0.3399, allocations: 159.6 MB / 1.058 GB, free: 5.363 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.001364/0.3413, allocations: 0.9713 MB / 1.059 GB, free: 4.379 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0009135/0.3423, allocations: 0.53 MB / 1.059 GB, free: 3.848 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.083e-05/0.3423, allocations: 3.938 kB / 1.059 GB, free: 3.844 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.669e-05/0.3423, allocations: 3.984 kB / 1.059 GB, free: 3.84 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.044e-05/0.3424, allocations: 3.938 kB / 1.06 GB, free: 3.836 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004471/0.3428, allocations: 122.5 kB / 1.06 GB, free: 3.719 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 4.268e-05/0.3429, allocations: 8 kB / 1.06 GB, free: 3.711 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.97e-05/0.3429, allocations: 3.984 kB / 1.06 GB, free: 3.707 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 1.894e-05/0.343, allocations: 7.938 kB / 1.06 GB, free: 3.699 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.439e-05/0.343, allocations: 4 kB / 1.06 GB, free: 3.695 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.144e-05/0.343, allocations: 0 / 1.06 GB, free: 3.695 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004799/0.3435, allocations: 339.2 kB / 1.06 GB, free: 3.363 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 9.097e-06/0.3435, allocations: 8 kB / 1.06 GB, free: 3.355 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.54e-05/0.3436, allocations: 25.7 kB / 1.06 GB, free: 3.324 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001683/0.3437, allocations: 84.12 kB / 1.06 GB, free: 3.242 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.201e-06/0.3438, allocations: 0 / 1.06 GB, free: 3.242 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.222e-06/0.3438, allocations: 0 / 1.06 GB, free: 3.242 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.919e-06/0.3438, allocations: 0 / 1.06 GB, free: 3.242 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.0003657/0.3441, allocations: 355.2 kB / 1.06 GB, free: 2.848 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.775e-05/0.3442, allocations: 16.02 kB / 1.06 GB, free: 2.832 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.258e-05/0.3442, allocations: 4 kB / 1.06 GB, free: 2.828 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001166/0.3444, allocations: 159.1 kB / 1.061 GB, free: 2.633 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.159e-05/0.3444, allocations: 0 / 1.061 GB, free: 2.633 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.292e-05/0.3444, allocations: 7.891 kB / 1.061 GB, free: 2.625 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001097/0.3445, allocations: 29.7 kB / 1.061 GB, free: 2.59 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.332e-05/0.3445, allocations: 0 / 1.061 GB, free: 2.59 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.698e-06/0.3446, allocations: 3.938 kB / 1.061 GB, free: 2.586 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.3446, allocations: 0 / 1.061 GB, free: 2.586 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.313e-05/0.3446, allocations: 15.98 kB / 1.061 GB, free: 2.57 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001671/0.3448, allocations: 153.7 kB / 1.061 GB, free: 2.371 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 5.744e-05/0.3448, allocations: 22.61 kB / 1.061 GB, free: 2.34 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.313e-05/0.3449, allocations: 16.84 kB / 1.061 GB, free: 2.32 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.854e-05/0.3449, allocations: 3.953 kB / 1.061 GB, free: 2.316 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.209e-05/0.3449, allocations: 30.56 kB / 1.061 GB, free: 2.277 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.142e-06/0.3449, allocations: 4 kB / 1.061 GB, free: 2.273 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0001373/0.3451, allocations: 37.7 kB / 1.061 GB, free: 2.23 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.275e-05/0.3451, allocations: 55.41 kB / 1.061 GB, free: 2.164 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.979e-05/0.3452, allocations: 93.84 kB / 1.061 GB, free: 2.062 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.255e-05/0.3452, allocations: 25.7 kB / 1.061 GB, free: 2.031 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 2.952e-05/0.3452, allocations: 88.14 kB / 1.061 GB, free: 1.941 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.116e-05/0.3453, allocations: 3.906 kB / 1.061 GB, free: 1.938 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.016e-06/0.3453, allocations: 256 / 1.061 GB, free: 1.938 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001081/0.3454, allocations: 314.8 kB / 1.061 GB, free: 1.621 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.32e-05/0.3454, allocations: 7.938 kB / 1.061 GB, free: 1.613 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.853e-06/0.3454, allocations: 0 / 1.061 GB, free: 1.613 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.878e-05/0.3454, allocations: 8 kB / 1.061 GB, free: 1.605 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.3455, allocations: 0 / 1.061 GB, free: 1.605 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.108e-05/0.3455, allocations: 37.69 kB / 1.062 GB, free: 1.562 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.49e-05/0.3455, allocations: 7.953 kB / 1.062 GB, free: 1.555 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.3456, allocations: 0 / 1.062 GB, free: 1.555 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.396e-06/0.3456, allocations: 96 / 1.062 GB, free: 1.555 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001624/0.3457, allocations: 15.98 kB / 1.062 GB, free: 1.539 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003451/0.3461, allocations: 0.5898 MB / 1.062 GB, free: 0.9258 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.72e-05/0.3461, allocations: 3.938 kB / 1.062 GB, free: 0.9219 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.52e-06/0.3461, allocations: 0 / 1.062 GB, free: 0.9219 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 (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 7.538e-05/0.3462, allocations: 113.8 kB / 1.062 GB, free: 0.8008 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.744e-06/0.3462, allocations: 8.094 kB / 1.062 GB, free: 0.793 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.752e-05/0.3463, allocations: 44.81 kB / 1.062 GB, free: 0.7461 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.3463, allocations: 0 / 1.062 GB, free: 0.7461 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.3463, allocations: 0 / 1.062 GB, free: 0.7461 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.3464, allocations: 0 / 1.062 GB, free: 0.7461 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.904e-05/0.3465, allocations: 153.6 kB / 1.062 GB, free: 0.5469 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.3465, allocations: 7.938 kB / 1.062 GB, free: 0.5391 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.93e-05/0.3465, allocations: 11.94 kB / 1.062 GB, free: 0.5273 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.3465, allocations: 3.984 kB / 1.062 GB, free: 0.5234 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.923e-06/0.3466, allocations: 0 / 1.062 GB, free: 0.5234 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002946/0.3469, allocations: 0.5861 MB / 1.063 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.3469, allocations: 0 / 1.063 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.246e-05/0.3469, allocations: 65.12 kB / 1.063 GB, free: 15.83 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.888e-05/0.347, allocations: 88.94 kB / 1.063 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.057e-05/0.347, allocations: 4.125 kB / 1.063 GB, free: 15.72 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.363e-05/0.347, allocations: 0 / 1.063 GB, free: 15.72 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.111e-05/0.3471, allocations: 0 / 1.063 GB, free: 15.72 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.178e-06/0.3471, allocations: 4 kB / 1.063 GB, free: 15.72 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 2.997e-05/0.3471, allocations: 75.28 kB / 1.063 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.01e-07/0.3471, allocations: 0 / 1.063 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0001938/0.3473, allocations: 8 kB / 1.063 GB, free: 15.64 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 (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001649/0.3475, allocations: 119.3 kB / 1.063 GB, free: 15.51 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000167/0.3476, allocations: 20.02 kB / 1.063 GB, free: 15.49 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.3477, allocations: 0 / 1.063 GB, free: 15.49 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 8.515e-05/0.3477, allocations: 19.98 kB / 1.063 GB, free: 15.47 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001422/0.3479, allocations: 3.953 kB / 1.063 GB, free: 15.46 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000305/0.3482, allocations: 115.2 kB / 1.064 GB, free: 15.33 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002326/0.3485, allocations: 0.677 MB / 1.064 GB, free: 14.62 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 1.584e-05/0.3485, allocations: 0 / 1.064 GB, free: 14.62 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.339e-05/0.3485, allocations: 7.438 kB / 1.064 GB, free: 14.62 MB / 0.8262 GB Notification: Performance of SimCode: time 2.51e-07/0.3485, allocations: 0 / 1.064 GB, free: 14.62 MB / 0.8262 GB Notification: Performance of Templates: time 0.002313/0.3508, allocations: 427.5 kB / 1.065 GB, free: 14.23 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.makefile (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 & ./Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/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