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.001537/0.001537, allocations: 105.5 kB / 16.41 MB, free: 6.461 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.001677/0.001678, allocations: 187 kB / 17.34 MB, free: 5.719 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.42/1.42, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.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.309/2.309, allocations: 390.2 MB / 0.6655 GB, free: 0.6211 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001193/0.001193, allocations: 67.91 kB / 0.9515 GB, free: 7.648 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7889/0.7901, allocations: 140.4 MB / 1.089 GB, free: 5.504 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.001967/0.7921, allocations: 1.255 MB / 1.09 GB, free: 4.625 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.000952/0.7931, allocations: 0.588 MB / 1.09 GB, free: 4.219 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.688e-05/0.7931, allocations: 0 / 1.09 GB, free: 4.219 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.08e-05/0.7931, allocations: 5.828 kB / 1.09 GB, free: 4.215 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.096e-05/0.7932, allocations: 0 / 1.09 GB, free: 4.215 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004969/0.7937, allocations: 142.5 kB / 1.091 GB, free: 4.152 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 4.331e-05/0.7938, allocations: 10.67 kB / 1.091 GB, free: 4.148 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 3.878e-05/0.7938, allocations: 5.609 kB / 1.091 GB, free: 4.145 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 1.862e-05/0.7938, allocations: 15.09 kB / 1.091 GB, free: 4.133 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 3.844e-05/0.7939, allocations: 2.859 kB / 1.091 GB, free: 4.133 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 9.778e-06/0.7939, allocations: 1.094 kB / 1.091 GB, free: 4.133 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005465/0.7944, allocations: 344.8 kB / 1.091 GB, free: 4.031 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 8.977e-06/0.7944, allocations: 4.641 kB / 1.091 GB, free: 4.027 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 1.894e-05/0.7945, allocations: 6.922 kB / 1.091 GB, free: 4.023 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002385/0.7947, allocations: 138.4 kB / 1.091 GB, free: 3.984 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.7947, allocations: 0.9688 kB / 1.091 GB, free: 3.984 MB / 0.8575 GB Notification: Performance of FrontEnd: time 8.71e-07/0.7947, allocations: 0 / 1.091 GB, free: 3.984 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.008e-06/0.7947, allocations: 0 / 1.091 GB, free: 3.984 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.0002801/0.795, allocations: 350.8 kB / 1.091 GB, free: 3.609 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.19e-05/0.7951, allocations: 9.75 kB / 1.091 GB, free: 3.609 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.658e-05/0.7951, allocations: 2.094 kB / 1.091 GB, free: 3.609 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.643e-05/0.7952, allocations: 166.6 kB / 1.092 GB, free: 3.41 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.016e-05/0.7952, allocations: 1.594 kB / 1.092 GB, free: 3.41 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.384e-06/0.7952, allocations: 1.281 kB / 1.092 GB, free: 3.41 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.483e-05/0.7953, allocations: 31.11 kB / 1.092 GB, free: 3.379 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.282e-06/0.7953, allocations: 4.125 kB / 1.092 GB, free: 3.375 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.724e-06/0.7953, allocations: 3.938 kB / 1.092 GB, free: 3.371 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.7953, allocations: 1.766 kB / 1.092 GB, free: 3.371 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.38e-05/0.7953, allocations: 3.406 kB / 1.092 GB, free: 3.371 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000107/0.7954, allocations: 154.5 kB / 1.092 GB, free: 3.176 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 4.274e-05/0.7955, allocations: 25.47 kB / 1.092 GB, free: 3.148 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.77e-05/0.7955, allocations: 8.156 kB / 1.092 GB, free: 3.141 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.481e-05/0.7955, allocations: 0 / 1.092 GB, free: 3.141 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.203e-05/0.7955, allocations: 32.44 kB / 1.092 GB, free: 3.102 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 1.253e-06/0.7956, allocations: 0 / 1.092 GB, free: 3.102 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0001199/0.7957, allocations: 52.95 kB / 1.092 GB, free: 3.055 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.918e-05/0.7957, allocations: 56.09 kB / 1.092 GB, free: 2.988 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.411e-05/0.7958, allocations: 94.14 kB / 1.092 GB, free: 2.891 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 6.091e-06/0.7958, allocations: 25.7 kB / 1.092 GB, free: 2.859 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 1.344e-05/0.7958, allocations: 85.66 kB / 1.092 GB, free: 2.773 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.062e-05/0.7958, allocations: 5.484 kB / 1.092 GB, free: 2.77 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.44e-05/0.7958, allocations: 12.7 kB / 1.092 GB, free: 2.754 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 3.779e-05/0.7959, allocations: 312.6 kB / 1.092 GB, free: 2.441 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.279e-05/0.7959, allocations: 6.922 kB / 1.092 GB, free: 2.438 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.406e-06/0.7959, allocations: 5.812 kB / 1.092 GB, free: 2.434 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.495e-05/0.7959, allocations: 15 kB / 1.092 GB, free: 2.422 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.7959, allocations: 0 / 1.092 GB, free: 2.422 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.421e-05/0.796, allocations: 45.11 kB / 1.093 GB, free: 2.383 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.194e-05/0.796, allocations: 4.781 kB / 1.093 GB, free: 2.383 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.796, allocations: 7.875 kB / 1.093 GB, free: 2.375 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.225e-05/0.796, allocations: 1.422 kB / 1.093 GB, free: 2.375 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001365/0.7962, allocations: 13.34 kB / 1.093 GB, free: 2.371 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002327/0.7964, allocations: 0.5841 MB / 1.093 GB, free: 1.781 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.779e-05/0.7965, allocations: 4.5 kB / 1.093 GB, free: 1.777 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.023e-06/0.7965, allocations: 5 kB / 1.093 GB, free: 1.773 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 5.527e-05/0.7965, allocations: 111.9 kB / 1.093 GB, free: 1.656 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.166e-06/0.7965, allocations: 1.281 kB / 1.093 GB, free: 1.656 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.548e-05/0.7966, allocations: 48.22 kB / 1.093 GB, free: 1.613 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.7967, allocations: 5.047 kB / 1.093 GB, free: 1.609 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.7967, allocations: 0.6094 kB / 1.093 GB, free: 1.609 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.7967, allocations: 1.062 kB / 1.093 GB, free: 1.609 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.4e-05/0.7967, allocations: 154.5 kB / 1.093 GB, free: 1.414 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.7967, allocations: 0 / 1.093 GB, free: 1.414 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.293e-05/0.7968, allocations: 10.92 kB / 1.093 GB, free: 1.414 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.7968, allocations: 0 / 1.093 GB, free: 1.414 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.104e-06/0.7968, allocations: 1.5 kB / 1.093 GB, free: 1.414 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001781/0.797, allocations: 0.591 MB / 1.094 GB, free: 0.8164 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.797, allocations: 3.938 kB / 1.094 GB, free: 0.8125 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.134e-05/0.7971, allocations: 61.83 kB / 1.094 GB, free: 0.7461 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 1.901e-05/0.7971, allocations: 78.42 kB / 1.094 GB, free: 0.6523 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.095e-05/0.7971, allocations: 1.516 kB / 1.094 GB, free: 0.6523 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.386e-05/0.7972, allocations: 5.094 kB / 1.094 GB, free: 0.6484 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.875e-05/0.7972, allocations: 13.45 kB / 1.094 GB, free: 0.6367 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.096e-06/0.7972, allocations: 0.7188 kB / 1.094 GB, free: 0.6367 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 1.808e-05/0.7972, allocations: 78.28 kB / 1.094 GB, free: 0.5625 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.31e-07/0.7972, allocations: 0 / 1.094 GB, free: 0.5625 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002241/0.7974, allocations: 11.48 kB / 1.094 GB, free: 0.5586 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.0001413/0.7976, allocations: 110.3 kB / 1.094 GB, free: 476 kB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001591/0.7978, allocations: 24.67 kB / 1.094 GB, free: 468 kB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.7978, allocations: 0.875 kB / 1.094 GB, free: 468 kB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 8.363e-05/0.7979, allocations: 14.02 kB / 1.094 GB, free: 468 kB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001332/0.798, allocations: 3.25 kB / 1.094 GB, free: 468 kB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004083/0.7984, allocations: 136.5 kB / 1.095 GB, free: 16.31 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000297/0.7987, allocations: 0.6773 MB / 1.095 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.443e-05/0.7987, allocations: 8.156 kB / 1.095 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of SimCode: time 2.3e-07/0.7987, allocations: 0 / 1.095 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of Templates: time 0.003024/0.8018, allocations: 0.6955 MB / 1.096 GB, free: 15.57 MB / 0.8731 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/jenkins1/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