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.001584/0.001584, allocations: 111.1 kB / 16.41 MB, free: 6.508 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.001886/0.001886, allocations: 187 kB / 17.34 MB, free: 5.742 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.389/1.389, allocations: 222.9 MB / 241 MB, free: 15.16 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.334/2.334, allocations: 390.3 MB / 0.6655 GB, free: 0.6328 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001429/0.001429, allocations: 63.91 kB / 0.9515 GB, free: 7.633 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7694/0.7708, allocations: 140.4 MB / 1.089 GB, free: 5.508 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002262/0.7732, allocations: 1.259 MB / 1.09 GB, free: 4.625 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0009986/0.7742, allocations: 0.5895 MB / 1.09 GB, free: 4.215 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.861e-05/0.7742, allocations: 1.125 kB / 1.09 GB, free: 4.215 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 1.802e-05/0.7742, allocations: 0.6094 kB / 1.09 GB, free: 4.215 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.433e-05/0.7743, allocations: 4.688 kB / 1.09 GB, free: 4.211 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005473/0.7749, allocations: 143.1 kB / 1.091 GB, free: 4.145 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 6.3e-05/0.7749, allocations: 13.72 kB / 1.091 GB, free: 4.137 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.746e-05/0.775, allocations: 7.312 kB / 1.091 GB, free: 4.133 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 2.238e-05/0.775, allocations: 1.922 kB / 1.091 GB, free: 4.133 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.142e-05/0.7751, allocations: 7.016 kB / 1.091 GB, free: 4.129 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.242e-05/0.7751, allocations: 0.75 kB / 1.091 GB, free: 4.129 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006562/0.7757, allocations: 341.5 kB / 1.091 GB, free: 4.031 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.037e-05/0.7758, allocations: 0 / 1.091 GB, free: 4.031 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.015e-05/0.7758, allocations: 10.48 kB / 1.091 GB, free: 4.023 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002847/0.7761, allocations: 139.1 kB / 1.091 GB, free: 3.984 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.7761, allocations: 0.8438 kB / 1.091 GB, free: 3.984 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.442e-06/0.7761, allocations: 0 / 1.091 GB, free: 3.984 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.054e-05/0.7761, 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.0003339/0.7765, allocations: 350.7 kB / 1.091 GB, free: 3.609 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/0.7765, allocations: 9.688 kB / 1.091 GB, free: 3.609 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.202e-05/0.7765, allocations: 2.641 kB / 1.091 GB, free: 3.609 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.567e-05/0.7766, allocations: 166.2 kB / 1.092 GB, free: 3.41 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.075e-05/0.7766, allocations: 9.406 kB / 1.092 GB, free: 3.402 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.127e-06/0.7767, allocations: 1.438 kB / 1.092 GB, free: 3.402 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.77e-05/0.7768, allocations: 34.66 kB / 1.092 GB, free: 3.367 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.283e-06/0.7768, allocations: 1.281 kB / 1.092 GB, free: 3.367 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.568e-06/0.7768, allocations: 3.938 kB / 1.092 GB, free: 3.363 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.7768, allocations: 0 / 1.092 GB, free: 3.363 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.482e-05/0.7768, allocations: 3.641 kB / 1.092 GB, free: 3.363 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001221/0.7769, allocations: 151.8 kB / 1.092 GB, free: 3.172 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 4.883e-05/0.777, allocations: 28.59 kB / 1.092 GB, free: 3.141 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.071e-05/0.777, allocations: 8.625 kB / 1.092 GB, free: 3.133 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.032e-05/0.7771, allocations: 0 / 1.092 GB, free: 3.133 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.696e-05/0.7771, allocations: 35.62 kB / 1.092 GB, free: 3.09 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 7.42e-07/0.7771, allocations: 1.156 kB / 1.092 GB, free: 3.09 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0001365/0.7772, allocations: 45.36 kB / 1.092 GB, free: 3.051 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.227e-05/0.7772, allocations: 52.09 kB / 1.092 GB, free: 2.988 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.993e-05/0.7773, allocations: 101.8 kB / 1.092 GB, free: 2.883 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 7.144e-06/0.7773, allocations: 25.7 kB / 1.092 GB, free: 2.852 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 1.39e-05/0.7773, allocations: 81.27 kB / 1.092 GB, free: 2.77 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.221e-05/0.7774, allocations: 9.688 kB / 1.092 GB, free: 2.762 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.422e-05/0.7774, allocations: 12.7 kB / 1.092 GB, free: 2.746 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.534e-05/0.7774, allocations: 316.7 kB / 1.092 GB, free: 2.43 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.253e-05/0.7775, allocations: 1.938 kB / 1.092 GB, free: 2.43 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.446e-06/0.7775, allocations: 7.203 kB / 1.092 GB, free: 2.426 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.805e-05/0.7775, allocations: 14.48 kB / 1.092 GB, free: 2.414 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.7775, allocations: 0 / 1.092 GB, free: 2.414 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.22e-05/0.7776, allocations: 40.23 kB / 1.092 GB, free: 2.379 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.321e-05/0.7776, allocations: 4.969 kB / 1.093 GB, free: 2.379 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.142e-06/0.7776, allocations: 5.797 kB / 1.093 GB, free: 2.375 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.219e-05/0.7776, allocations: 3.984 kB / 1.093 GB, free: 2.371 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001449/0.7778, allocations: 22.98 kB / 1.093 GB, free: 2.359 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002225/0.778, allocations: 0.5819 MB / 1.093 GB, free: 1.77 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.745e-05/0.778, allocations: 1.344 kB / 1.093 GB, free: 1.77 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.652e-06/0.778, allocations: 0.7969 kB / 1.093 GB, free: 1.77 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.088e-05/0.7781, allocations: 116.4 kB / 1.093 GB, free: 1.648 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.694e-06/0.7781, allocations: 1.062 kB / 1.093 GB, free: 1.648 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.493e-05/0.7782, allocations: 51.89 kB / 1.093 GB, free: 1.602 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.362e-06/0.7782, allocations: 1.125 kB / 1.093 GB, free: 1.602 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.7782, allocations: 0 / 1.093 GB, free: 1.602 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.7782, allocations: 1.625 kB / 1.093 GB, free: 1.602 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.028e-05/0.7783, allocations: 154.4 kB / 1.093 GB, free: 1.406 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.7783, allocations: 0.9375 kB / 1.093 GB, free: 1.406 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.542e-05/0.7784, allocations: 10.66 kB / 1.093 GB, free: 1.406 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.7784, allocations: 3.938 kB / 1.093 GB, free: 1.402 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.151e-06/0.7784, allocations: 0.9688 kB / 1.093 GB, free: 1.402 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001743/0.7786, allocations: 0.5912 MB / 1.094 GB, free: 0.8047 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.544e-06/0.7786, allocations: 4.688 kB / 1.094 GB, free: 0.8008 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.475e-05/0.7786, allocations: 65.2 kB / 1.094 GB, free: 0.7305 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 1.742e-05/0.7787, allocations: 79 kB / 1.094 GB, free: 0.6367 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.142e-05/0.7787, allocations: 1.062 kB / 1.094 GB, free: 0.6367 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.326e-05/0.7787, allocations: 128 / 1.094 GB, free: 0.6367 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.573e-05/0.7787, allocations: 9.344 kB / 1.094 GB, free: 0.6289 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.007e-06/0.7787, allocations: 1.547 kB / 1.094 GB, free: 0.6289 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 1.753e-05/0.7788, allocations: 77.53 kB / 1.094 GB, free: 0.5547 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7788, allocations: 0 / 1.094 GB, free: 0.5547 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0001905/0.779, allocations: 12.05 kB / 1.094 GB, free: 0.5508 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.0001373/0.7791, allocations: 109.3 kB / 1.094 GB, free: 472 kB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001544/0.7793, allocations: 24.66 kB / 1.094 GB, free: 464 kB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.7793, allocations: 0 / 1.094 GB, free: 464 kB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 8.35e-05/0.7794, allocations: 17.28 kB / 1.094 GB, free: 460 kB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001324/0.7795, allocations: 2.969 kB / 1.094 GB, free: 460 kB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003959/0.7799, allocations: 137.1 kB / 1.095 GB, free: 16.31 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000264/0.7802, allocations: 0.6727 MB / 1.095 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.425e-05/0.7802, allocations: 9.031 kB / 1.095 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of SimCode: time 2.51e-07/0.7802, allocations: 4 kB / 1.095 GB, free: 15.6 MB / 0.8731 GB Notification: Performance of Templates: time 0.002545/0.7828, allocations: 0.6927 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