Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.FixedResistances.Examples.Pipe.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.Pipe,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pip.vol.1..T|pip.vol.5..T|pip.vol.10..T",fileNamePrefix="Buildings_9_Buildings.Fluid.FixedResistances.Examples.Pipe") translateModel(Buildings.Fluid.FixedResistances.Examples.Pipe,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pip.vol.1..T|pip.vol.5..T|pip.vol.10..T",fileNamePrefix="Buildings_9_Buildings.Fluid.FixedResistances.Examples.Pipe") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001079/0.001079, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.001366/0.001366, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.518/1.518, allocations: 223.3 MB / 240 MB, free: 5.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.659/2.659, allocations: 390.9 MB / 0.666 GB, free: 2.508 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004093/0.0004097, allocations: 8 kB / 0.8154 GB, free: 13.68 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8573/0.8577, allocations: 142.4 MB / 0.9544 GB, free: 7.75 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.Pipe): time 0.04787/0.9057, allocations: 42.38 MB / 0.9958 GB, free: 5.043 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.01639/0.9221, allocations: 10.8 MB / 1.006 GB, free: 10.22 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002436/0.9246, allocations: 51.69 kB / 1.006 GB, free: 10.17 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.002139/0.9267, allocations: 0.4929 MB / 1.007 GB, free: 9.676 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.005776/0.9325, allocations: 1.757 MB / 1.009 GB, free: 7.91 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.00412/0.9367, allocations: 1.123 MB / 1.01 GB, free: 6.801 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.02761/0.9643, allocations: 24.92 MB / 1.034 GB, free: 13.81 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01402/0.9784, allocations: 6.422 MB / 1.04 GB, free: 7.32 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01511/0.9935, allocations: 5.443 MB / 1.046 GB, free: 1.855 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01052/1.004, allocations: 5.313 MB / 1.051 GB, free: 12.52 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.002005/1.006, allocations: 288 kB / 1.051 GB, free: 12.23 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006597/1.013, allocations: 1.088 MB / 1.052 GB, free: 11.14 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.002633/1.015, allocations: 1.35 MB / 1.053 GB, free: 9.789 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.004784/1.02, allocations: 1.584 MB / 1.055 GB, free: 8.195 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.01368/1.034, allocations: 10.26 MB / 1.065 GB, free: 13.91 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/1.034, allocations: 4 kB / 1.065 GB, free: 13.91 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.673e-06/1.034, allocations: 0 / 1.065 GB, free: 13.91 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 0.0004244/1.034, allocations: 0 / 1.065 GB, free: 13.91 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1302 * Number of variables: 1302 Notification: Performance of Generate backend data structure: time 0.01715/1.052, allocations: 6.701 MB / 1.072 GB, free: 7.121 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.854e-05/1.052, allocations: 12.03 kB / 1.072 GB, free: 7.109 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005371/1.057, allocations: 0.8501 MB / 1.072 GB, free: 6.25 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01673/1.074, allocations: 7.615 MB / 1.08 GB, free: 14.55 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004322/1.074, allocations: 415.9 kB / 1.08 GB, free: 14.14 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001907/1.076, allocations: 0.5037 MB / 1.081 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0175/1.094, allocations: 7.648 MB / 1.088 GB, free: 5.699 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000138/1.094, allocations: 27.7 kB / 1.088 GB, free: 5.672 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007334/1.095, allocations: 224 kB / 1.088 GB, free: 5.453 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001797/1.095, allocations: 163.9 kB / 1.089 GB, free: 5.293 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01184/1.107, allocations: 6.04 MB / 1.095 GB, free: 15.23 MB / 0.8575 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.04139/1.148, allocations: 29.28 MB / 1.123 GB, free: 0.6875 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005488/1.154, allocations: 3.378 MB / 1.126 GB, free: 13.32 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002633/1.156, allocations: 1.952 MB / 1.128 GB, free: 11.37 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001039/1.157, allocations: 1.006 MB / 1.129 GB, free: 10.16 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.687e-05/1.157, allocations: 81.06 kB / 1.129 GB, free: 10.07 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=253): time 4.819e-06/1.157, allocations: 0 / 1.129 GB, free: 10.07 MB / 0.8887 GB Notification: Performance of matching and sorting (n=253): time 0.008292/1.166, allocations: 4.691 MB / 1.134 GB, free: 5.375 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.084e-05/1.166, allocations: 77.41 kB / 1.134 GB, free: 5.289 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00887/1.175, allocations: 6.103 MB / 1.14 GB, free: 15.17 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 0.0005703/1.175, allocations: 81.7 kB / 1.14 GB, free: 15.09 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.002655/1.178, allocations: 2.98 MB / 1.143 GB, free: 12.08 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.001244/1.179, allocations: 0.8974 MB / 1.144 GB, free: 11.17 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001731/1.179, allocations: 76 kB / 1.144 GB, free: 11.1 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0002317/1.18, allocations: 449.2 kB / 1.144 GB, free: 10.65 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002511/1.182, allocations: 1.619 MB / 1.146 GB, free: 9.031 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003442/1.186, allocations: 2.67 MB / 1.149 GB, free: 5.91 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003336/1.189, allocations: 2.215 MB / 1.151 GB, free: 3.676 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.073e-05/1.189, allocations: 12 kB / 1.151 GB, free: 3.664 MB / 0.9044 GB Notification: Performance of matching and sorting (n=436) (initialization): time 0.01083/1.2, allocations: 4.939 MB / 1.156 GB, free: 14.68 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 0.001/1.201, allocations: 1.032 MB / 1.157 GB, free: 13.2 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.447e-05/1.201, allocations: 36 kB / 1.157 GB, free: 13.16 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.592e-05/1.201, allocations: 52 kB / 1.157 GB, free: 13.11 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003172/1.204, allocations: 0.8151 MB / 1.157 GB, free: 12.3 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007939/1.205, allocations: 1.254 MB / 1.159 GB, free: 11 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005411/1.21, allocations: 0.6124 MB / 1.159 GB, free: 10.38 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00038/1.211, allocations: 160 kB / 1.159 GB, free: 10.22 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.084e-05/1.211, allocations: 4 kB / 1.159 GB, free: 10.22 MB / 0.92 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007248/1.218, allocations: 4.427 MB / 1.164 GB, free: 5.754 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.712e-05/1.218, allocations: 32 kB / 1.164 GB, free: 5.723 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.519e-05/1.218, allocations: 56.83 kB / 1.164 GB, free: 5.668 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002631/1.221, allocations: 0.7879 MB / 1.165 GB, free: 4.879 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.188e-05/1.221, allocations: 71.73 kB / 1.165 GB, free: 4.809 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005237/1.226, allocations: 0.5507 MB / 1.165 GB, free: 4.254 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003627/1.227, allocations: 160 kB / 1.165 GB, free: 4.098 MB / 0.92 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 142 * 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 (436): * Single equations (assignments): 434 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005438/1.232, allocations: 2.525 MB / 1.168 GB, free: 1.559 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002214/1.234, allocations: 0.5636 MB / 1.168 GB, free: 0.9883 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007402/1.242, allocations: 3.898 MB / 1.172 GB, free: 13.03 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.486e-05/1.242, allocations: 28 kB / 1.172 GB, free: 13 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.303e-05/1.242, allocations: 0 / 1.172 GB, free: 13 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004518/1.246, allocations: 2.99 MB / 1.175 GB, free: 9.957 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02062/1.267, allocations: 9.745 MB / 1.185 GB, free: 80 kB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.534e-05/1.267, allocations: 8.094 kB / 1.185 GB, free: 72 kB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002512/1.27, allocations: 0.5892 MB / 1.185 GB, free: 15.48 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.503e-05/1.27, allocations: 12 kB / 1.185 GB, free: 15.46 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003072/1.27, allocations: 83.91 kB / 1.185 GB, free: 15.38 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006795/1.271, allocations: 1.184 MB / 1.186 GB, free: 14.15 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.57e-06/1.271, allocations: 3.984 kB / 1.186 GB, free: 14.15 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009951/1.281, allocations: 5.638 MB / 1.192 GB, free: 8.402 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004473/1.285, allocations: 1.317 MB / 1.193 GB, free: 7.059 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002012/1.287, allocations: 63.98 kB / 1.193 GB, free: 6.996 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005594/1.293, allocations: 386.8 kB / 1.194 GB, free: 6.617 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005762/1.293, allocations: 157.7 kB / 1.194 GB, free: 6.461 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007299/1.294, allocations: 147.8 kB / 1.194 GB, free: 6.316 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.01072/1.305, allocations: 4.301 MB / 1.198 GB, free: 2.016 MB / 0.9512 GB Notification: Performance of sort global known variables: time 8.42e-07/1.305, allocations: 7.766 kB / 1.198 GB, free: 2.012 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.01606/1.321, allocations: 3.246 MB / 1.201 GB, free: 14.75 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 22 (pip.vol[1].dynBal.U,pip.vol[2].dynBal.U,pip.vol[3].dynBal.U,pip.vol[4].dynBal.U,pip.vol[5].dynBal.U,pip.vol[6].dynBal.U,pip.vol[7].dynBal.U,pip.vol[8].dynBal.U,pip.vol[9].dynBal.U,pip.vol[10].dynBal.U,pip1.vol[1].dynBal.U,pip1.vol[2].dynBal.U,pip1.vol[3].dynBal.U,pip1.vol[4].dynBal.U,pip1.vol[5].dynBal.U,pip1.vol[6].dynBal.U,pip1.vol[7].dynBal.U,pip1.vol[8].dynBal.U,pip1.vol[9].dynBal.U,pip1.vol[10].dynBal.U,senTem.T,senTem1.T) * 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 (259): * Single equations (assignments): 251 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001683/1.323, allocations: 469.8 kB / 1.202 GB, free: 14.3 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.01237/1.335, allocations: 5.996 MB / 1.208 GB, free: 8.281 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.628e-05/1.335, allocations: 4.562 kB / 1.208 GB, free: 8.277 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.003227/1.339, allocations: 1.597 MB / 1.209 GB, free: 6.676 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02309/1.362, allocations: 3.943 MB / 1.213 GB, free: 2.797 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03591/1.398, allocations: 15.93 MB / 1.229 GB, free: 2.82 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009345/1.407, allocations: 4.552 MB / 1.233 GB, free: 14.24 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.01221/1.419, allocations: 2.87 MB / 1.236 GB, free: 11.37 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002435/1.422, allocations: 475.2 kB / 1.236 GB, free: 10.9 MB / 0.9981 GB Notification: Performance of SimCode: time 1.754e-06/1.422, allocations: 0 / 1.236 GB, free: 10.9 MB / 0.9981 GB Notification: Performance of Templates: time 0.8379/2.26, allocations: 124.9 MB / 1.358 GB, free: 172.8 MB / 0.9981 GB make -j1 -f Buildings_9_Buildings.Fluid.FixedResistances.Examples.Pipe.makefile (rm -f Buildings_9_Buildings.Fluid.FixedResistances.Examples.Pipe.pipe ; mkfifo Buildings_9_Buildings.Fluid.FixedResistances.Examples.Pipe.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.FixedResistances.Examples.Pipe.pipe >> ../files/Buildings_9_Buildings.Fluid.FixedResistances.Examples.Pipe.sim & ./Buildings_9_Buildings.Fluid.FixedResistances.Examples.Pipe -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.FixedResistances.Examples.Pipe.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.FixedResistances.Examples.Pipe_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_FixedResistances_Examples_Pipe.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.FixedResistances.Examples.Pipe.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches