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: 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.007057/0.007057, allocations: 102 kB / 15.73 MB, free: 6.051 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.001571/0.001571, allocations: 195 kB / 16.68 MB, free: 5.969 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.374/1.374, allocations: 222.9 MB / 240.4 MB, free: 4.172 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.712/2.712, allocations: 461.9 MB / 0.7348 GB, free: 14.67 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001316/0.001316, allocations: 64.11 kB / 1.054 GB, free: 7.195 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3418/0.3432, allocations: 157.4 MB / 1.208 GB, free: 9.68 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002415/0.3456, allocations: 1.247 MB / 1.209 GB, free: 8.418 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0009651/0.3466, allocations: 0.5799 MB / 1.21 GB, free: 7.836 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.244e-05/0.3467, allocations: 0 / 1.21 GB, free: 7.836 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 1.888e-05/0.3467, allocations: 0 / 1.21 GB, free: 7.836 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 4.423e-05/0.3468, allocations: 3.938 kB / 1.21 GB, free: 7.832 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005755/0.3473, allocations: 150 kB / 1.21 GB, free: 7.688 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 4.72e-05/0.3474, allocations: 8 kB / 1.21 GB, free: 7.68 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 4.33e-05/0.3474, allocations: 3.984 kB / 1.21 GB, free: 7.676 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 2.387e-05/0.3475, allocations: 7.984 kB / 1.21 GB, free: 7.668 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 3.946e-05/0.3475, allocations: 7.875 kB / 1.21 GB, free: 7.66 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 9.778e-06/0.3475, allocations: 0 / 1.21 GB, free: 7.66 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000545/0.3481, allocations: 343.3 kB / 1.21 GB, free: 7.324 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.53e-05/0.3481, allocations: 3.984 kB / 1.21 GB, free: 7.32 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 2.934e-05/0.3481, allocations: 8 kB / 1.21 GB, free: 7.312 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0003492/0.3485, allocations: 139.6 kB / 1.21 GB, free: 7.176 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 6.762e-06/0.3485, allocations: 0 / 1.21 GB, free: 7.176 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.024e-06/0.3485, allocations: 0 / 1.21 GB, free: 7.176 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 8.326e-06/0.3485, allocations: 0 / 1.21 GB, free: 7.176 MB / 0.9669 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.0005749/0.3491, allocations: 356.8 kB / 1.21 GB, free: 6.777 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 5.053e-05/0.3492, allocations: 12.62 kB / 1.211 GB, free: 6.766 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.188e-05/0.3492, allocations: 8.844 kB / 1.211 GB, free: 6.758 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001771/0.3494, allocations: 160.4 kB / 1.211 GB, free: 6.562 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.417e-05/0.3494, allocations: 4.375 kB / 1.211 GB, free: 6.559 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.396e-05/0.3494, allocations: 4.375 kB / 1.211 GB, free: 6.555 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001133/0.3496, allocations: 34.2 kB / 1.211 GB, free: 6.516 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.055e-05/0.3496, allocations: 4.188 kB / 1.211 GB, free: 6.512 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.395e-05/0.3496, allocations: 3.938 kB / 1.211 GB, free: 6.508 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.083e-06/0.3496, allocations: 0 / 1.211 GB, free: 6.508 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.469e-05/0.3497, allocations: 7.922 kB / 1.211 GB, free: 6.5 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000204/0.3499, allocations: 149.7 kB / 1.211 GB, free: 6.305 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 5.939e-05/0.3499, allocations: 26.61 kB / 1.211 GB, free: 6.27 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.068e-05/0.35, allocations: 8.844 kB / 1.211 GB, free: 6.258 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.707e-05/0.35, allocations: 0 / 1.211 GB, free: 6.258 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.845e-05/0.35, allocations: 42.56 kB / 1.211 GB, free: 6.207 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=2): time 8.41e-07/0.35, allocations: 0 / 1.211 GB, free: 6.207 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2): time 0.0001567/0.3502, allocations: 37.64 kB / 1.211 GB, free: 6.164 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.607e-05/0.3503, allocations: 51.41 kB / 1.211 GB, free: 6.102 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.509e-05/0.3504, allocations: 106 kB / 1.211 GB, free: 5.988 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.152e-05/0.3504, allocations: 25.7 kB / 1.211 GB, free: 5.957 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.035e-05/0.3504, allocations: 80.14 kB / 1.211 GB, free: 5.875 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.175e-05/0.3505, allocations: 3.906 kB / 1.211 GB, free: 5.871 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.062e-05/0.3505, allocations: 17.72 kB / 1.211 GB, free: 5.848 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001323/0.3507, allocations: 310.8 kB / 1.212 GB, free: 5.535 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.776e-05/0.3507, allocations: 4 kB / 1.212 GB, free: 5.531 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.489e-05/0.3507, allocations: 12.05 kB / 1.212 GB, free: 5.52 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.595e-05/0.3507, allocations: 12.86 kB / 1.212 GB, free: 5.504 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.3508, allocations: 4 kB / 1.212 GB, free: 5.5 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2) (initialization): time 8.711e-05/0.3509, allocations: 37.69 kB / 1.212 GB, free: 5.457 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.682e-05/0.3509, allocations: 4 kB / 1.212 GB, free: 5.453 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.306e-06/0.3509, allocations: 3.938 kB / 1.212 GB, free: 5.449 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.88e-05/0.3509, allocations: 0 / 1.212 GB, free: 5.449 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001861/0.3511, allocations: 15.92 kB / 1.212 GB, free: 5.434 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005154/0.3516, allocations: 0.5861 MB / 1.212 GB, free: 4.824 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.929e-05/0.3517, allocations: 0 / 1.212 GB, free: 4.824 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.105e-05/0.3517, allocations: 8.031 kB / 1.212 GB, free: 4.816 MB / 0.9669 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 8.514e-05/0.3518, allocations: 109.8 kB / 1.212 GB, free: 4.699 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.834e-06/0.3518, allocations: 0 / 1.212 GB, free: 4.699 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001327/0.3519, allocations: 48.81 kB / 1.212 GB, free: 4.648 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.3519, allocations: 4.031 kB / 1.212 GB, free: 4.645 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/0.3519, allocations: 4 kB / 1.212 GB, free: 4.641 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.3519, allocations: 0 / 1.212 GB, free: 4.641 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001194/0.3521, allocations: 149.6 kB / 1.213 GB, free: 4.445 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.3521, allocations: 3.938 kB / 1.213 GB, free: 4.441 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.494e-05/0.3522, allocations: 11.98 kB / 1.213 GB, free: 4.43 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.428e-06/0.3522, allocations: 7.938 kB / 1.213 GB, free: 4.422 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.357e-06/0.3522, allocations: 4 kB / 1.213 GB, free: 4.418 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004056/0.3526, allocations: 0.5821 MB / 1.213 GB, free: 3.812 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.063e-06/0.3526, allocations: 7.938 kB / 1.213 GB, free: 3.805 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.041e-05/0.3527, allocations: 65.09 kB / 1.213 GB, free: 3.723 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.827e-05/0.3528, allocations: 77.11 kB / 1.213 GB, free: 3.629 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.401e-05/0.3528, allocations: 4 kB / 1.213 GB, free: 3.625 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.471e-05/0.3528, allocations: 0 / 1.213 GB, free: 3.625 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.281e-05/0.3528, allocations: 8.062 kB / 1.213 GB, free: 3.617 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.745e-06/0.3529, allocations: 0 / 1.213 GB, free: 3.617 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 4.424e-05/0.3529, allocations: 79.28 kB / 1.213 GB, free: 3.539 MB / 0.9669 GB Notification: Performance of sort global known variables: time 2.5e-07/0.3529, allocations: 0 / 1.213 GB, free: 3.539 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002383/0.3531, allocations: 11.98 kB / 1.213 GB, free: 3.527 MB / 0.9669 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.0002242/0.3534, allocations: 115.2 kB / 1.213 GB, free: 3.402 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001818/0.3536, allocations: 15.98 kB / 1.213 GB, free: 3.387 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.3536, allocations: 4.156 kB / 1.213 GB, free: 3.383 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 8.758e-05/0.3537, allocations: 15.92 kB / 1.214 GB, free: 3.367 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001658/0.3539, allocations: 4 kB / 1.214 GB, free: 3.363 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000429/0.3543, allocations: 110.4 kB / 1.214 GB, free: 3.227 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003021/0.3546, allocations: 0.6768 MB / 1.214 GB, free: 2.523 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 2.138e-05/0.3546, allocations: 4.062 kB / 1.214 GB, free: 2.52 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.027e-05/0.3547, allocations: 7.438 kB / 1.214 GB, free: 2.516 MB / 0.9669 GB Notification: Performance of SimCode: time 8.12e-07/0.3547, allocations: 0 / 1.214 GB, free: 2.516 MB / 0.9669 GB Notification: Performance of Templates: time 0.003185/0.3579, allocations: 479.6 kB / 1.215 GB, free: 2.082 MB / 0.9669 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