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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.005738/0.005738, allocations: 102.1 kB / 15.73 MB, free: 6.062 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.001309/0.001309, allocations: 192 kB / 16.67 MB, free: 5.973 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.417/1.417, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.616/2.616, allocations: 472.6 MB / 0.7453 GB, free: 0.5039 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001391/0.001391, allocations: 71.89 kB / 1.069 GB, free: 9.594 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8375/0.8389, allocations: 159.9 MB / 1.226 GB, free: 13.57 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002439/0.8414, allocations: 1.258 MB / 1.227 GB, free: 12.3 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.0009568/0.8424, allocations: 0.5838 MB / 1.227 GB, free: 11.72 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.373e-05/0.8424, allocations: 4 kB / 1.227 GB, free: 11.71 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 1.542e-05/0.8424, allocations: 0 / 1.227 GB, free: 11.71 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 4.774e-05/0.8425, allocations: 3.938 kB / 1.227 GB, free: 11.71 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.000526/0.843, allocations: 151.1 kB / 1.228 GB, free: 11.57 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 6.716e-05/0.8431, allocations: 4 kB / 1.228 GB, free: 11.56 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 5.675e-05/0.8432, allocations: 7.984 kB / 1.228 GB, free: 11.55 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 2.022e-05/0.8432, allocations: 4 kB / 1.228 GB, free: 11.55 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 4.904e-05/0.8433, allocations: 7.875 kB / 1.228 GB, free: 11.54 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.089e-05/0.8433, allocations: 4 kB / 1.228 GB, free: 11.54 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005584/0.8438, allocations: 339.4 kB / 1.228 GB, free: 11.21 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 9.548e-06/0.8439, allocations: 0 / 1.228 GB, free: 11.21 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 1.961e-05/0.8439, allocations: 4 kB / 1.228 GB, free: 11.2 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0002565/0.8441, allocations: 144.1 kB / 1.228 GB, free: 11.07 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.149e-06/0.8442, allocations: 4 kB / 1.228 GB, free: 11.06 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.764e-06/0.8442, allocations: 0 / 1.228 GB, free: 11.06 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 5.75e-06/0.8442, allocations: 0 / 1.228 GB, free: 11.06 MB / 0.9512 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.0004135/0.8446, allocations: 355.1 kB / 1.228 GB, free: 10.66 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.669e-05/0.8446, allocations: 8.031 kB / 1.228 GB, free: 10.66 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.974e-05/0.8447, allocations: 0.9375 kB / 1.228 GB, free: 10.66 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001198/0.8448, allocations: 168.3 kB / 1.229 GB, free: 10.45 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.155e-06/0.8448, allocations: 384 / 1.229 GB, free: 10.45 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.488e-06/0.8448, allocations: 384 / 1.229 GB, free: 10.45 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.6e-05/0.8449, allocations: 34.27 kB / 1.229 GB, free: 10.41 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.224e-06/0.8449, allocations: 192 / 1.229 GB, free: 10.41 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.068e-05/0.8449, allocations: 7.875 kB / 1.229 GB, free: 10.41 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.8449, allocations: 0 / 1.229 GB, free: 10.41 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.456e-05/0.845, allocations: 15.97 kB / 1.229 GB, free: 10.39 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000162/0.8452, allocations: 153.6 kB / 1.229 GB, free: 10.19 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 5.429e-05/0.8452, allocations: 34.44 kB / 1.229 GB, free: 10.15 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.998e-05/0.8452, allocations: 12.92 kB / 1.229 GB, free: 10.13 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.624e-05/0.8453, allocations: 0 / 1.229 GB, free: 10.13 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.148e-05/0.8453, allocations: 30.56 kB / 1.229 GB, free: 10.09 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=2): time 1.102e-06/0.8453, allocations: 0 / 1.229 GB, free: 10.09 MB / 0.9512 GB Notification: Performance of matching and sorting (n=2): time 0.0001596/0.8455, allocations: 45.59 kB / 1.229 GB, free: 10.04 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.631e-05/0.8455, allocations: 55.41 kB / 1.229 GB, free: 9.977 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.991e-05/0.8456, allocations: 93.97 kB / 1.229 GB, free: 9.875 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.372e-05/0.8456, allocations: 29.83 kB / 1.229 GB, free: 9.84 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 3.573e-05/0.8456, allocations: 84.14 kB / 1.229 GB, free: 9.754 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.718e-05/0.8457, allocations: 7.938 kB / 1.229 GB, free: 9.746 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.615e-05/0.8457, allocations: 9.719 kB / 1.229 GB, free: 9.73 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001101/0.8458, allocations: 314.8 kB / 1.229 GB, free: 9.414 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.356e-05/0.8458, allocations: 4 kB / 1.229 GB, free: 9.41 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.175e-05/0.8459, allocations: 11.98 kB / 1.229 GB, free: 9.398 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.814e-05/0.8459, allocations: 12.92 kB / 1.229 GB, free: 9.383 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.8459, allocations: 0 / 1.229 GB, free: 9.383 MB / 0.9512 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.041e-05/0.846, allocations: 41.66 kB / 1.23 GB, free: 9.336 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.231e-05/0.846, allocations: 5.094 kB / 1.23 GB, free: 9.332 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.846, allocations: 3.938 kB / 1.23 GB, free: 9.328 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.387e-05/0.846, allocations: 4 kB / 1.23 GB, free: 9.324 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001529/0.8462, allocations: 15.92 kB / 1.23 GB, free: 9.309 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003488/0.8465, allocations: 0.5822 MB / 1.23 GB, free: 8.703 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.718e-05/0.8466, allocations: 0 / 1.23 GB, free: 8.703 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.829e-06/0.8466, allocations: 0 / 1.23 GB, free: 8.703 MB / 0.9512 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 7.7e-05/0.8467, allocations: 110.3 kB / 1.23 GB, free: 8.586 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.002e-05/0.8467, allocations: 8.031 kB / 1.23 GB, free: 8.578 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001033/0.8468, allocations: 48.75 kB / 1.23 GB, free: 8.523 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.522e-06/0.8468, allocations: 0 / 1.23 GB, free: 8.523 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.8468, allocations: 4.125 kB / 1.23 GB, free: 8.52 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.8468, allocations: 0 / 1.23 GB, free: 8.52 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.763e-05/0.8469, allocations: 153.6 kB / 1.23 GB, free: 8.32 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.8469, allocations: 0 / 1.23 GB, free: 8.32 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.495e-05/0.847, allocations: 11.98 kB / 1.23 GB, free: 8.309 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.847, allocations: 0 / 1.23 GB, free: 8.309 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.584e-06/0.847, allocations: 0 / 1.23 GB, free: 8.309 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002973/0.8473, allocations: 0.5859 MB / 1.231 GB, free: 7.699 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.8473, allocations: 8.031 kB / 1.231 GB, free: 7.691 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.645e-05/0.8474, allocations: 73.03 kB / 1.231 GB, free: 7.602 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 3.143e-05/0.8475, allocations: 77.11 kB / 1.231 GB, free: 7.508 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.177e-05/0.8475, allocations: 4 kB / 1.231 GB, free: 7.504 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.379e-05/0.8475, allocations: 0 / 1.231 GB, free: 7.504 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.693e-05/0.8475, allocations: 3.938 kB / 1.231 GB, free: 7.5 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.918e-06/0.8475, allocations: 4 kB / 1.231 GB, free: 7.496 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 3.683e-05/0.8476, allocations: 79.31 kB / 1.231 GB, free: 7.418 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8476, allocations: 0 / 1.231 GB, free: 7.418 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0001955/0.8478, allocations: 15.92 kB / 1.231 GB, free: 7.402 MB / 0.9512 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.0001687/0.8479, allocations: 111.1 kB / 1.231 GB, free: 7.281 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0001666/0.8481, allocations: 19.98 kB / 1.231 GB, free: 7.262 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.8481, allocations: 0 / 1.231 GB, free: 7.262 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 8.67e-05/0.8482, allocations: 24.08 kB / 1.231 GB, free: 7.238 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001411/0.8484, allocations: 1.625 kB / 1.231 GB, free: 7.238 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000321/0.8487, allocations: 105.9 kB / 1.232 GB, free: 7.109 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002394/0.849, allocations: 0.6768 MB / 1.232 GB, free: 6.406 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 1.528e-05/0.849, allocations: 0 / 1.232 GB, free: 6.406 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.636e-05/0.849, allocations: 7.438 kB / 1.232 GB, free: 6.398 MB / 0.9512 GB Notification: Performance of SimCode: time 2.61e-07/0.849, allocations: 4.062 kB / 1.232 GB, free: 6.395 MB / 0.9512 GB Notification: Performance of Templates: time 0.002239/0.8512, allocations: 467.8 kB / 1.233 GB, free: 5.973 MB / 0.9512 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) Reference file matches