Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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_dp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_nominal|dp",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_nominal|dp",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001188/0.001188, allocations: 115.1 kB / 16.37 MB, free: 5.984 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.001068/0.001068, allocations: 193.5 kB / 17.31 MB, free: 5.602 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.463/1.463, 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 11.0.0-master/package.mo): time 2.509/2.509, allocations: 442.6 MB / 0.7165 GB, free: 14.7 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 64.38 kB / 0.8773 GB, free: 11.02 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3306/0.3319, allocations: 153 MB / 1.027 GB, free: 2.098 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp): time 0.002323/0.3342, allocations: 1.259 MB / 1.028 GB, free: 0.8281 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0009162/0.3352, allocations: 0.59 MB / 1.029 GB, free: 244 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.186e-05/0.3352, allocations: 3.938 kB / 1.029 GB, free: 240 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 1.512e-05/0.3352, allocations: 0 / 1.029 GB, free: 240 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 4.003e-05/0.3353, allocations: 0 / 1.029 GB, free: 240 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004727/0.3357, allocations: 145.9 kB / 1.029 GB, free: 96 kB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 4.425e-05/0.3358, allocations: 15.88 kB / 1.029 GB, free: 80 kB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 3.515e-05/0.3358, allocations: 3.984 kB / 1.029 GB, free: 76 kB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 1.716e-05/0.3359, allocations: 8 kB / 1.029 GB, free: 68 kB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 3.732e-05/0.3359, allocations: 0 / 1.029 GB, free: 68 kB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 9.648e-06/0.3359, allocations: 0 / 1.029 GB, free: 68 kB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004919/0.3364, allocations: 347.3 kB / 1.029 GB, free: 15.73 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 9.137e-06/0.3364, allocations: 0 / 1.029 GB, free: 15.73 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.255e-05/0.3365, allocations: 7.938 kB / 1.029 GB, free: 15.72 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002247/0.3367, allocations: 135.7 kB / 1.029 GB, free: 15.59 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.3367, allocations: 0 / 1.029 GB, free: 15.59 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.623e-06/0.3367, allocations: 0 / 1.029 GB, free: 15.59 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.023e-05/0.3367, allocations: 0 / 1.029 GB, free: 15.59 MB / 0.8106 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.0003657/0.3371, allocations: 359.4 kB / 1.03 GB, free: 15.18 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.105e-05/0.3371, allocations: 12.03 kB / 1.03 GB, free: 15.17 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.764e-05/0.3372, allocations: 0.9375 kB / 1.03 GB, free: 15.17 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001124/0.3373, allocations: 168.4 kB / 1.03 GB, free: 14.97 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.987e-06/0.3373, allocations: 384 / 1.03 GB, free: 14.97 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.583e-06/0.3373, allocations: 4.375 kB / 1.03 GB, free: 14.96 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.905e-05/0.3374, allocations: 34.27 kB / 1.03 GB, free: 14.93 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.212e-06/0.3374, allocations: 192 / 1.03 GB, free: 14.93 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.447e-06/0.3374, allocations: 3.938 kB / 1.03 GB, free: 14.92 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.3374, allocations: 4 kB / 1.03 GB, free: 14.92 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.631e-05/0.3375, allocations: 7.938 kB / 1.03 GB, free: 14.91 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001495/0.3376, allocations: 149.7 kB / 1.03 GB, free: 14.71 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 4.737e-05/0.3377, allocations: 22.61 kB / 1.03 GB, free: 14.68 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.692e-05/0.3377, allocations: 4.859 kB / 1.03 GB, free: 14.68 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.977e-05/0.3377, allocations: 11.97 kB / 1.03 GB, free: 14.66 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.122e-05/0.3377, allocations: 38.62 kB / 1.03 GB, free: 14.62 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 9.42e-07/0.3378, allocations: 0 / 1.03 GB, free: 14.62 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0001323/0.3379, allocations: 45.48 kB / 1.03 GB, free: 14.57 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.951e-05/0.3379, allocations: 51.41 kB / 1.03 GB, free: 14.5 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.221e-05/0.338, allocations: 101.8 kB / 1.03 GB, free: 14.39 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.18e-05/0.338, allocations: 25.7 kB / 1.03 GB, free: 14.36 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.385e-05/0.3381, allocations: 84.08 kB / 1.03 GB, free: 14.28 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.853e-05/0.3381, allocations: 0 / 1.03 GB, free: 14.28 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.016e-05/0.3381, allocations: 21.97 kB / 1.03 GB, free: 14.25 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000102/0.3382, allocations: 310.8 kB / 1.031 GB, free: 13.94 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.277e-05/0.3382, allocations: 4 kB / 1.031 GB, free: 13.93 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.174e-06/0.3382, allocations: 0 / 1.031 GB, free: 13.93 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.857e-05/0.3383, allocations: 20.84 kB / 1.031 GB, free: 13.91 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.3383, allocations: 0 / 1.031 GB, free: 13.91 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.992e-05/0.3383, allocations: 41.55 kB / 1.031 GB, free: 13.86 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.048e-05/0.3384, allocations: 7.938 kB / 1.031 GB, free: 13.86 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.362e-05/0.3384, allocations: 12.03 kB / 1.031 GB, free: 13.84 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.151e-05/0.3384, allocations: 0 / 1.031 GB, free: 13.84 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001316/0.3385, allocations: 11.98 kB / 1.031 GB, free: 13.83 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003513/0.3389, allocations: 0.5782 MB / 1.031 GB, free: 13.23 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.04e-05/0.3389, allocations: 4 kB / 1.031 GB, free: 13.23 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.2e-06/0.3389, allocations: 4.031 kB / 1.031 GB, free: 13.22 MB / 0.8106 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 7.682e-05/0.339, allocations: 115.3 kB / 1.031 GB, free: 13.1 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.143e-06/0.339, allocations: 0 / 1.031 GB, free: 13.1 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.982e-05/0.3391, allocations: 48.75 kB / 1.031 GB, free: 13.04 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.035e-06/0.3392, allocations: 4 kB / 1.031 GB, free: 13.04 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.3392, allocations: 0 / 1.031 GB, free: 13.04 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.024e-06/0.3392, allocations: 0 / 1.031 GB, free: 13.04 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.724e-05/0.3393, allocations: 153.6 kB / 1.032 GB, free: 12.84 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.3393, allocations: 4 kB / 1.032 GB, free: 12.84 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.697e-05/0.3393, allocations: 7.984 kB / 1.032 GB, free: 12.83 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.3394, allocations: 8.031 kB / 1.032 GB, free: 12.82 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.601e-06/0.3394, allocations: 0 / 1.032 GB, free: 12.82 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002997/0.3397, allocations: 0.5821 MB / 1.032 GB, free: 12.21 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.554e-06/0.3397, allocations: 3.938 kB / 1.032 GB, free: 12.21 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.909e-05/0.3398, allocations: 69.16 kB / 1.032 GB, free: 12.12 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.169e-05/0.3398, allocations: 81.11 kB / 1.032 GB, free: 12.03 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.698e-06/0.3398, allocations: 0 / 1.032 GB, free: 12.03 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.377e-05/0.3398, allocations: 0 / 1.032 GB, free: 12.03 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.642e-05/0.3399, allocations: 3.938 kB / 1.032 GB, free: 12.02 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.414e-06/0.3399, allocations: 0 / 1.032 GB, free: 12.02 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.11e-05/0.3399, allocations: 79.28 kB / 1.032 GB, free: 11.95 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.41e-07/0.3399, allocations: 0 / 1.032 GB, free: 11.95 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0001918/0.3401, allocations: 12 kB / 1.032 GB, free: 11.93 MB / 0.8106 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.0001554/0.3403, allocations: 119.3 kB / 1.032 GB, free: 11.81 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001493/0.3404, allocations: 19.92 kB / 1.032 GB, free: 11.79 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3404, allocations: 0 / 1.032 GB, free: 11.79 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 8.179e-05/0.3405, allocations: 11.98 kB / 1.033 GB, free: 11.78 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001429/0.3407, allocations: 18.81 kB / 1.033 GB, free: 11.76 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000308/0.341, allocations: 102.3 kB / 1.033 GB, free: 11.64 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002367/0.3412, allocations: 0.6729 MB / 1.033 GB, free: 10.94 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 1.506e-05/0.3413, allocations: 0 / 1.033 GB, free: 10.94 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.603e-05/0.3413, allocations: 7.438 kB / 1.033 GB, free: 10.93 MB / 0.8106 GB Notification: Performance of SimCode: time 2.3e-07/0.3413, allocations: 7.938 kB / 1.033 GB, free: 10.92 MB / 0.8106 GB Notification: Performance of Templates: time 0.002494/0.3438, allocations: 458 kB / 1.034 GB, free: 10.51 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.makefile (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.sim & ./Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_dp.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches