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.001083/0.001083, allocations: 92.23 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001469/0.001469, allocations: 177.7 kB / 16.92 MB, free: 6.652 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: 223.3 MB / 241 MB, free: 5.254 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.929/2.929, allocations: 462.6 MB / 0.737 GB, free: 15.54 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003934/0.0003935, allocations: 9.938 kB / 0.9034 GB, free: 36.34 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3457/0.3461, allocations: 159.6 MB / 1.059 GB, free: 4.934 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.Pipe): time 0.05596/0.4021, allocations: 44.81 MB / 1.103 GB, free: 7.965 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.01899/0.4211, allocations: 11.46 MB / 1.114 GB, free: 12.48 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002569/0.4238, allocations: 51.69 kB / 1.114 GB, free: 12.43 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.002235/0.426, allocations: 0.5593 MB / 1.115 GB, free: 11.87 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.007007/0.4331, allocations: 2.053 MB / 1.117 GB, free: 9.809 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.004417/0.4375, allocations: 1.368 MB / 1.118 GB, free: 8.453 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.03262/0.4701, allocations: 29.34 MB / 1.147 GB, free: 11.04 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01083/0.481, allocations: 7.331 MB / 1.154 GB, free: 3.617 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01106/0.4921, allocations: 5.372 MB / 1.159 GB, free: 14.22 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00982/0.5019, allocations: 5.623 MB / 1.165 GB, free: 8.574 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.002025/0.504, allocations: 288 kB / 1.165 GB, free: 8.293 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006432/0.5105, allocations: 1.396 MB / 1.166 GB, free: 6.895 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.00319/0.5137, allocations: 1.427 MB / 1.168 GB, free: 5.461 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.008095/0.5218, allocations: 3.752 MB / 1.171 GB, free: 1.684 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.01257/0.5344, allocations: 10.33 MB / 1.182 GB, free: 7.324 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.5344, allocations: 0 / 1.182 GB, free: 7.324 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.234e-06/0.5344, allocations: 0 / 1.182 GB, free: 7.324 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 0.0004732/0.5349, allocations: 0 / 1.182 GB, free: 7.324 MB / 0.9356 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.01663/0.5516, allocations: 6.642 MB / 1.188 GB, free: 0.5977 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.304e-05/0.5516, allocations: 8.031 kB / 1.188 GB, free: 0.5898 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004821/0.5565, allocations: 0.8549 MB / 1.189 GB, free: 15.72 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01668/0.5732, allocations: 7.802 MB / 1.196 GB, free: 7.836 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005578/0.5738, allocations: 419.9 kB / 1.197 GB, free: 7.418 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002152/0.576, allocations: 0.5076 MB / 1.197 GB, free: 6.91 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01928/0.5953, allocations: 7.683 MB / 1.205 GB, free: 14.94 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.00032/0.5956, allocations: 23.77 kB / 1.205 GB, free: 14.91 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002305/0.598, allocations: 228 kB / 1.205 GB, free: 14.69 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00022/0.5982, allocations: 163.9 kB / 1.205 GB, free: 14.53 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01462/0.6128, allocations: 6.083 MB / 1.211 GB, free: 8.434 MB / 0.9669 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.05147/0.6643, allocations: 29.29 MB / 1.24 GB, free: 9.871 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007006/0.6714, allocations: 3.404 MB / 1.243 GB, free: 6.477 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003634/0.6751, allocations: 1.96 MB / 1.245 GB, free: 4.516 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001513/0.6766, allocations: 1.002 MB / 1.246 GB, free: 3.312 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001061/0.6767, allocations: 81 kB / 1.246 GB, free: 3.223 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=253): time 6.513e-06/0.6768, allocations: 0 / 1.246 GB, free: 3.223 MB / 0.9981 GB Notification: Performance of matching and sorting (n=253): time 0.6361/1.313, allocations: 4.702 MB / 1.251 GB, free: 172 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.113e-05/1.313, allocations: 77.86 kB / 1.251 GB, free: 172 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01466/1.328, allocations: 6.152 MB / 1.257 GB, free: 171.6 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0008186/1.329, allocations: 83.64 kB / 1.257 GB, free: 171.6 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.00372/1.332, allocations: 2.982 MB / 1.26 GB, free: 171.4 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001697/1.334, allocations: 0.8968 MB / 1.261 GB, free: 170.8 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009724/1.335, allocations: 286.6 kB / 1.261 GB, free: 170.8 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 5.822e-05/1.335, allocations: 302.2 kB / 1.261 GB, free: 170.5 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00322/1.338, allocations: 1.64 MB / 1.263 GB, free: 170.5 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00412/1.342, allocations: 2.686 MB / 1.265 GB, free: 169.3 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008263/1.351, allocations: 4.6 MB / 1.27 GB, free: 167.8 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.731e-05/1.351, allocations: 9.188 kB / 1.27 GB, free: 167.8 MB / 0.9981 GB Notification: Performance of matching and sorting (n=436) (initialization): time 0.01228/1.363, allocations: 4.976 MB / 1.275 GB, free: 166 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007008/1.364, allocations: 1.029 MB / 1.276 GB, free: 164.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.474e-05/1.364, allocations: 31.41 kB / 1.276 GB, free: 164.6 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001323/1.364, allocations: 50.19 kB / 1.276 GB, free: 164.6 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003475/1.368, allocations: 0.8103 MB / 1.277 GB, free: 164.5 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007297/1.368, allocations: 1.257 MB / 1.278 GB, free: 163.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005585/1.374, allocations: 0.6102 MB / 1.279 GB, free: 163 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006007/1.375, allocations: 163.3 kB / 1.279 GB, free: 163 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.221e-05/1.375, allocations: 4.672 kB / 1.279 GB, free: 163 MB / 0.9981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008654/1.383, allocations: 4.456 MB / 1.283 GB, free: 161.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.879e-05/1.383, allocations: 31.53 kB / 1.283 GB, free: 161.4 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.748e-05/1.384, allocations: 49.47 kB / 1.283 GB, free: 161.4 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003054/1.387, allocations: 0.7768 MB / 1.284 GB, free: 161.3 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001524/1.387, allocations: 77.09 kB / 1.284 GB, free: 161.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005863/1.393, allocations: 0.5551 MB / 1.284 GB, free: 161 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007294/1.393, allocations: 160.1 kB / 1.285 GB, free: 161 MB / 0.9981 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 (not torn): 2 * 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): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005518/1.399, allocations: 2.532 MB / 1.287 GB, free: 159.9 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002/1.401, allocations: 0.558 MB / 1.288 GB, free: 159.6 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007817/1.409, allocations: 3.914 MB / 1.291 GB, free: 158.1 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.428e-05/1.409, allocations: 27.34 kB / 1.291 GB, free: 158.1 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.379e-05/1.409, allocations: 4.453 kB / 1.291 GB, free: 158.1 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003767/1.413, allocations: 3.008 MB / 1.294 GB, free: 157.1 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01811/1.431, allocations: 9.755 MB / 1.304 GB, free: 151.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-05/1.431, allocations: 3.688 kB / 1.304 GB, free: 151.8 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002306/1.433, allocations: 0.5954 MB / 1.305 GB, free: 151.7 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.379e-05/1.433, allocations: 14.94 kB / 1.305 GB, free: 151.7 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002383/1.433, allocations: 70.36 kB / 1.305 GB, free: 151.6 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004126/1.434, allocations: 1.196 MB / 1.306 GB, free: 150.4 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/1.434, allocations: 0 / 1.306 GB, free: 150.4 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007454/1.441, allocations: 5.659 MB / 1.311 GB, free: 146 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003378/1.445, allocations: 1.318 MB / 1.313 GB, free: 144.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001592/1.446, allocations: 60.92 kB / 1.313 GB, free: 144.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004906/1.451, allocations: 385.6 kB / 1.313 GB, free: 144.2 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004033/1.452, allocations: 149.8 kB / 1.313 GB, free: 144.1 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004743/1.452, allocations: 143.9 kB / 1.313 GB, free: 143.9 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.007347/1.459, allocations: 4.351 MB / 1.318 GB, free: 139.6 MB / 0.9981 GB Notification: Performance of sort global known variables: time 4.21e-07/1.46, allocations: 4 kB / 1.318 GB, free: 139.6 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.01225/1.472, allocations: 3.243 MB / 1.321 GB, free: 136.3 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 (not torn): 2 * 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): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001719/1.474, allocations: 495.7 kB / 1.321 GB, free: 135.9 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.01005/1.484, allocations: 6.031 MB / 1.327 GB, free: 129.8 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.218e-05/1.484, allocations: 4.562 kB / 1.327 GB, free: 129.8 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.002427/1.486, allocations: 1.59 MB / 1.329 GB, free: 128.2 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02225/1.508, allocations: 3.96 MB / 1.333 GB, free: 124.4 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02477/1.533, allocations: 16.53 MB / 1.349 GB, free: 107.8 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004691/1.538, allocations: 4.529 MB / 1.353 GB, free: 103.3 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00204/1.54, allocations: 499.2 kB / 1.354 GB, free: 102.8 MB / 0.9981 GB Notification: Performance of SimCode: time 8.91e-07/1.54, allocations: 0 / 1.354 GB, free: 102.8 MB / 0.9981 GB Notification: Performance of Templates: time 0.2789/1.819, allocations: 191.3 MB / 1.54 GB, free: 7.887 MB / 1.092 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.FixedResistances.Examples.Pipe.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches