Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_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 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.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_latest_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_latest_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.00128/0.00128, allocations: 99.31 kB / 15.05 MB, free: 1.105 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.001856/0.001857, allocations: 177.3 kB / 15.94 MB, free: 220 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.456/1.456, allocations: 223.2 MB / 239.9 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.749/2.749, allocations: 436.5 MB / 0.7104 GB, free: 7.895 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003894/0.0003894, allocations: 12 kB / 0.8707 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8193/0.8197, allocations: 153.7 MB / 1.021 GB, free: 1.211 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.Pipe): time 0.04033/0.8601, allocations: 38.51 MB / 1.058 GB, free: 10.6 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.01621/0.8763, allocations: 9.979 MB / 1.068 GB, free: 0.5977 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002628/0.879, allocations: 51.69 kB / 1.068 GB, free: 0.5469 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.002674/0.8817, allocations: 0.6257 MB / 1.069 GB, free: 15.92 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.007991/0.8897, allocations: 1.993 MB / 1.071 GB, free: 13.92 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.006367/0.8961, allocations: 1.548 MB / 1.072 GB, free: 12.4 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0194/0.9155, allocations: 12.19 MB / 1.084 GB, free: 200 kB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01371/0.9293, allocations: 6.44 MB / 1.09 GB, free: 9.688 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01306/0.9424, allocations: 4.582 MB / 1.095 GB, free: 5.09 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01065/0.9531, allocations: 3.683 MB / 1.099 GB, free: 1.391 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.002866/0.9561, allocations: 288 kB / 1.099 GB, free: 1.109 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008092/0.9642, allocations: 0.9872 MB / 1.1 GB, free: 124 kB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.004032/0.9683, allocations: 1.3 MB / 1.101 GB, free: 14.81 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.005459/0.9737, allocations: 1.58 MB / 1.103 GB, free: 13.22 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.01794/0.9917, allocations: 10.16 MB / 1.113 GB, free: 3.039 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.612e-06/0.9918, allocations: 0 / 1.113 GB, free: 3.039 MB / 0.8575 GB Notification: Performance of FrontEnd: time 6.553e-06/0.9918, allocations: 0 / 1.113 GB, free: 3.039 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 0.0008562/0.9927, allocations: 4 kB / 1.113 GB, free: 3.035 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: 1302 * Number of variables: 1302 Notification: Performance of Generate backend data structure: time 0.0265/1.019, allocations: 6.685 MB / 1.119 GB, free: 12.27 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 8.415e-05/1.019, allocations: 15.92 kB / 1.119 GB, free: 12.25 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007557/1.027, allocations: 0.8617 MB / 1.12 GB, free: 11.38 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02237/1.049, allocations: 6.992 MB / 1.127 GB, free: 4.309 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006722/1.05, allocations: 415.9 kB / 1.127 GB, free: 3.895 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002649/1.053, allocations: 0.5154 MB / 1.128 GB, free: 3.379 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02438/1.077, allocations: 7.597 MB / 1.135 GB, free: 11.49 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003831/1.078, allocations: 19.78 kB / 1.135 GB, free: 11.47 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002268/1.08, allocations: 228 kB / 1.135 GB, free: 11.25 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002799/1.08, allocations: 167.9 kB / 1.135 GB, free: 11.09 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01806/1.098, allocations: 6.04 MB / 1.141 GB, free: 5.031 MB / 0.8887 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.06377/1.162, allocations: 29.65 MB / 1.17 GB, free: 6.113 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008128/1.17, allocations: 3.595 MB / 1.174 GB, free: 2.535 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001508/1.172, allocations: 1.002 MB / 1.175 GB, free: 1.332 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001491/1.172, allocations: 73.12 kB / 1.175 GB, free: 1.254 MB / 0.92 GB Notification: Performance of pre-optimization done (n=253): time 1.065e-05/1.172, allocations: 0 / 1.175 GB, free: 1.254 MB / 0.92 GB Notification: Performance of matching and sorting (n=253): time 0.0116/1.184, allocations: 4.672 MB / 1.179 GB, free: 12.57 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.992e-05/1.184, allocations: 81.34 kB / 1.179 GB, free: 12.48 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0157/1.199, allocations: 6.697 MB / 1.186 GB, free: 5.77 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.0009061/1.2, allocations: 81.7 kB / 1.186 GB, free: 5.684 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.004514/1.205, allocations: 3.008 MB / 1.189 GB, free: 2.652 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.002178/1.207, allocations: 0.8974 MB / 1.19 GB, free: 1.742 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006513/1.208, allocations: 71.94 kB / 1.19 GB, free: 1.672 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0004902/1.208, allocations: 449.1 kB / 1.19 GB, free: 1.227 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003547/1.212, allocations: 1.615 MB / 1.192 GB, free: 15.61 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004428/1.216, allocations: 2.651 MB / 1.195 GB, free: 12.51 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004572/1.221, allocations: 2.207 MB / 1.197 GB, free: 10.28 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.157e-05/1.221, allocations: 8 kB / 1.197 GB, free: 10.27 MB / 0.9512 GB Notification: Performance of matching and sorting (n=436) (initialization): time 0.0133/1.234, allocations: 4.935 MB / 1.202 GB, free: 5.289 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 0.00975/1.244, allocations: 15.13 MB / 1.216 GB, free: 5.18 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001615/1.244, allocations: 32 kB / 1.216 GB, free: 5.148 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001381/1.245, allocations: 52 kB / 1.216 GB, free: 5.098 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004985/1.25, allocations: 0.889 MB / 1.217 GB, free: 4.211 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001198/1.251, allocations: 1.254 MB / 1.219 GB, free: 2.91 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008255/1.259, allocations: 0.6548 MB / 1.219 GB, free: 2.25 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001041/1.26, allocations: 160 kB / 1.219 GB, free: 2.094 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.601e-05/1.26, allocations: 5.875 kB / 1.219 GB, free: 2.09 MB / 0.9669 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01021/1.27, allocations: 4.424 MB / 1.224 GB, free: 13.63 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001081/1.271, allocations: 32 kB / 1.224 GB, free: 13.6 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.016e-05/1.271, allocations: 55.98 kB / 1.224 GB, free: 13.54 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003518/1.274, allocations: 0.8542 MB / 1.225 GB, free: 12.69 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001061/1.274, allocations: 63.8 kB / 1.225 GB, free: 12.62 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006338/1.281, allocations: 0.5893 MB / 1.225 GB, free: 12.03 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000838/1.281, allocations: 160 kB / 1.225 GB, free: 11.88 MB / 0.9825 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.006412/1.288, allocations: 2.525 MB / 1.228 GB, free: 9.336 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002737/1.291, allocations: 0.5635 MB / 1.228 GB, free: 8.766 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009127/1.3, allocations: 3.898 MB / 1.232 GB, free: 4.809 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.031e-05/1.3, allocations: 24 kB / 1.232 GB, free: 4.785 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.518e-05/1.3, allocations: 0 / 1.232 GB, free: 4.785 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005276/1.305, allocations: 2.994 MB / 1.235 GB, free: 1.738 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02925/1.335, allocations: 9.924 MB / 1.245 GB, free: 7.676 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.406e-05/1.335, allocations: 0 / 1.245 GB, free: 7.676 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00323/1.338, allocations: 0.5501 MB / 1.245 GB, free: 7.125 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.242e-05/1.338, allocations: 12 kB / 1.245 GB, free: 7.113 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004524/1.338, allocations: 75.94 kB / 1.245 GB, free: 7.039 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008549/1.339, allocations: 1.188 MB / 1.247 GB, free: 5.805 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/1.339, allocations: 8.062 kB / 1.247 GB, free: 5.797 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.77/2.109, allocations: 5.749 MB / 1.252 GB, free: 207.5 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006483/2.116, allocations: 1.431 MB / 1.254 GB, free: 207.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002648/2.119, allocations: 64.48 kB / 1.254 GB, free: 207.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006715/2.125, allocations: 393 kB / 1.254 GB, free: 207.4 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006853/2.126, allocations: 151.6 kB / 1.254 GB, free: 207.4 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007751/2.127, allocations: 142.8 kB / 1.254 GB, free: 207.4 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.01461/2.141, allocations: 4.774 MB / 1.259 GB, free: 206.2 MB / 0.9981 GB Notification: Performance of sort global known variables: time 9.41e-07/2.141, allocations: 0 / 1.259 GB, free: 206.2 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.01846/2.16, allocations: 3.283 MB / 1.262 GB, free: 206 MB / 0.9981 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.002436/2.162, allocations: 491.4 kB / 1.263 GB, free: 205.9 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.01595/2.178, allocations: 5.986 MB / 1.269 GB, free: 204 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-05/2.178, allocations: 5.969 kB / 1.269 GB, free: 204 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.004475/2.183, allocations: 1.592 MB / 1.27 GB, free: 203.5 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02446/2.207, allocations: 3.9 MB / 1.274 GB, free: 202.8 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03347/2.241, allocations: 15.83 MB / 1.289 GB, free: 194.8 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004217/2.245, allocations: 4.677 MB / 1.294 GB, free: 193.1 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.01068/2.256, allocations: 2.874 MB / 1.297 GB, free: 191.2 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002075/2.258, allocations: 483.2 kB / 1.297 GB, free: 190.7 MB / 0.9981 GB Notification: Performance of SimCode: time 1.242e-06/2.258, allocations: 0 / 1.297 GB, free: 190.7 MB / 0.9981 GB Notification: Performance of Templates: time 0.1899/2.448, allocations: 128 MB / 1.422 GB, free: 63.88 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Fluid.FixedResistances.Examples.Pipe.makefile (rm -f Buildings_latest_Buildings.Fluid.FixedResistances.Examples.Pipe.pipe ; mkfifo Buildings_latest_Buildings.Fluid.FixedResistances.Examples.Pipe.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.FixedResistances.Examples.Pipe.pipe >> ../files/Buildings_latest_Buildings.Fluid.FixedResistances.Examples.Pipe.sim & ./Buildings_latest_Buildings.Fluid.FixedResistances.Examples.Pipe -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.FixedResistances.Examples.Pipe.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.FixedResistances.Examples.Pipe_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_FixedResistances_Examples_Pipe.csv","../files/Buildings_latest_Buildings.Fluid.FixedResistances.Examples.Pipe.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches