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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.008275/0.008275, allocations: 99.31 kB / 15.73 MB, free: 6.047 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.001939/0.001939, allocations: 187.4 kB / 16.67 MB, free: 5.977 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.364/1.364, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.695/2.695, allocations: 461.9 MB / 0.7348 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001269/0.001269, allocations: 55.91 kB / 1.054 GB, free: 7.16 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3569/0.3582, allocations: 157.4 MB / 1.208 GB, free: 9.652 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp): time 0.002386/0.3607, allocations: 1.251 MB / 1.209 GB, free: 8.387 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0009125/0.3616, allocations: 0.5953 MB / 1.21 GB, free: 7.789 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.281e-05/0.3616, allocations: 4 kB / 1.21 GB, free: 7.785 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.152e-05/0.3617, allocations: 0 / 1.21 GB, free: 7.785 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 4.365e-05/0.3617, allocations: 0 / 1.21 GB, free: 7.785 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005016/0.3622, allocations: 143.4 kB / 1.21 GB, free: 7.645 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 5.242e-05/0.3623, allocations: 7.938 kB / 1.21 GB, free: 7.637 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 4.71e-05/0.3623, allocations: 3.984 kB / 1.21 GB, free: 7.633 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 2.045e-05/0.3624, allocations: 7.984 kB / 1.21 GB, free: 7.625 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 4.289e-05/0.3624, allocations: 3.938 kB / 1.21 GB, free: 7.621 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.008e-05/0.3624, allocations: 4 kB / 1.21 GB, free: 7.617 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004679/0.3629, allocations: 339.3 kB / 1.21 GB, free: 7.285 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.145e-05/0.3629, allocations: 3.984 kB / 1.21 GB, free: 7.281 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 1.991e-05/0.363, allocations: 8 kB / 1.21 GB, free: 7.273 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002422/0.3632, allocations: 139.6 kB / 1.21 GB, free: 7.137 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.3632, allocations: 0 / 1.21 GB, free: 7.137 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.513e-06/0.3632, allocations: 4 kB / 1.21 GB, free: 7.133 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.138e-06/0.3632, allocations: 0 / 1.21 GB, free: 7.133 MB / 0.9669 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.000387/0.3636, allocations: 351.5 kB / 1.211 GB, free: 6.738 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.667e-05/0.3637, allocations: 8.625 kB / 1.211 GB, free: 6.73 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.916e-05/0.3637, allocations: 4.844 kB / 1.211 GB, free: 6.727 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001112/0.3638, allocations: 168.4 kB / 1.211 GB, free: 6.523 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.176e-06/0.3638, allocations: 384 / 1.211 GB, free: 6.523 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.072e-05/0.3638, allocations: 384 / 1.211 GB, free: 6.523 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.734e-05/0.3639, allocations: 38.27 kB / 1.211 GB, free: 6.48 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.092e-05/0.364, allocations: 4.172 kB / 1.211 GB, free: 6.477 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.778e-06/0.364, allocations: 3.938 kB / 1.211 GB, free: 6.473 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.364, allocations: 0 / 1.211 GB, free: 6.473 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.855e-05/0.364, allocations: 7.938 kB / 1.211 GB, free: 6.465 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001493/0.3642, allocations: 153.7 kB / 1.211 GB, free: 6.266 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 4.351e-05/0.3642, allocations: 18.58 kB / 1.211 GB, free: 6.238 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.286e-05/0.3642, allocations: 12.92 kB / 1.211 GB, free: 6.223 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.621e-05/0.3643, allocations: 3.938 kB / 1.211 GB, free: 6.219 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.033e-05/0.3643, allocations: 38.55 kB / 1.211 GB, free: 6.172 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=2): time 8.72e-07/0.3643, allocations: 0 / 1.211 GB, free: 6.172 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2): time 0.0001438/0.3644, allocations: 45.52 kB / 1.211 GB, free: 6.121 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.463e-05/0.3645, allocations: 55.41 kB / 1.211 GB, free: 6.055 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.107e-05/0.3646, allocations: 93.86 kB / 1.211 GB, free: 5.953 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.147e-05/0.3646, allocations: 29.95 kB / 1.211 GB, free: 5.918 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 3.11e-05/0.3646, allocations: 88.12 kB / 1.211 GB, free: 5.828 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.339e-05/0.3646, allocations: 3.906 kB / 1.211 GB, free: 5.824 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.499e-05/0.3647, allocations: 13.72 kB / 1.211 GB, free: 5.805 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 9.916e-05/0.3648, allocations: 314.8 kB / 1.212 GB, free: 5.488 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.283e-05/0.3648, allocations: 0 / 1.212 GB, free: 5.488 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.333e-05/0.3648, allocations: 4 kB / 1.212 GB, free: 5.484 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.123e-05/0.3649, allocations: 12.92 kB / 1.212 GB, free: 5.469 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.3649, allocations: 4 kB / 1.212 GB, free: 5.465 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.477e-05/0.3649, allocations: 41.62 kB / 1.212 GB, free: 5.418 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.276e-05/0.3649, allocations: 4 kB / 1.212 GB, free: 5.414 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.712e-06/0.365, allocations: 3.938 kB / 1.212 GB, free: 5.41 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.552e-05/0.365, allocations: 4 kB / 1.212 GB, free: 5.406 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001569/0.3651, allocations: 11.98 kB / 1.212 GB, free: 5.395 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003526/0.3655, allocations: 0.5822 MB / 1.212 GB, free: 4.789 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.843e-05/0.3655, allocations: 0 / 1.212 GB, free: 4.789 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.751e-06/0.3655, allocations: 0 / 1.212 GB, free: 4.789 MB / 0.9669 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.963e-05/0.3656, allocations: 117.7 kB / 1.212 GB, free: 4.664 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.023e-05/0.3656, allocations: 4.031 kB / 1.212 GB, free: 4.66 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001062/0.3657, allocations: 48.72 kB / 1.212 GB, free: 4.609 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.3657, allocations: 0 / 1.212 GB, free: 4.609 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.3658, allocations: 0 / 1.212 GB, free: 4.609 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.3658, allocations: 4.094 kB / 1.212 GB, free: 4.605 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.742e-05/0.3659, allocations: 153.6 kB / 1.213 GB, free: 4.406 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.193e-06/0.3659, allocations: 0 / 1.213 GB, free: 4.406 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.631e-05/0.366, allocations: 8 kB / 1.213 GB, free: 4.398 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.414e-06/0.366, allocations: 0 / 1.213 GB, free: 4.398 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.154e-05/0.366, allocations: 11.98 kB / 1.213 GB, free: 4.387 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002927/0.3663, allocations: 0.5821 MB / 1.213 GB, free: 3.781 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.028e-06/0.3663, allocations: 4.031 kB / 1.213 GB, free: 3.777 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.717e-05/0.3664, allocations: 69.11 kB / 1.213 GB, free: 3.691 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 3.949e-05/0.3664, allocations: 81.09 kB / 1.213 GB, free: 3.594 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.999e-06/0.3664, allocations: 0 / 1.213 GB, free: 3.594 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.333e-05/0.3664, allocations: 0 / 1.213 GB, free: 3.594 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.639e-05/0.3665, allocations: 3.938 kB / 1.213 GB, free: 3.59 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.444e-06/0.3665, allocations: 4 kB / 1.213 GB, free: 3.586 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 3.002e-05/0.3665, allocations: 79.31 kB / 1.213 GB, free: 3.508 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3665, allocations: 0 / 1.213 GB, free: 3.508 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0001973/0.3667, allocations: 8 kB / 1.213 GB, free: 3.5 MB / 0.9669 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.0001738/0.3669, allocations: 127 kB / 1.213 GB, free: 3.363 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001598/0.3671, allocations: 15.98 kB / 1.213 GB, free: 3.348 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.3671, allocations: 0 / 1.213 GB, free: 3.348 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 8.545e-05/0.3672, allocations: 16.14 kB / 1.214 GB, free: 3.332 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001351/0.3673, allocations: 4.062 kB / 1.214 GB, free: 3.328 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003277/0.3676, allocations: 114.4 kB / 1.214 GB, free: 3.188 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002111/0.3679, allocations: 0.6728 MB / 1.214 GB, free: 2.488 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 1.623e-05/0.3679, allocations: 4 kB / 1.214 GB, free: 2.484 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.316e-05/0.3679, allocations: 7.438 kB / 1.214 GB, free: 2.48 MB / 0.9669 GB Notification: Performance of SimCode: time 3.1e-07/0.3679, allocations: 0 / 1.214 GB, free: 2.48 MB / 0.9669 GB Notification: Performance of Templates: time 0.002382/0.3703, allocations: 465.5 kB / 1.215 GB, free: 2.062 MB / 0.9669 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 -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/jenkins/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