Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_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_9_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.005676/0.005676, allocations: 105.4 kB / 15.74 MB, free: 6.039 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.001317/0.001317, allocations: 195.2 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.398/1.398, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.417/2.417, allocations: 390.2 MB / 0.6648 GB, free: 180 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001348/0.001348, allocations: 62.42 kB / 0.9508 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3098/0.3111, allocations: 140.4 MB / 1.088 GB, free: 1.5 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.00256/0.3137, allocations: 1.248 MB / 1.089 GB, free: 248 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001097/0.3149, allocations: 0.5933 MB / 1.09 GB, free: 15.65 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.039e-05/0.3149, allocations: 0 / 1.09 GB, free: 15.65 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.585e-05/0.3149, allocations: 0 / 1.09 GB, free: 15.65 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.783e-05/0.315, allocations: 0 / 1.09 GB, free: 15.65 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007348/0.3158, allocations: 143.9 kB / 1.09 GB, free: 15.51 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 5.82e-05/0.3158, allocations: 11.94 kB / 1.09 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 5.262e-05/0.3159, allocations: 3.984 kB / 1.09 GB, free: 15.49 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 2.021e-05/0.3159, allocations: 4 kB / 1.09 GB, free: 15.49 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.462e-05/0.316, allocations: 11.92 kB / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.124e-05/0.316, allocations: 0 / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005353/0.3165, allocations: 339.3 kB / 1.09 GB, free: 15.14 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.046e-05/0.3166, allocations: 3.938 kB / 1.09 GB, free: 15.14 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.493e-05/0.3166, allocations: 7.984 kB / 1.09 GB, free: 15.13 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000275/0.3169, allocations: 143.6 kB / 1.09 GB, free: 14.99 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.3169, allocations: 0 / 1.09 GB, free: 14.99 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.202e-06/0.3169, allocations: 0 / 1.09 GB, free: 14.99 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.4e-06/0.3169, allocations: 0 / 1.09 GB, free: 14.99 MB / 0.8575 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.0004663/0.3174, allocations: 355.4 kB / 1.091 GB, free: 14.59 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.132e-05/0.3174, allocations: 8.031 kB / 1.091 GB, free: 14.59 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.612e-05/0.3175, allocations: 4.938 kB / 1.091 GB, free: 14.58 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001316/0.3176, allocations: 160.4 kB / 1.091 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.216e-05/0.3176, allocations: 384 / 1.091 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.568e-06/0.3176, allocations: 4.375 kB / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001068/0.3177, allocations: 34.27 kB / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.165e-06/0.3178, allocations: 192 / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.218e-05/0.3178, allocations: 3.938 kB / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.3178, allocations: 3.938 kB / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.289e-05/0.3178, allocations: 11.92 kB / 1.091 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001743/0.318, allocations: 149.7 kB / 1.091 GB, free: 14.13 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 5.511e-05/0.3181, allocations: 26.56 kB / 1.091 GB, free: 14.09 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.205e-05/0.3181, allocations: 8.922 kB / 1.091 GB, free: 14.08 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.779e-05/0.3181, allocations: 0 / 1.091 GB, free: 14.08 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.396e-05/0.3181, allocations: 34.56 kB / 1.091 GB, free: 14.04 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 7.82e-07/0.3181, allocations: 0 / 1.091 GB, free: 14.04 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0001603/0.3183, allocations: 49.48 kB / 1.091 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.688e-05/0.3184, allocations: 51.41 kB / 1.091 GB, free: 13.92 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.235e-05/0.3184, allocations: 102 kB / 1.091 GB, free: 13.81 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.806e-05/0.3185, allocations: 25.7 kB / 1.091 GB, free: 13.78 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.84e-05/0.3185, allocations: 84.14 kB / 1.091 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.465e-05/0.3185, allocations: 0 / 1.091 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.751e-05/0.3186, allocations: 9.719 kB / 1.091 GB, free: 13.68 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001006/0.3187, allocations: 318.8 kB / 1.092 GB, free: 13.36 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.258e-05/0.3187, allocations: 0 / 1.092 GB, free: 13.36 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.236e-05/0.3187, allocations: 11.98 kB / 1.092 GB, free: 13.35 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.901e-05/0.3187, allocations: 17.05 kB / 1.092 GB, free: 13.33 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/0.3187, allocations: 0 / 1.092 GB, free: 13.33 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.595e-05/0.3188, allocations: 41.55 kB / 1.092 GB, free: 13.28 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.556e-05/0.3188, allocations: 5.719 kB / 1.092 GB, free: 13.28 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.603e-06/0.3188, allocations: 7.938 kB / 1.092 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.5e-05/0.3189, allocations: 0 / 1.092 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001508/0.319, allocations: 11.98 kB / 1.092 GB, free: 13.26 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003449/0.3194, allocations: 0.5822 MB / 1.092 GB, free: 12.65 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.692e-05/0.3194, allocations: 0 / 1.092 GB, free: 12.65 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.39e-06/0.3194, allocations: 3.938 kB / 1.092 GB, free: 12.65 MB / 0.8575 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 0.0001125/0.3195, allocations: 121.8 kB / 1.093 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.103e-06/0.3195, allocations: 0 / 1.093 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001062/0.3197, allocations: 44.81 kB / 1.093 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.372e-06/0.3197, allocations: 128 / 1.093 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.3197, allocations: 4 kB / 1.093 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.3197, allocations: 3.984 kB / 1.093 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001333/0.3198, allocations: 153.6 kB / 1.093 GB, free: 12.26 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.3198, allocations: 0 / 1.093 GB, free: 12.26 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.648e-05/0.3199, allocations: 15.92 kB / 1.093 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.3199, allocations: 0 / 1.093 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.342e-06/0.3199, allocations: 0 / 1.093 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003773/0.3203, allocations: 0.5937 MB / 1.093 GB, free: 11.63 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.275e-06/0.3203, allocations: 3.938 kB / 1.093 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.481e-05/0.3204, allocations: 69.16 kB / 1.093 GB, free: 11.54 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.578e-05/0.3204, allocations: 77.11 kB / 1.093 GB, free: 11.45 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.002e-05/0.3205, allocations: 0 / 1.093 GB, free: 11.45 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.311e-05/0.3205, allocations: 0 / 1.093 GB, free: 11.45 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.483e-05/0.3205, allocations: 7.938 kB / 1.093 GB, free: 11.44 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.214e-06/0.3205, allocations: 128 / 1.093 GB, free: 11.44 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.34e-05/0.3205, allocations: 79.28 kB / 1.094 GB, free: 11.36 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3206, allocations: 0 / 1.094 GB, free: 11.36 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0001989/0.3208, allocations: 19.92 kB / 1.094 GB, free: 11.34 MB / 0.8575 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.0001839/0.3209, allocations: 107.2 kB / 1.094 GB, free: 11.22 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.00016/0.3211, allocations: 19.98 kB / 1.094 GB, free: 11.2 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.3211, allocations: 0 / 1.094 GB, free: 11.2 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 8.029e-05/0.3212, allocations: 20.14 kB / 1.094 GB, free: 11.18 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001425/0.3214, allocations: 0 / 1.094 GB, free: 11.18 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000344/0.3217, allocations: 112.8 kB / 1.094 GB, free: 11.05 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002553/0.322, allocations: 0.6806 MB / 1.094 GB, free: 10.34 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 1.587e-05/0.322, allocations: 0 / 1.094 GB, free: 10.34 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.413e-05/0.322, allocations: 7.438 kB / 1.094 GB, free: 10.34 MB / 0.8575 GB Notification: Performance of SimCode: time 2.6e-07/0.322, allocations: 4.062 kB / 1.094 GB, free: 10.33 MB / 0.8575 GB Notification: Performance of Templates: time 0.002583/0.3246, allocations: 466.5 kB / 1.095 GB, free: 9.887 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.makefile (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.sim & ./Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches