Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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: "" <> buildModelFMU(Buildings.Fluid.FixedResistances.Examples.PlugFlowPipe,fileNamePrefix="Buildings_latest_Buildings_Fluid_FixedResistances_Examples_PlugFlowPipe",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.FixedResistances.Examples.PlugFlowPipe,fileNamePrefix="Buildings_latest_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.005083/0.005083, allocations: 98.55 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.001133/0.001133, allocations: 194 kB / 16.67 MB, free: 5.969 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.4/1.4, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.711/2.711, allocations: 469.4 MB / 0.7421 GB, free: 7.574 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00156/0.001561, allocations: 67.84 kB / 1.064 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3062/0.3078, allocations: 159.1 MB / 1.22 GB, free: 14.65 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.PlugFlowPipe): time 0.6708/0.9786, allocations: 115.2 MB / 1.332 GB, free: 11.48 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.03704/1.016, allocations: 26.55 MB / 1.358 GB, free: 8.387 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005256/1.021, allocations: 114.2 kB / 1.358 GB, free: 8.348 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.003704/1.025, allocations: 1.182 MB / 1.359 GB, free: 7.594 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.01098/1.036, allocations: 3.583 MB / 1.363 GB, free: 5.469 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.007262/1.043, allocations: 2.373 MB / 1.365 GB, free: 4.098 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.009401/1.052, allocations: 6.204 MB / 1.371 GB, free: 472 kB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003193/1.056, allocations: 1.932 MB / 1.373 GB, free: 15.21 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00619/1.062, allocations: 2.693 MB / 1.376 GB, free: 13.56 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00348/1.065, allocations: 1.774 MB / 1.378 GB, free: 12.47 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 0.0007081/1.066, allocations: 221 kB / 1.378 GB, free: 12.47 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00619/1.072, allocations: 2.342 MB / 1.38 GB, free: 11.18 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 0.001027/1.073, allocations: 0.5403 MB / 1.381 GB, free: 10.73 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 0.004172/1.078, allocations: 1.277 MB / 1.382 GB, free: 9.891 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.009987/1.088, allocations: 4.121 MB / 1.386 GB, free: 7.188 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/1.088, allocations: 0 / 1.386 GB, free: 7.188 MB / 1.076 GB Notification: Performance of FrontEnd: time 2.024e-06/1.088, allocations: 1.281 kB / 1.386 GB, free: 7.188 MB / 1.076 GB Notification: Performance of Transformations before backend: time 0.0001101/1.088, allocations: 0 / 1.386 GB, free: 7.188 MB / 1.076 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.007711/1.095, allocations: 2.916 MB / 1.389 GB, free: 5.035 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 3.863e-05/1.095, allocations: 10.16 kB / 1.389 GB, free: 5.035 MB / 1.076 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003387/1.096, allocations: 202.9 kB / 1.389 GB, free: 4.871 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000983/1.097, allocations: 266.8 kB / 1.389 GB, free: 4.738 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005061/1.102, allocations: 2.155 MB / 1.391 GB, free: 3.137 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.809e-05/1.102, allocations: 103 kB / 1.391 GB, free: 3.09 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002488/1.102, allocations: 135.5 kB / 1.391 GB, free: 3.047 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002799/1.105, allocations: 1.456 MB / 1.393 GB, free: 2.105 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.701e-05/1.105, allocations: 13.83 kB / 1.393 GB, free: 2.094 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001341/1.105, allocations: 57.47 kB / 1.393 GB, free: 2.051 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.73e-05/1.105, allocations: 37.61 kB / 1.393 GB, free: 2.047 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002176/1.108, allocations: 1.03 MB / 1.394 GB, free: 1.531 MB / 1.076 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.01005/1.118, allocations: 8.147 MB / 1.402 GB, free: 10.02 MB / 1.092 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001583/1.119, allocations: 0.8415 MB / 1.403 GB, free: 9.539 MB / 1.092 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005917/1.12, allocations: 371.5 kB / 1.403 GB, free: 9.363 MB / 1.092 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002078/1.122, allocations: 2.807 MB / 1.406 GB, free: 6.059 MB / 1.092 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.494e-05/1.122, allocations: 45.3 kB / 1.406 GB, free: 6.012 MB / 1.092 GB Notification: Performance of pre-optimization done (n=85): time 3.376e-06/1.122, allocations: 0 / 1.406 GB, free: 6.012 MB / 1.092 GB Notification: Performance of matching and sorting (n=85): time 0.002648/1.125, allocations: 1.128 MB / 1.407 GB, free: 5.457 MB / 1.092 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.369e-05/1.125, allocations: 62.53 kB / 1.407 GB, free: 5.395 MB / 1.092 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002624/1.127, allocations: 1.634 MB / 1.409 GB, free: 4.371 MB / 1.092 GB Notification: Performance of collectPreVariables (initialization): time 0.0001252/1.127, allocations: 41.7 kB / 1.409 GB, free: 4.324 MB / 1.092 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007126/1.128, allocations: 0.9412 MB / 1.41 GB, free: 3.375 MB / 1.092 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003265/1.129, allocations: 333.1 kB / 1.41 GB, free: 3.047 MB / 1.092 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003428/1.129, allocations: 226.8 kB / 1.41 GB, free: 2.816 MB / 1.092 GB Notification: Performance of setup shared object (initialization): time 0.0001292/1.129, allocations: 349.9 kB / 1.411 GB, free: 2.469 MB / 1.092 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006122/1.13, allocations: 333.9 kB / 1.411 GB, free: 2.141 MB / 1.092 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008799/1.13, allocations: 0.7032 MB / 1.412 GB, free: 1.262 MB / 1.092 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00156/1.132, allocations: 1.089 MB / 1.413 GB, free: 8 kB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.889e-06/1.132, allocations: 4 kB / 1.413 GB, free: 4 kB / 1.092 GB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002552/1.135, allocations: 1.247 MB / 1.414 GB, free: 14.75 MB / 1.107 GB Notification: Performance of prepare postOptimizeDAE: time 2.511e-05/1.135, allocations: 16.14 kB / 1.414 GB, free: 14.73 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.656e-05/1.135, allocations: 20 kB / 1.414 GB, free: 14.71 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.704e-05/1.135, allocations: 16 kB / 1.414 GB, free: 14.7 MB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008471/1.136, allocations: 259.5 kB / 1.414 GB, free: 14.45 MB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.293e-05/1.136, allocations: 33.11 kB / 1.414 GB, free: 14.41 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001481/1.137, allocations: 139 kB / 1.414 GB, free: 14.28 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001304/1.137, allocations: 67.97 kB / 1.414 GB, free: 14.21 MB / 1.107 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001105/1.138, allocations: 0.6166 MB / 1.415 GB, free: 13.59 MB / 1.107 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008416/1.139, allocations: 0.711 MB / 1.416 GB, free: 12.71 MB / 1.107 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001498/1.141, allocations: 1.077 MB / 1.417 GB, free: 11.47 MB / 1.107 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.022e-06/1.141, allocations: 0 / 1.417 GB, free: 11.47 MB / 1.107 GB Notification: Performance of matching and sorting (n=144) (initialization_lambda0): time 0.00244/1.143, allocations: 1.25 MB / 1.418 GB, free: 10.21 MB / 1.107 GB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/1.143, allocations: 13.56 kB / 1.418 GB, free: 10.2 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.048e-05/1.143, allocations: 16 kB / 1.418 GB, free: 10.19 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.647e-05/1.143, allocations: 16 kB / 1.418 GB, free: 10.17 MB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008983/1.144, allocations: 263.5 kB / 1.418 GB, free: 9.914 MB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.355e-05/1.144, allocations: 27.92 kB / 1.418 GB, free: 9.887 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001374/1.146, allocations: 99.61 kB / 1.418 GB, free: 9.789 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001215/1.146, allocations: 71.97 kB / 1.418 GB, free: 9.719 MB / 1.107 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.0003127/1.146, allocations: 251.8 kB / 1.419 GB, free: 9.465 MB / 1.107 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004838/1.147, allocations: 198.7 kB / 1.419 GB, free: 9.27 MB / 1.107 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003198/1.15, allocations: 1.751 MB / 1.421 GB, free: 7.512 MB / 1.107 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.187e-05/1.15, allocations: 19.98 kB / 1.421 GB, free: 7.492 MB / 1.107 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.387e-06/1.15, allocations: 3.938 kB / 1.421 GB, free: 7.488 MB / 1.107 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001756/1.152, allocations: 1.146 MB / 1.422 GB, free: 6.312 MB / 1.107 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006242/1.158, allocations: 3.487 MB / 1.425 GB, free: 2.664 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.588e-05/1.158, allocations: 16.11 kB / 1.425 GB, free: 2.648 MB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007611/1.159, allocations: 199.7 kB / 1.425 GB, free: 2.453 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.891e-05/1.159, allocations: 12 kB / 1.425 GB, free: 2.441 MB / 1.107 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.045e-05/1.159, allocations: 43.97 kB / 1.425 GB, free: 2.398 MB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.709e-05/1.159, allocations: 15.94 kB / 1.425 GB, free: 2.383 MB / 1.107 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.58e-06/1.159, allocations: 4 kB / 1.425 GB, free: 2.379 MB / 1.107 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003578/1.162, allocations: 2.247 MB / 1.428 GB, free: 32 kB / 1.107 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001138/1.164, allocations: 451.2 kB / 1.428 GB, free: 15.57 MB / 1.123 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005669/1.164, allocations: 39.98 kB / 1.428 GB, free: 15.53 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001212/1.165, allocations: 39.98 kB / 1.428 GB, free: 15.49 MB / 1.123 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002094/1.166, allocations: 124.6 kB / 1.428 GB, free: 15.37 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000146/1.166, allocations: 63.95 kB / 1.428 GB, free: 15.3 MB / 1.123 GB Notification: Performance of sorting global known variables: time 0.002091/1.168, allocations: 1.083 MB / 1.429 GB, free: 14.2 MB / 1.123 GB Notification: Performance of sort global known variables: time 3.7e-07/1.168, allocations: 4 kB / 1.429 GB, free: 14.2 MB / 1.123 GB Notification: Performance of remove unused functions: time 0.004381/1.172, allocations: 1.146 MB / 1.43 GB, free: 13.05 MB / 1.123 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.00584/1.178, allocations: 3.484 MB / 1.434 GB, free: 9.469 MB / 1.123 GB Notification: Performance of simCode: created initialization part: time 0.003244/1.181, allocations: 1.813 MB / 1.436 GB, free: 7.613 MB / 1.123 GB Notification: Performance of simCode: created event and clocks part: time 6.692e-06/1.181, allocations: 4.062 kB / 1.436 GB, free: 7.609 MB / 1.123 GB Notification: Performance of simCode: created simulation system equations: time 0.001269/1.183, allocations: 0.8221 MB / 1.436 GB, free: 6.762 MB / 1.123 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005288/1.188, allocations: 0.9655 MB / 1.437 GB, free: 5.809 MB / 1.123 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02044/1.208, allocations: 12.56 MB / 1.45 GB, free: 8.582 MB / 1.139 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001101/1.21, allocations: 1.436 MB / 1.451 GB, free: 7.109 MB / 1.139 GB Notification: Performance of simCode: alias equations: time 0.001973/1.212, allocations: 0.5425 MB / 1.452 GB, free: 6.566 MB / 1.139 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001119/1.213, allocations: 0.8428 MB / 1.452 GB, free: 5.723 MB / 1.139 GB Notification: Performance of SimCode: time 7.51e-07/1.213, allocations: 0 / 1.452 GB, free: 5.723 MB / 1.139 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1606/1.373, allocations: 58.78 MB / 1.51 GB, free: 11.6 MB / 1.201 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.23/14.6, allocations: 6.719 kB / 1.51 GB, free: 11.59 MB / 1.201 GB (rm -f Buildings_latest_Buildings.Fluid.FixedResistances.Examples.PlugFlowPipe.pipe ; mkfifo Buildings_latest_Buildings.Fluid.FixedResistances.Examples.PlugFlowPipe.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.FixedResistances.Examples.PlugFlowPipe.pipe >> ../files/Buildings_latest_Buildings.Fluid.FixedResistances.Examples.PlugFlowPipe.sim & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Fluid_FixedResistances_Examples_PlugFlowPipe.fmu > Buildings_latest_Buildings.Fluid.FixedResistances.Examples.PlugFlowPipe.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.FixedResistances.Examples.PlugFlowPipe_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_FixedResistances_Examples_PlugFlowPipe.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.FixedResistances.Examples.PlugFlowPipe.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches