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 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.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.005315/0.005315, allocations: 99.62 kB / 15.73 MB, free: 5.555 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.001129/0.001129, allocations: 196.2 kB / 16.68 MB, free: 5.484 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.37/1.37, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.699/2.699, allocations: 469.4 MB / 0.7421 GB, free: 7.547 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001459/0.001459, allocations: 71.89 kB / 1.064 GB, free: 13.87 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2745/0.276, allocations: 159.1 MB / 1.22 GB, free: 14.63 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter): time 0.01612/0.2922, allocations: 15.05 MB / 1.234 GB, free: 15.52 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.005242/0.2975, allocations: 3.892 MB / 1.238 GB, free: 11.62 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000517/0.2981, allocations: 27.88 kB / 1.238 GB, free: 11.59 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0006383/0.2987, allocations: 190.7 kB / 1.238 GB, free: 11.41 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.001742/0.3005, allocations: 0.6935 MB / 1.239 GB, free: 10.71 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001257/0.3017, allocations: 489.2 kB / 1.24 GB, free: 10.24 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.001452/0.3032, allocations: 1.087 MB / 1.241 GB, free: 9.148 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005163/0.3037, allocations: 285.5 kB / 1.241 GB, free: 8.863 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008157/0.3046, allocations: 418.4 kB / 1.241 GB, free: 8.453 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004506/0.305, allocations: 258.8 kB / 1.242 GB, free: 8.199 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 6.337e-05/0.3051, allocations: 24 kB / 1.242 GB, free: 8.176 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001286/0.3064, allocations: 0.7173 MB / 1.242 GB, free: 7.457 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001209/0.3065, allocations: 71.69 kB / 1.242 GB, free: 7.387 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002542/0.3068, allocations: 187 kB / 1.243 GB, free: 7.203 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.00116/0.308, allocations: 0.724 MB / 1.243 GB, free: 6.477 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.308, allocations: 4 kB / 1.243 GB, free: 6.473 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.743e-06/0.308, allocations: 0 / 1.243 GB, free: 6.473 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.505e-05/0.308, allocations: 0 / 1.243 GB, free: 6.473 MB / 0.9981 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.001234/0.3092, allocations: 0.7582 MB / 1.244 GB, free: 5.66 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.547e-05/0.3093, allocations: 12.03 kB / 1.244 GB, free: 5.648 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.893e-05/0.3094, allocations: 54.67 kB / 1.244 GB, free: 5.586 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001128/0.3095, allocations: 44.66 kB / 1.244 GB, free: 5.543 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001103/0.3106, allocations: 0.5175 MB / 1.245 GB, free: 4.992 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.777e-05/0.3106, allocations: 12.33 kB / 1.245 GB, free: 4.98 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.036e-05/0.3107, allocations: 16 kB / 1.245 GB, free: 4.965 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003667/0.311, allocations: 180.1 kB / 1.245 GB, free: 4.785 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.218e-05/0.311, allocations: 4 kB / 1.245 GB, free: 4.781 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.319e-05/0.3111, allocations: 15.94 kB / 1.245 GB, free: 4.766 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.181e-06/0.3111, allocations: 4 kB / 1.245 GB, free: 4.762 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003258/0.3114, allocations: 136.2 kB / 1.245 GB, free: 4.629 MB / 0.9981 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.001145/0.3126, allocations: 0.8608 MB / 1.246 GB, free: 3.668 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002641/0.3128, allocations: 122.6 kB / 1.246 GB, free: 3.539 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001586/0.313, allocations: 72.81 kB / 1.246 GB, free: 3.465 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002765/0.3133, allocations: 344.4 kB / 1.246 GB, free: 3.055 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.638e-05/0.3133, allocations: 42.5 kB / 1.246 GB, free: 3.004 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=12): time 1.512e-06/0.3133, allocations: 0 / 1.246 GB, free: 3.004 MB / 0.9981 GB Notification: Performance of matching and sorting (n=12): time 0.0005703/0.3139, allocations: 217.3 kB / 1.247 GB, free: 2.785 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.545e-05/0.314, allocations: 59.33 kB / 1.247 GB, free: 2.715 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003365/0.3143, allocations: 345.7 kB / 1.247 GB, free: 2.367 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.123e-05/0.3143, allocations: 25.7 kB / 1.247 GB, free: 2.336 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001218/0.3145, allocations: 200.4 kB / 1.247 GB, free: 2.137 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 4.08e-05/0.3145, allocations: 47.58 kB / 1.247 GB, free: 2.09 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.02e-05/0.3146, allocations: 33.7 kB / 1.247 GB, free: 2.051 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001107/0.3147, allocations: 338.8 kB / 1.248 GB, free: 1.711 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001453/0.3148, allocations: 52.81 kB / 1.248 GB, free: 1.656 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001659/0.315, allocations: 88.25 kB / 1.248 GB, free: 1.555 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002746/0.3153, allocations: 121.6 kB / 1.248 GB, free: 1.43 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.3153, allocations: 0 / 1.248 GB, free: 1.43 MB / 0.9981 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003805/0.3157, allocations: 181.3 kB / 1.248 GB, free: 1.246 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/0.3157, allocations: 11.94 kB / 1.248 GB, free: 1.234 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.3157, allocations: 4 kB / 1.248 GB, free: 1.23 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.565e-05/0.3158, allocations: 0 / 1.248 GB, free: 1.23 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000159/0.3159, allocations: 23.98 kB / 1.248 GB, free: 1.207 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.051e-06/0.3159, allocations: 0 / 1.248 GB, free: 1.207 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002022/0.3161, allocations: 15.97 kB / 1.248 GB, free: 1.191 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.835e-05/0.3162, allocations: 16.06 kB / 1.248 GB, free: 1.176 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002114/0.3164, allocations: 153 kB / 1.248 GB, free: 1.023 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001572/0.3166, allocations: 92.12 kB / 1.248 GB, free: 0.918 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002521/0.3168, allocations: 113.6 kB / 1.248 GB, free: 0.8008 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.213e-06/0.3168, allocations: 0 / 1.248 GB, free: 0.8008 MB / 0.9981 GB Notification: Performance of matching and sorting (n=12) (initialization_lambda0): time 0.0003526/0.3172, allocations: 177.3 kB / 1.249 GB, free: 0.6211 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 8.065e-06/0.3172, allocations: 8 kB / 1.249 GB, free: 0.6133 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.156e-06/0.3172, allocations: 3.938 kB / 1.249 GB, free: 0.6094 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.176e-06/0.3172, allocations: 0 / 1.249 GB, free: 0.6094 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00011/0.3173, allocations: 27.98 kB / 1.249 GB, free: 0.582 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.105e-06/0.3174, allocations: 0 / 1.249 GB, free: 0.582 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001884/0.3176, allocations: 15.98 kB / 1.249 GB, free: 0.5664 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.625e-05/0.3176, allocations: 7.984 kB / 1.249 GB, free: 0.5586 MB / 0.9981 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 9.623e-05/0.3177, allocations: 192.2 kB / 1.249 GB, free: 372 kB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.318e-05/0.3177, allocations: 39.7 kB / 1.249 GB, free: 332 kB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004751/0.3182, allocations: 233.3 kB / 1.249 GB, free: 96 kB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.246e-06/0.3182, allocations: 4 kB / 1.249 GB, free: 92 kB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.3183, allocations: 192 / 1.249 GB, free: 92 kB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.297e-06/0.3183, allocations: 0 / 1.249 GB, free: 92 kB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6085/0.9268, allocations: 0.6246 MB / 1.25 GB, free: 31.36 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.684e-06/0.9268, allocations: 1.594 kB / 1.25 GB, free: 31.36 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001299/0.9269, allocations: 31.44 kB / 1.25 GB, free: 31.36 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.763e-06/0.927, allocations: 3.375 kB / 1.25 GB, free: 31.36 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.352e-05/0.927, allocations: 2.75 kB / 1.25 GB, free: 31.36 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.029e-06/0.927, allocations: 2.188 kB / 1.25 GB, free: 31.36 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.457e-06/0.927, allocations: 2.516 kB / 1.25 GB, free: 31.36 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004619/0.9275, allocations: 322.9 kB / 1.25 GB, free: 31.2 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001104/0.9276, allocations: 123.2 kB / 1.25 GB, free: 31.11 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.649e-05/0.9276, allocations: 7.312 kB / 1.25 GB, free: 31.11 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002355/0.9279, allocations: 15.98 kB / 1.25 GB, free: 31.11 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.93e-05/0.9279, allocations: 18.92 kB / 1.25 GB, free: 31.11 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.777e-05/0.928, allocations: 5.656 kB / 1.25 GB, free: 31.11 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0002749/0.9282, allocations: 250.1 kB / 1.25 GB, free: 31.03 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9282, allocations: 1.625 kB / 1.25 GB, free: 31.03 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0006371/0.9289, allocations: 189.6 kB / 1.251 GB, free: 31.03 MB / 0.9981 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.001037/0.9299, allocations: 0.9977 MB / 1.252 GB, free: 30.34 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0005725/0.9305, allocations: 196 kB / 1.252 GB, free: 30.33 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.9305, allocations: 4.656 kB / 1.252 GB, free: 30.33 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001897/0.9307, allocations: 75.91 kB / 1.252 GB, free: 30.33 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008296/0.9316, allocations: 154.7 kB / 1.252 GB, free: 30.33 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003359/0.9349, allocations: 2.726 MB / 1.255 GB, free: 28.91 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002673/0.9352, allocations: 0.7933 MB / 1.255 GB, free: 28.22 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0002917/0.9355, allocations: 80.25 kB / 1.256 GB, free: 28.22 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001392/0.9357, allocations: 112.7 kB / 1.256 GB, free: 28.21 MB / 0.9981 GB Notification: Performance of SimCode: time 6.91e-07/0.9357, allocations: 0 / 1.256 GB, free: 28.21 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.13/1.066, allocations: 10.06 MB / 1.265 GB, free: 27.3 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.439/10.5, allocations: 15.56 kB / 1.265 GB, free: 27.29 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