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.00151/0.00151, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001748/0.001748, allocations: 192.7 kB / 16.53 MB, free: 6.664 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.385/1.385, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.771/2.771, allocations: 472.6 MB / 0.7451 GB, free: 4.668 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.00129, allocations: 67.34 kB / 0.9121 GB, free: 33.34 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3199/0.3212, allocations: 159.9 MB / 1.068 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002259/0.3235, allocations: 1.257 MB / 1.069 GB, free: 9.176 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.000884/0.3244, allocations: 0.5898 MB / 1.07 GB, free: 8.586 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.719e-05/0.3244, allocations: 0 / 1.07 GB, free: 8.586 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.636e-05/0.3244, allocations: 0 / 1.07 GB, free: 8.586 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 3.816e-05/0.3245, allocations: 3.938 kB / 1.07 GB, free: 8.582 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004574/0.3249, allocations: 142.5 kB / 1.07 GB, free: 8.445 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 3.927e-05/0.325, allocations: 4 kB / 1.07 GB, free: 8.441 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.779e-05/0.325, allocations: 15.98 kB / 1.07 GB, free: 8.426 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 1.764e-05/0.325, allocations: 7.922 kB / 1.07 GB, free: 8.418 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 3.863e-05/0.3251, allocations: 7.938 kB / 1.07 GB, free: 8.41 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 9.648e-06/0.3251, allocations: 0 / 1.07 GB, free: 8.41 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004875/0.3256, allocations: 335.4 kB / 1.071 GB, free: 8.082 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 9.227e-06/0.3256, allocations: 0 / 1.071 GB, free: 8.082 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.174e-05/0.3256, allocations: 7.984 kB / 1.071 GB, free: 8.074 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.00024/0.3259, allocations: 139.9 kB / 1.071 GB, free: 7.938 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.3259, allocations: 0 / 1.071 GB, free: 7.938 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.302e-06/0.3259, allocations: 0 / 1.071 GB, free: 7.938 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.468e-06/0.3259, allocations: 0 / 1.071 GB, free: 7.938 MB / 0.8262 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.0003473/0.3263, allocations: 361.3 kB / 1.071 GB, free: 7.535 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.103e-05/0.3263, allocations: 12.03 kB / 1.071 GB, free: 7.523 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.479e-05/0.3263, allocations: 0.9375 kB / 1.071 GB, free: 7.523 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001096/0.3264, allocations: 168.2 kB / 1.071 GB, free: 7.32 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.077e-06/0.3265, allocations: 384 / 1.071 GB, free: 7.32 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.448e-06/0.3265, allocations: 4.375 kB / 1.071 GB, free: 7.316 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.541e-05/0.3266, allocations: 30.27 kB / 1.071 GB, free: 7.281 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.193e-06/0.3266, allocations: 192 / 1.071 GB, free: 7.281 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.071e-05/0.3266, allocations: 15.88 kB / 1.071 GB, free: 7.266 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.647e-06/0.3266, allocations: 0 / 1.071 GB, free: 7.266 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.185e-05/0.3266, allocations: 3.984 kB / 1.071 GB, free: 7.262 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001397/0.3268, allocations: 149.7 kB / 1.071 GB, free: 7.066 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 4.701e-05/0.3268, allocations: 26.53 kB / 1.071 GB, free: 7.031 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.71e-05/0.3268, allocations: 12.92 kB / 1.071 GB, free: 7.016 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.704e-05/0.3269, allocations: 0 / 1.071 GB, free: 7.016 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.275e-05/0.3269, allocations: 38.56 kB / 1.071 GB, free: 6.969 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=2): time 8.31e-07/0.3269, allocations: 4 kB / 1.071 GB, free: 6.965 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2): time 0.0001158/0.327, allocations: 37.64 kB / 1.071 GB, free: 6.922 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.92e-05/0.3271, allocations: 51.41 kB / 1.072 GB, free: 6.859 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.817e-05/0.3271, allocations: 101.8 kB / 1.072 GB, free: 6.75 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.146e-05/0.3271, allocations: 25.7 kB / 1.072 GB, free: 6.719 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 2.562e-05/0.3272, allocations: 84.08 kB / 1.072 GB, free: 6.633 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.097e-05/0.3272, allocations: 4.156 kB / 1.072 GB, free: 6.629 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.641e-05/0.3272, allocations: 21.72 kB / 1.072 GB, free: 6.602 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001071/0.3273, allocations: 310.8 kB / 1.072 GB, free: 6.289 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.252e-05/0.3274, allocations: 7.938 kB / 1.072 GB, free: 6.281 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.127e-06/0.3274, allocations: 3.984 kB / 1.072 GB, free: 6.277 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.789e-05/0.3274, allocations: 12.86 kB / 1.072 GB, free: 6.262 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-06/0.3274, allocations: 0 / 1.072 GB, free: 6.262 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.504e-05/0.3275, allocations: 37.7 kB / 1.072 GB, free: 6.219 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.13e-05/0.3275, allocations: 9.344 kB / 1.072 GB, free: 6.211 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.3275, allocations: 3.938 kB / 1.072 GB, free: 6.207 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.227e-05/0.3275, allocations: 4 kB / 1.072 GB, free: 6.203 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001449/0.3277, allocations: 15.92 kB / 1.072 GB, free: 6.188 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003347/0.328, allocations: 0.5782 MB / 1.073 GB, free: 5.586 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.845e-05/0.328, allocations: 4 kB / 1.073 GB, free: 5.582 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.669e-06/0.3281, allocations: 0 / 1.073 GB, free: 5.582 MB / 0.8262 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.409e-05/0.3281, allocations: 119.7 kB / 1.073 GB, free: 5.457 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.692e-06/0.3281, allocations: 0 / 1.073 GB, free: 5.457 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.165e-05/0.3282, allocations: 52.73 kB / 1.073 GB, free: 5.398 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.372e-06/0.3282, allocations: 0 / 1.073 GB, free: 5.398 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.175e-06/0.3282, allocations: 0 / 1.073 GB, free: 5.398 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.3283, allocations: 4 kB / 1.073 GB, free: 5.395 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.1e-05/0.3283, allocations: 149.6 kB / 1.073 GB, free: 5.199 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.3284, allocations: 3.938 kB / 1.073 GB, free: 5.195 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.581e-05/0.3284, allocations: 20.02 kB / 1.073 GB, free: 5.176 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.3284, allocations: 0 / 1.073 GB, free: 5.176 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.647e-06/0.3285, allocations: 4 kB / 1.073 GB, free: 5.172 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002931/0.3288, allocations: 0.582 MB / 1.074 GB, free: 4.566 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.3288, allocations: 3.938 kB / 1.074 GB, free: 4.562 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.488e-05/0.3288, allocations: 69.19 kB / 1.074 GB, free: 4.477 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.861e-05/0.3289, allocations: 77.11 kB / 1.074 GB, free: 4.383 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.114e-05/0.3289, allocations: 4 kB / 1.074 GB, free: 4.379 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.39e-05/0.3289, allocations: 0 / 1.074 GB, free: 4.379 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.414e-05/0.3289, allocations: 3.938 kB / 1.074 GB, free: 4.375 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.933e-06/0.3289, allocations: 0 / 1.074 GB, free: 4.375 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 2.897e-05/0.329, allocations: 79.28 kB / 1.074 GB, free: 4.297 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1e-07/0.329, allocations: 0 / 1.074 GB, free: 4.297 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0001842/0.3292, allocations: 8.109 kB / 1.074 GB, free: 4.289 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.0001445/0.3293, allocations: 124 kB / 1.074 GB, free: 4.16 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001601/0.3295, allocations: 19.98 kB / 1.074 GB, free: 4.141 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.3295, allocations: 3.938 kB / 1.074 GB, free: 4.137 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 8.275e-05/0.3296, allocations: 11.98 kB / 1.074 GB, free: 4.125 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001328/0.3297, allocations: 8 kB / 1.074 GB, free: 4.117 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002622/0.33, allocations: 114 kB / 1.074 GB, free: 3.98 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002085/0.3302, allocations: 0.6768 MB / 1.075 GB, free: 3.277 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 1.656e-05/0.3302, allocations: 0 / 1.075 GB, free: 3.277 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.301e-05/0.3303, allocations: 7.438 kB / 1.075 GB, free: 3.27 MB / 0.8262 GB Notification: Performance of SimCode: time 2e-07/0.3303, allocations: 0 / 1.075 GB, free: 3.27 MB / 0.8262 GB Notification: Performance of Templates: time 0.002305/0.3326, allocations: 451.8 kB / 1.075 GB, free: 2.859 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) Reference file matches