Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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: "" <> buildModelFMU(Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter,fileNamePrefix="Buildings_latest_Buildings_Fluid_FixedResistances_Examples_HydraulicDiameter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter,fileNamePrefix="Buildings_latest_Buildings_Fluid_FixedResistances_Examples_HydraulicDiameter",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.00696/0.00696, allocations: 97.48 kB / 15.73 MB, free: 6.066 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.001683/0.001684, allocations: 195.2 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.347/1.347, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.635/2.635, allocations: 472.7 MB / 0.7453 GB, free: 424 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001366/0.001366, allocations: 68.12 kB / 1.069 GB, free: 10.03 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7546/0.756, allocations: 159.9 MB / 1.225 GB, free: 13.41 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter): time 0.01532/0.7714, allocations: 15.05 MB / 1.24 GB, free: 14.3 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.005188/0.7766, allocations: 3.885 MB / 1.244 GB, free: 10.41 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004458/0.7771, allocations: 23.88 kB / 1.244 GB, free: 10.38 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0005887/0.7777, allocations: 198.7 kB / 1.244 GB, free: 10.19 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.001602/0.7793, allocations: 0.696 MB / 1.245 GB, free: 9.488 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.00119/0.7805, allocations: 481 kB / 1.245 GB, free: 9.023 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.001426/0.782, allocations: 1.083 MB / 1.246 GB, free: 7.938 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004551/0.7824, allocations: 284.2 kB / 1.246 GB, free: 7.66 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007386/0.7832, allocations: 418.4 kB / 1.247 GB, free: 7.25 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003912/0.7836, allocations: 266.8 kB / 1.247 GB, free: 6.988 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 5.173e-05/0.7837, allocations: 20 kB / 1.247 GB, free: 6.969 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00121/0.7849, allocations: 0.7174 MB / 1.248 GB, free: 6.25 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001042/0.785, allocations: 75.67 kB / 1.248 GB, free: 6.176 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0002117/0.7852, allocations: 183 kB / 1.248 GB, free: 5.996 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.001081/0.7863, allocations: 0.721 MB / 1.249 GB, free: 5.273 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.7863, allocations: 3.938 kB / 1.249 GB, free: 5.27 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.372e-06/0.7863, allocations: 0 / 1.249 GB, free: 5.27 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.197e-05/0.7863, allocations: 4 kB / 1.249 GB, free: 5.266 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001127/0.7875, allocations: 0.7582 MB / 1.249 GB, free: 4.453 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.994e-05/0.7875, allocations: 15.97 kB / 1.249 GB, free: 4.438 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.014e-05/0.7876, allocations: 46.73 kB / 1.249 GB, free: 4.383 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.323e-05/0.7877, allocations: 48.66 kB / 1.25 GB, free: 4.336 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009939/0.7887, allocations: 0.5136 MB / 1.25 GB, free: 3.781 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.982e-05/0.7887, allocations: 16.33 kB / 1.25 GB, free: 3.766 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.2e-05/0.7888, allocations: 24 kB / 1.25 GB, free: 3.742 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003618/0.7891, allocations: 180.1 kB / 1.25 GB, free: 3.562 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.076e-05/0.7891, allocations: 0 / 1.25 GB, free: 3.562 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.895e-05/0.7892, allocations: 11.94 kB / 1.25 GB, free: 3.551 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.432e-06/0.7892, allocations: 4 kB / 1.25 GB, free: 3.547 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003278/0.7895, allocations: 140.2 kB / 1.25 GB, free: 3.41 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.001086/0.7906, allocations: 0.853 MB / 1.251 GB, free: 2.457 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002583/0.7909, allocations: 126.6 kB / 1.251 GB, free: 2.324 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000158/0.7911, allocations: 76.81 kB / 1.251 GB, free: 2.246 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002674/0.7913, allocations: 336.4 kB / 1.252 GB, free: 1.844 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.639e-05/0.7914, allocations: 34.5 kB / 1.252 GB, free: 1.801 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=12): time 1.724e-06/0.7914, allocations: 0 / 1.252 GB, free: 1.801 MB / 0.9669 GB Notification: Performance of matching and sorting (n=12): time 0.0005617/0.7919, allocations: 229.2 kB / 1.252 GB, free: 1.57 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.324e-05/0.792, allocations: 55.41 kB / 1.252 GB, free: 1.504 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003443/0.7923, allocations: 345.7 kB / 1.252 GB, free: 1.156 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.632e-05/0.7924, allocations: 29.7 kB / 1.252 GB, free: 1.121 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001426/0.7925, allocations: 192.5 kB / 1.253 GB, free: 0.9297 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 4.048e-05/0.7926, allocations: 43.58 kB / 1.253 GB, free: 0.8867 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.549e-05/0.7926, allocations: 37.7 kB / 1.253 GB, free: 0.8438 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001172/0.7928, allocations: 334.8 kB / 1.253 GB, free: 0.5078 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001468/0.7929, allocations: 64.81 kB / 1.253 GB, free: 452 kB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001631/0.7931, allocations: 84.25 kB / 1.253 GB, free: 352 kB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002643/0.7934, allocations: 117.6 kB / 1.253 GB, free: 228 kB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.7934, allocations: 4 kB / 1.253 GB, free: 224 kB / 0.9669 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003953/0.7938, allocations: 181.3 kB / 1.253 GB, free: 36 kB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.876e-05/0.7938, allocations: 11.94 kB / 1.253 GB, free: 24 kB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.7938, allocations: 0 / 1.253 GB, free: 24 kB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.625e-05/0.7938, allocations: 0 / 1.253 GB, free: 24 kB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001461/0.794, allocations: 23.98 kB / 1.253 GB, free: 0 / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.217e-05/0.794, allocations: 112 / 1.253 GB, free: 16 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001976/0.7942, allocations: 31.91 kB / 1.253 GB, free: 15.96 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.487e-05/0.7943, allocations: 4 kB / 1.253 GB, free: 15.96 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002183/0.7945, allocations: 153.4 kB / 1.254 GB, free: 15.81 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000163/0.7947, allocations: 88.08 kB / 1.254 GB, free: 15.71 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002482/0.7949, allocations: 113.6 kB / 1.254 GB, free: 15.59 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.423e-06/0.7949, allocations: 3.938 kB / 1.254 GB, free: 15.59 MB / 0.9825 GB Notification: Performance of matching and sorting (n=12) (initialization_lambda0): time 0.000355/0.7953, allocations: 177.3 kB / 1.254 GB, free: 15.41 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.031e-05/0.7953, allocations: 4 kB / 1.254 GB, free: 15.41 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.046e-06/0.7953, allocations: 3.938 kB / 1.254 GB, free: 15.4 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.058e-06/0.7953, allocations: 4 kB / 1.254 GB, free: 15.4 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001086/0.7954, allocations: 19.98 kB / 1.254 GB, free: 15.38 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.887e-06/0.7954, allocations: 4 kB / 1.254 GB, free: 15.38 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000177/0.7956, allocations: 19.98 kB / 1.254 GB, free: 15.36 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.554e-05/0.7957, allocations: 7.984 kB / 1.254 GB, free: 15.35 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (12): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0001036/0.7958, allocations: 196.1 kB / 1.254 GB, free: 15.15 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.188e-05/0.7958, allocations: 39.7 kB / 1.254 GB, free: 15.11 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004815/0.7963, allocations: 227.7 kB / 1.254 GB, free: 14.89 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.306e-06/0.7963, allocations: 4 kB / 1.255 GB, free: 14.88 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.257e-06/0.7963, allocations: 4 kB / 1.255 GB, free: 14.88 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.7964, allocations: 0 / 1.255 GB, free: 14.88 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008495/0.7972, allocations: 0.6337 MB / 1.255 GB, free: 14.18 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.877e-06/0.7972, allocations: 0 / 1.255 GB, free: 14.18 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001053/0.7973, allocations: 31.91 kB / 1.255 GB, free: 14.15 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.733e-06/0.7974, allocations: 12.08 kB / 1.255 GB, free: 14.14 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.163e-05/0.7974, allocations: 0 / 1.255 GB, free: 14.14 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.587e-06/0.7974, allocations: 4 kB / 1.255 GB, free: 14.13 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.7974, allocations: 4.062 kB / 1.255 GB, free: 14.13 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000455/0.7978, allocations: 329.3 kB / 1.255 GB, free: 13.79 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001197/0.798, allocations: 124.8 kB / 1.256 GB, free: 13.64 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.696e-05/0.798, allocations: 8 kB / 1.256 GB, free: 13.64 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002057/0.7982, allocations: 11.94 kB / 1.256 GB, free: 13.62 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.496e-05/0.7983, allocations: 15.98 kB / 1.256 GB, free: 13.61 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.806e-05/0.7983, allocations: 7.984 kB / 1.256 GB, free: 13.6 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0002446/0.7986, allocations: 247.1 kB / 1.256 GB, free: 13.36 MB / 0.9825 GB Notification: Performance of sort global known variables: time 2.01e-07/0.7986, allocations: 7.938 kB / 1.256 GB, free: 13.36 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0005888/0.7992, allocations: 191.4 kB / 1.256 GB, free: 13.17 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 simulation (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0011/0.8003, allocations: 0.9813 MB / 1.257 GB, free: 12.16 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0005031/0.8008, allocations: 187.8 kB / 1.257 GB, free: 11.97 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.8008, allocations: 4 kB / 1.257 GB, free: 11.97 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001835/0.801, allocations: 75.89 kB / 1.257 GB, free: 11.89 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008421/0.8019, allocations: 150.1 kB / 1.257 GB, free: 11.75 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0034/0.8053, allocations: 2.744 MB / 1.26 GB, free: 8.898 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003395/0.8056, allocations: 0.7918 MB / 1.261 GB, free: 8.082 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0002535/0.8059, allocations: 79.03 kB / 1.261 GB, free: 8.008 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001481/0.8061, allocations: 115.4 kB / 1.261 GB, free: 7.898 MB / 0.9825 GB Notification: Performance of SimCode: time 3.31e-07/0.8061, allocations: 0 / 1.261 GB, free: 7.898 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02743/0.8335, allocations: 10.06 MB / 1.271 GB, free: 14.05 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.942/8.775, allocations: 7.844 kB / 1.271 GB, free: 14.05 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe ; mkfifo Buildings_latest_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe >> ../files/Buildings_latest_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Fluid_FixedResistances_Examples_HydraulicDiameter.fmu > Buildings_latest_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_FixedResistances_Examples_HydraulicDiameter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches