Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.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.FixedResistances.Examples.HydraulicDiameter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|res.m_flow_nominal|res.m_flow|res.m_flow_turbulent|resLarPip.m_flow_nominal|resLarPip.m_flow|resLarPip.m_flow_turbulent|res.v|resLarPip.v|res.dh|resLarPip.dh",fileNamePrefix="Buildings_9_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter") translateModel(Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|res.m_flow_nominal|res.m_flow|res.m_flow_turbulent|resLarPip.m_flow_nominal|resLarPip.m_flow|resLarPip.m_flow_turbulent|res.v|resLarPip.v|res.dh|resLarPip.dh",fileNamePrefix="Buildings_9_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009521/0.009521, allocations: 103.7 kB / 15.74 MB, free: 5.988 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.00231/0.00231, allocations: 190.1 kB / 16.67 MB, free: 5.914 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.477/1.477, allocations: 222.9 MB / 240.4 MB, free: 15.07 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.417/2.417, allocations: 390.2 MB / 0.6648 GB, free: 0.6445 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001496/0.001496, allocations: 63.91 kB / 0.9508 GB, free: 7.656 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.126/1.127, allocations: 140.4 MB / 1.088 GB, free: 5.527 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter): time 0.02116/1.148, allocations: 15.04 MB / 1.103 GB, free: 10.75 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.008587/1.157, allocations: 3.882 MB / 1.106 GB, free: 8.016 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001088/1.158, allocations: 18.25 kB / 1.106 GB, free: 8.012 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.0008513/1.159, allocations: 197.1 kB / 1.107 GB, free: 7.887 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.002855/1.162, allocations: 0.7058 MB / 1.107 GB, free: 7.492 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.001964/1.164, allocations: 476.3 kB / 1.108 GB, free: 7.277 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.002611/1.167, allocations: 1.093 MB / 1.109 GB, free: 6.789 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007674/1.167, allocations: 289.1 kB / 1.109 GB, free: 6.66 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001341/1.169, allocations: 416 kB / 1.109 GB, free: 6.484 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007396/1.169, allocations: 261.3 kB / 1.11 GB, free: 6.371 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.000123/1.17, allocations: 26.38 kB / 1.11 GB, free: 6.367 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002308/1.172, allocations: 0.7132 MB / 1.11 GB, free: 6.137 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0002196/1.172, allocations: 82.14 kB / 1.111 GB, free: 6.086 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0004849/1.173, allocations: 181.1 kB / 1.111 GB, free: 5.984 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.002497/1.175, allocations: 0.72 MB / 1.111 GB, free: 5.727 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/1.175, allocations: 0.7969 kB / 1.111 GB, free: 5.727 MB / 0.8731 GB Notification: Performance of FrontEnd: time 2.365e-06/1.175, allocations: 0 / 1.111 GB, free: 5.727 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 2.117e-05/1.175, allocations: 1.438 kB / 1.111 GB, free: 5.727 MB / 0.8731 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.002168/1.177, allocations: 0.744 MB / 1.112 GB, free: 5.117 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 5.139e-05/1.177, allocations: 9.656 kB / 1.112 GB, free: 5.117 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002229/1.178, allocations: 41.59 kB / 1.112 GB, free: 5.098 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001535/1.179, allocations: 0.5166 MB / 1.113 GB, free: 4.738 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.16e-05/1.179, allocations: 24.59 kB / 1.113 GB, free: 4.723 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.406e-05/1.179, allocations: 15.88 kB / 1.113 GB, free: 4.719 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004949/1.18, allocations: 180.1 kB / 1.113 GB, free: 4.641 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.286e-05/1.18, allocations: 3.938 kB / 1.113 GB, free: 4.637 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.602e-05/1.18, allocations: 6 kB / 1.113 GB, free: 4.633 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.093e-05/1.18, allocations: 4.406 kB / 1.113 GB, free: 4.633 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004051/1.18, allocations: 138.4 kB / 1.113 GB, free: 4.594 MB / 0.8731 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001625/1.182, allocations: 0.8595 MB / 1.114 GB, free: 3.914 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003481/1.182, allocations: 123.9 kB / 1.114 GB, free: 3.855 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001841/1.183, allocations: 70.14 kB / 1.114 GB, free: 3.832 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003512/1.183, allocations: 339.3 kB / 1.114 GB, free: 3.449 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.448e-05/1.183, allocations: 32.06 kB / 1.114 GB, free: 3.41 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=12): time 1.994e-06/1.183, allocations: 0 / 1.114 GB, free: 3.41 MB / 0.8731 GB Notification: Performance of matching and sorting (n=12): time 0.0007028/1.184, allocations: 222.4 kB / 1.115 GB, free: 3.316 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.577e-05/1.184, allocations: 53.58 kB / 1.115 GB, free: 3.254 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005092/1.184, allocations: 344.7 kB / 1.115 GB, free: 3.082 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 3.148e-05/1.184, allocations: 30.77 kB / 1.115 GB, free: 3.047 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001619/1.184, allocations: 191.3 kB / 1.115 GB, free: 2.887 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 5.375e-05/1.184, allocations: 39.91 kB / 1.115 GB, free: 2.855 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.813e-05/1.185, allocations: 33.95 kB / 1.115 GB, free: 2.832 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001714/1.185, allocations: 346 kB / 1.116 GB, free: 2.504 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001548/1.185, allocations: 54.56 kB / 1.116 GB, free: 2.48 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002006/1.185, allocations: 87.19 kB / 1.116 GB, free: 2.426 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002885/1.185, allocations: 116.7 kB / 1.116 GB, free: 2.379 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/1.185, allocations: 0 / 1.116 GB, free: 2.379 MB / 0.8731 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0004691/1.186, allocations: 182.4 kB / 1.116 GB, free: 2.293 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.376e-05/1.186, allocations: 13.86 kB / 1.116 GB, free: 2.285 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/1.186, allocations: 0 / 1.116 GB, free: 2.285 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.953e-05/1.186, allocations: 1.031 kB / 1.116 GB, free: 2.285 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001679/1.186, allocations: 25.06 kB / 1.116 GB, free: 2.285 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.909e-06/1.186, allocations: 5.219 kB / 1.116 GB, free: 2.281 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002724/1.186, allocations: 22.86 kB / 1.116 GB, free: 2.273 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.927e-05/1.186, allocations: 4.672 kB / 1.116 GB, free: 2.273 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002554/1.187, allocations: 155.6 kB / 1.116 GB, free: 2.168 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001723/1.187, allocations: 85.94 kB / 1.116 GB, free: 2.113 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002641/1.187, allocations: 117 kB / 1.116 GB, free: 2.062 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.693e-06/1.187, allocations: 1.25 kB / 1.116 GB, free: 2.062 MB / 0.8731 GB Notification: Performance of matching and sorting (n=12) (initialization_lambda0): time 0.0004128/1.188, allocations: 170.8 kB / 1.117 GB, free: 1.984 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.243e-05/1.188, allocations: 5.5 kB / 1.117 GB, free: 1.984 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.578e-06/1.188, allocations: 2.047 kB / 1.117 GB, free: 1.984 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.395e-06/1.188, allocations: 5.062 kB / 1.117 GB, free: 1.98 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001248/1.188, allocations: 31.62 kB / 1.117 GB, free: 1.973 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.797e-06/1.188, allocations: 0.75 kB / 1.117 GB, free: 1.973 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000254/1.188, allocations: 27 kB / 1.117 GB, free: 1.961 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.785e-05/1.188, allocations: 4.828 kB / 1.117 GB, free: 1.961 MB / 0.8731 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (12): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001542/1.188, allocations: 188.7 kB / 1.117 GB, free: 1.773 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.151e-05/1.188, allocations: 36.38 kB / 1.117 GB, free: 1.754 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005474/1.189, allocations: 229.2 kB / 1.117 GB, free: 1.652 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.267e-05/1.189, allocations: 5.75 kB / 1.117 GB, free: 1.648 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/1.189, allocations: 1.328 kB / 1.117 GB, free: 1.648 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/1.189, allocations: 1.344 kB / 1.117 GB, free: 1.648 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001307/1.19, allocations: 0.6308 MB / 1.118 GB, free: 1.203 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.241e-06/1.19, allocations: 1.25 kB / 1.118 GB, free: 1.203 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001174/1.19, allocations: 31.83 kB / 1.118 GB, free: 1.195 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.519e-06/1.19, allocations: 2.406 kB / 1.118 GB, free: 1.195 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.098e-05/1.19, allocations: 7.406 kB / 1.118 GB, free: 1.191 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.386e-06/1.19, allocations: 1.25 kB / 1.118 GB, free: 1.191 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.828e-06/1.19, allocations: 5.031 kB / 1.118 GB, free: 1.188 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005457/1.191, allocations: 316.8 kB / 1.118 GB, free: 0.9688 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002274/1.191, allocations: 127 kB / 1.118 GB, free: 0.8477 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.939e-05/1.191, allocations: 6.125 kB / 1.118 GB, free: 0.8438 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002259/1.192, allocations: 12.86 kB / 1.118 GB, free: 0.8438 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.684e-05/1.192, allocations: 12.64 kB / 1.118 GB, free: 0.8398 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.114e-05/1.192, allocations: 5.672 kB / 1.118 GB, free: 0.8398 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0004162/1.192, allocations: 250.8 kB / 1.118 GB, free: 0.707 MB / 0.8731 GB Notification: Performance of sort global known variables: time 2.61e-07/1.192, allocations: 0 / 1.118 GB, free: 0.707 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.001004/1.193, allocations: 197.8 kB / 1.119 GB, free: 0.6562 MB / 0.8731 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001014/1.194, allocations: 246.4 kB / 1.119 GB, free: 0.5156 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0007128/1.195, allocations: 189.4 kB / 1.119 GB, free: 480 kB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 5.55e-06/1.195, allocations: 3.938 kB / 1.119 GB, free: 476 kB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0002223/1.195, allocations: 76.77 kB / 1.119 GB, free: 456 kB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009495/1.196, allocations: 156.4 kB / 1.119 GB, free: 400 kB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001295/1.197, allocations: 0.56 MB / 1.12 GB, free: 36 kB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005014/1.198, allocations: 0.7973 MB / 1.121 GB, free: 15.32 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.0003615/1.198, allocations: 72.09 kB / 1.121 GB, free: 15.31 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.877e-05/1.198, allocations: 29.95 kB / 1.121 GB, free: 15.3 MB / 0.8887 GB Notification: Performance of SimCode: time 6.31e-07/1.198, allocations: 3.938 kB / 1.121 GB, free: 15.3 MB / 0.8887 GB Notification: Performance of Templates: time 0.02013/1.219, allocations: 6.583 MB / 1.127 GB, free: 14.75 MB / 0.8887 GB make -j1 -f Buildings_9_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.makefile (rm -f Buildings_9_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe ; mkfifo Buildings_9_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe >> ../files/Buildings_9_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.sim & ./Buildings_9_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_FixedResistances_Examples_HydraulicDiameter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches