Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.FixedResistances.Examples.PlugFlowPipe.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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: "" <> buildModelFMU(Buildings.Fluid.FixedResistances.Examples.PlugFlowPipe,fileNamePrefix="Buildings_10_Buildings_Fluid_FixedResistances_Examples_PlugFlowPipe",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.FixedResistances.Examples.PlugFlowPipe,fileNamePrefix="Buildings_10_Buildings_Fluid_FixedResistances_Examples_PlugFlowPipe",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00783/0.00783, allocations: 96.7 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.001949/0.001949, allocations: 194.3 kB / 16.67 MB, free: 5.973 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.369/1.369, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.53/2.53, allocations: 437.1 MB / 0.7105 GB, free: 5.035 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001208/0.001208, allocations: 59.91 kB / 1.018 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2553/0.2565, allocations: 151.6 MB / 1.166 GB, free: 7.395 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.PlugFlowPipe): time 0.6945/0.951, allocations: 115.2 MB / 1.279 GB, free: 10.69 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.03666/0.9877, allocations: 26.57 MB / 1.305 GB, free: 8.012 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005012/0.9928, allocations: 115.1 kB / 1.305 GB, free: 8.012 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.003472/0.9963, allocations: 1.173 MB / 1.306 GB, free: 7.508 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.01058/1.007, allocations: 3.587 MB / 1.309 GB, free: 5.883 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.006992/1.014, allocations: 2.371 MB / 1.312 GB, free: 4.801 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.009036/1.023, allocations: 6.202 MB / 1.318 GB, free: 2.008 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002991/1.026, allocations: 1.928 MB / 1.32 GB, free: 1.129 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006543/1.033, allocations: 2.692 MB / 1.322 GB, free: 16 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003779/1.036, allocations: 1.767 MB / 1.324 GB, free: 15.32 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.0006495/1.037, allocations: 220.8 kB / 1.324 GB, free: 15.32 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007527/1.045, allocations: 2.354 MB / 1.326 GB, free: 14.44 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.001263/1.046, allocations: 0.5293 MB / 1.327 GB, free: 14.09 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.003082/1.049, allocations: 1.285 MB / 1.328 GB, free: 13.31 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.01073/1.06, allocations: 4.119 MB / 1.332 GB, free: 11.77 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 7.604e-06/1.06, allocations: 0 / 1.332 GB, free: 11.77 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.853e-06/1.06, allocations: 0 / 1.332 GB, free: 11.77 MB / 1.014 GB Notification: Performance of Transformations before backend: time 0.0001055/1.06, allocations: 1.219 kB / 1.332 GB, free: 11.77 MB / 1.014 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 343 * Number of variables: 343 Notification: Performance of Generate backend data structure: time 0.007583/1.067, allocations: 2.91 MB / 1.335 GB, free: 9.938 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.326e-05/1.068, allocations: 8.844 kB / 1.335 GB, free: 9.938 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002805/1.068, allocations: 205.3 kB / 1.335 GB, free: 9.805 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008872/1.069, allocations: 276.8 kB / 1.336 GB, free: 9.664 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004966/1.074, allocations: 2.151 MB / 1.338 GB, free: 8.504 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001084/1.074, allocations: 107.1 kB / 1.338 GB, free: 8.453 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002303/1.074, allocations: 143.4 kB / 1.338 GB, free: 8.402 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002692/1.077, allocations: 1.45 MB / 1.339 GB, free: 7.711 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.226e-05/1.077, allocations: 5.109 kB / 1.339 GB, free: 7.711 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001343/1.077, allocations: 61.5 kB / 1.339 GB, free: 7.664 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.475e-05/1.077, allocations: 38.75 kB / 1.339 GB, free: 7.66 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002084/1.079, allocations: 1.029 MB / 1.34 GB, free: 7.277 MB / 1.014 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.009469/1.089, allocations: 8.14 MB / 1.348 GB, free: 0.7344 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001557/1.09, allocations: 0.8333 MB / 1.349 GB, free: 268 kB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006198/1.091, allocations: 382.6 kB / 1.35 GB, free: 76 kB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002/1.093, allocations: 2.805 MB / 1.352 GB, free: 12.77 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.775e-05/1.093, allocations: 43.27 kB / 1.352 GB, free: 12.73 MB / 1.029 GB Notification: Performance of pre-optimization done (n=85): time 3.196e-06/1.093, allocations: 0 / 1.352 GB, free: 12.73 MB / 1.029 GB Notification: Performance of matching and sorting (n=85): time 0.002651/1.096, allocations: 1.134 MB / 1.353 GB, free: 12.18 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.051e-05/1.096, allocations: 65.28 kB / 1.354 GB, free: 12.12 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002514/1.098, allocations: 1.623 MB / 1.355 GB, free: 11.21 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 0.0001491/1.098, allocations: 43.23 kB / 1.355 GB, free: 11.16 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007382/1.099, allocations: 0.9464 MB / 1.356 GB, free: 10.32 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003363/1.099, allocations: 318.3 kB / 1.356 GB, free: 10.05 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003273/1.1, allocations: 233.8 kB / 1.357 GB, free: 9.906 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001206/1.1, allocations: 352.9 kB / 1.357 GB, free: 9.566 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006116/1.1, allocations: 333.5 kB / 1.357 GB, free: 9.398 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008933/1.101, allocations: 0.7018 MB / 1.358 GB, free: 8.738 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001557/1.103, allocations: 1.087 MB / 1.359 GB, free: 7.887 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.009e-05/1.103, allocations: 5.406 kB / 1.359 GB, free: 7.887 MB / 1.029 GB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002599/1.106, allocations: 1.26 MB / 1.36 GB, free: 7.262 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 3.208e-05/1.106, allocations: 9.031 kB / 1.36 GB, free: 7.262 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.727e-05/1.106, allocations: 18.97 kB / 1.36 GB, free: 7.258 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.451e-05/1.106, allocations: 18.03 kB / 1.36 GB, free: 7.258 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008733/1.107, allocations: 255.6 kB / 1.361 GB, free: 7.199 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.907e-05/1.107, allocations: 25.36 kB / 1.361 GB, free: 7.191 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001779/1.108, allocations: 146.7 kB / 1.361 GB, free: 7.09 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000176/1.109, allocations: 65.69 kB / 1.361 GB, free: 7.074 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001286/1.11, allocations: 0.6191 MB / 1.361 GB, free: 6.703 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009052/1.111, allocations: 0.7091 MB / 1.362 GB, free: 6.035 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001629/1.112, allocations: 1.075 MB / 1.363 GB, free: 5.188 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.075e-06/1.112, allocations: 4.906 kB / 1.363 GB, free: 5.188 MB / 1.029 GB Notification: Performance of matching and sorting (n=144) (initialization_lambda0): time 0.002571/1.115, allocations: 1.258 MB / 1.364 GB, free: 4.547 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.337e-05/1.115, allocations: 12.94 kB / 1.364 GB, free: 4.547 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.43e-05/1.115, allocations: 21.3 kB / 1.364 GB, free: 4.539 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.969e-05/1.115, allocations: 19.25 kB / 1.364 GB, free: 4.539 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008215/1.116, allocations: 258 kB / 1.365 GB, free: 4.477 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.239e-05/1.116, allocations: 22.44 kB / 1.365 GB, free: 4.473 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00153/1.118, allocations: 103.3 kB / 1.365 GB, free: 4.406 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001288/1.118, allocations: 65.52 kB / 1.365 GB, free: 4.391 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (140): * Single equations (assignments): 136 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.0003974/1.118, allocations: 259.5 kB / 1.365 GB, free: 4.148 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005415/1.119, allocations: 196.6 kB / 1.365 GB, free: 4.043 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003075/1.122, allocations: 1.748 MB / 1.367 GB, free: 3.066 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.077e-05/1.122, allocations: 20.89 kB / 1.367 GB, free: 3.059 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.909e-06/1.122, allocations: 0 / 1.367 GB, free: 3.059 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001748/1.124, allocations: 1.152 MB / 1.368 GB, free: 2.406 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006626/1.13, allocations: 3.481 MB / 1.371 GB, free: 15.99 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.08e-05/1.13, allocations: 20.58 kB / 1.371 GB, free: 15.98 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007111/1.131, allocations: 203.1 kB / 1.372 GB, free: 15.93 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.435e-05/1.131, allocations: 11.5 kB / 1.372 GB, free: 15.93 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.768e-05/1.131, allocations: 39.05 kB / 1.372 GB, free: 15.91 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.46e-05/1.131, allocations: 15.19 kB / 1.372 GB, free: 15.91 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.512e-06/1.131, allocations: 10.25 kB / 1.372 GB, free: 15.9 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003625/1.135, allocations: 2.244 MB / 1.374 GB, free: 14.52 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001069/1.136, allocations: 449.2 kB / 1.374 GB, free: 14.15 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002768/1.136, allocations: 29.34 kB / 1.374 GB, free: 14.13 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009049/1.137, allocations: 47.12 kB / 1.374 GB, free: 14.11 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001675/1.137, allocations: 121.3 kB / 1.375 GB, free: 14.04 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.954e-05/1.137, allocations: 62.97 kB / 1.375 GB, free: 14.02 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.001549/1.139, allocations: 1.084 MB / 1.376 GB, free: 13.41 MB / 1.045 GB Notification: Performance of sort global known variables: time 3.61e-07/1.139, allocations: 0 / 1.376 GB, free: 13.41 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.003806/1.143, allocations: 1.143 MB / 1.377 GB, free: 13.11 MB / 1.045 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 6 (pip.del.x,pip.timDel.x,pip.vol_b.dynBal.U,pip.vol_a.dynBal.U,pipNoMix.del.x,pipNoMix.timDel.x) * 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 (129): * Single equations (assignments): 102 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 27 * 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.005302/1.148, allocations: 3.489 MB / 1.38 GB, free: 9.797 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.002909/1.151, allocations: 1.817 MB / 1.382 GB, free: 7.938 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 5.47e-06/1.151, allocations: 0 / 1.382 GB, free: 7.938 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.001151/1.152, allocations: 0.8221 MB / 1.383 GB, free: 7.094 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004648/1.157, allocations: 0.9729 MB / 1.384 GB, free: 6.129 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01767/1.175, allocations: 12.55 MB / 1.396 GB, free: 8.918 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009101/1.175, allocations: 1.436 MB / 1.397 GB, free: 7.445 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.001762/1.177, allocations: 0.5423 MB / 1.398 GB, free: 6.902 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001004/1.178, allocations: 0.8467 MB / 1.399 GB, free: 6.055 MB / 1.061 GB Notification: Performance of SimCode: time 8.11e-07/1.178, allocations: 4 kB / 1.399 GB, free: 6.051 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09294/1.271, allocations: 58.78 MB / 1.456 GB, free: 11.96 MB / 1.123 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.03/13.3, allocations: 15.39 kB / 1.456 GB, free: 11.95 MB / 1.123 GB (rm -f Buildings_10_Buildings.Fluid.FixedResistances.Examples.PlugFlowPipe.pipe ; mkfifo Buildings_10_Buildings.Fluid.FixedResistances.Examples.PlugFlowPipe.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.FixedResistances.Examples.PlugFlowPipe.pipe >> ../files/Buildings_10_Buildings.Fluid.FixedResistances.Examples.PlugFlowPipe.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Fluid.FixedResistances.Examples.PlugFlowPipe_res.csv --start-time 0 --stop-time 1000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.4 Buildings_10_Buildings_Fluid_FixedResistances_Examples_PlugFlowPipe.fmu > Buildings_10_Buildings.Fluid.FixedResistances.Examples.PlugFlowPipe.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.FixedResistances.Examples.PlugFlowPipe_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_FixedResistances_Examples_PlugFlowPipe.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.FixedResistances.Examples.PlugFlowPipe.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches