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.007204/0.007204, allocations: 101.2 kB / 15.73 MB, free: 6.027 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.00201/0.00201, allocations: 186.6 kB / 16.67 MB, free: 5.957 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.43/1.43, 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.795/2.795, allocations: 482.4 MB / 0.7548 GB, free: 6.871 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001963/0.001963, allocations: 69.25 kB / 1.083 GB, free: 13.92 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2775/0.2795, allocations: 162.2 MB / 1.241 GB, free: 9.324 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter): time 0.01687/0.2964, allocations: 15.07 MB / 1.256 GB, free: 10.2 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.005215/0.3016, allocations: 3.878 MB / 1.26 GB, free: 6.309 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002111/0.3018, allocations: 19.88 kB / 1.26 GB, free: 6.289 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0004776/0.3023, allocations: 190.7 kB / 1.26 GB, free: 6.102 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.001321/0.3036, allocations: 0.6802 MB / 1.261 GB, free: 5.418 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.001049/0.3047, allocations: 477.5 kB / 1.261 GB, free: 4.957 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.001383/0.3061, allocations: 1.076 MB / 1.262 GB, free: 3.879 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004064/0.3065, allocations: 287.5 kB / 1.263 GB, free: 3.594 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006884/0.3072, allocations: 454.2 kB / 1.263 GB, free: 3.148 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003471/0.3076, allocations: 258.8 kB / 1.263 GB, free: 2.895 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.961e-05/0.3076, allocations: 24 kB / 1.263 GB, free: 2.871 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001172/0.3088, allocations: 0.7135 MB / 1.264 GB, free: 2.156 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001015/0.3089, allocations: 75.62 kB / 1.264 GB, free: 2.082 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0002046/0.3091, allocations: 187 kB / 1.264 GB, free: 1.898 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.001007/0.3101, allocations: 0.7201 MB / 1.265 GB, free: 1.176 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.3101, allocations: 0 / 1.265 GB, free: 1.176 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.483e-06/0.3102, allocations: 0 / 1.265 GB, free: 1.176 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.941e-06/0.3102, allocations: 0 / 1.265 GB, free: 1.176 MB / 0.9825 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.00113/0.3113, allocations: 0.7699 MB / 1.266 GB, free: 360 kB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.379e-05/0.3113, allocations: 12.03 kB / 1.266 GB, free: 348 kB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.478e-05/0.3114, allocations: 46.73 kB / 1.266 GB, free: 292 kB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.107e-05/0.3115, allocations: 48.59 kB / 1.266 GB, free: 244 kB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00096/0.3125, allocations: 0.5174 MB / 1.266 GB, free: 15.68 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.106e-05/0.3125, allocations: 20.27 kB / 1.266 GB, free: 15.66 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.377e-05/0.3125, allocations: 20 kB / 1.266 GB, free: 15.64 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003734/0.3129, allocations: 176.1 kB / 1.267 GB, free: 15.47 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.118e-05/0.3129, allocations: 3.938 kB / 1.267 GB, free: 15.46 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.63e-05/0.313, allocations: 11.98 kB / 1.267 GB, free: 15.45 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.552e-06/0.313, allocations: 4 kB / 1.267 GB, free: 15.45 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003524/0.3133, allocations: 136.2 kB / 1.267 GB, free: 15.32 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00113/0.3145, allocations: 0.8569 MB / 1.267 GB, free: 14.36 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002778/0.3148, allocations: 122.6 kB / 1.268 GB, free: 14.23 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001759/0.3149, allocations: 76.81 kB / 1.268 GB, free: 14.15 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000313/0.3153, allocations: 332.4 kB / 1.268 GB, free: 13.75 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.836e-05/0.3153, allocations: 42.48 kB / 1.268 GB, free: 13.7 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=12): time 1.253e-06/0.3153, allocations: 0 / 1.268 GB, free: 13.7 MB / 0.9981 GB Notification: Performance of matching and sorting (n=12): time 0.0005922/0.3159, allocations: 217.4 kB / 1.268 GB, free: 13.48 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.457e-05/0.316, allocations: 55.34 kB / 1.268 GB, free: 13.42 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003922/0.3164, allocations: 345.7 kB / 1.269 GB, free: 13.07 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.549e-05/0.3164, allocations: 29.7 kB / 1.269 GB, free: 13.03 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001491/0.3165, allocations: 192.5 kB / 1.269 GB, free: 12.84 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 4.238e-05/0.3166, allocations: 43.58 kB / 1.269 GB, free: 12.8 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.606e-05/0.3167, allocations: 33.7 kB / 1.269 GB, free: 12.76 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001643/0.3168, allocations: 350.8 kB / 1.269 GB, free: 12.41 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001487/0.317, allocations: 48.77 kB / 1.269 GB, free: 12.36 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001845/0.3172, allocations: 92.69 kB / 1.269 GB, free: 12.25 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002951/0.3175, allocations: 121.6 kB / 1.27 GB, free: 12.12 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.3175, allocations: 0 / 1.27 GB, free: 12.12 MB / 0.9981 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003987/0.3179, allocations: 177.3 kB / 1.27 GB, free: 11.95 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.291e-05/0.3179, allocations: 8.094 kB / 1.27 GB, free: 11.94 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.516e-06/0.3179, allocations: 3.938 kB / 1.27 GB, free: 11.93 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.1e-05/0.3179, allocations: 0 / 1.27 GB, free: 11.93 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001469/0.3181, allocations: 27.97 kB / 1.27 GB, free: 11.91 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.749e-06/0.3181, allocations: 0 / 1.27 GB, free: 11.91 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001894/0.3183, allocations: 23.94 kB / 1.27 GB, free: 11.88 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.284e-05/0.3183, allocations: 8 kB / 1.27 GB, free: 11.88 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000235/0.3186, allocations: 152.1 kB / 1.27 GB, free: 11.72 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000173/0.3188, allocations: 92.33 kB / 1.27 GB, free: 11.62 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002793/0.319, allocations: 113.8 kB / 1.27 GB, free: 11.5 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.32e-07/0.3191, allocations: 0 / 1.27 GB, free: 11.5 MB / 0.9981 GB Notification: Performance of matching and sorting (n=12) (initialization_lambda0): time 0.0003818/0.3194, allocations: 185.3 kB / 1.27 GB, free: 11.31 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 8.646e-06/0.3195, allocations: 7.938 kB / 1.27 GB, free: 11.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.306e-06/0.3195, allocations: 4 kB / 1.27 GB, free: 11.3 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.734e-06/0.3195, allocations: 0 / 1.27 GB, free: 11.3 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001209/0.3196, allocations: 23.98 kB / 1.27 GB, free: 11.28 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.108e-06/0.3196, allocations: 0 / 1.27 GB, free: 11.28 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000196/0.3198, allocations: 35.84 kB / 1.27 GB, free: 11.24 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.403e-05/0.3198, allocations: 4 kB / 1.27 GB, free: 11.24 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 0.0001059/0.3199, allocations: 188.2 kB / 1.271 GB, free: 11.05 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.933e-05/0.32, allocations: 39.7 kB / 1.271 GB, free: 11.01 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005028/0.3205, allocations: 223.1 kB / 1.271 GB, free: 10.79 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.767e-06/0.3206, allocations: 8 kB / 1.271 GB, free: 10.78 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.3206, allocations: 0 / 1.271 GB, free: 10.78 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.3206, allocations: 0 / 1.271 GB, free: 10.78 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000911/0.3215, allocations: 0.6295 MB / 1.271 GB, free: 10.09 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.3215, allocations: 0 / 1.271 GB, free: 10.09 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000118/0.3216, allocations: 28.17 kB / 1.271 GB, free: 10.06 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.108e-06/0.3216, allocations: 7.938 kB / 1.271 GB, free: 10.05 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.227e-05/0.3217, allocations: 4 kB / 1.271 GB, free: 10.05 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.3217, allocations: 4 kB / 1.271 GB, free: 10.04 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.3217, allocations: 0 / 1.271 GB, free: 10.04 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004748/0.3221, allocations: 321.6 kB / 1.272 GB, free: 9.703 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001274/0.3223, allocations: 124.8 kB / 1.272 GB, free: 9.562 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.359e-05/0.3223, allocations: 7.984 kB / 1.272 GB, free: 9.555 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002072/0.3225, allocations: 11.98 kB / 1.272 GB, free: 9.543 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.874e-05/0.3226, allocations: 15.98 kB / 1.272 GB, free: 9.527 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.684e-05/0.3226, allocations: 7.938 kB / 1.272 GB, free: 9.52 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0002649/0.3229, allocations: 251.2 kB / 1.272 GB, free: 9.281 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.51e-07/0.3229, allocations: 0 / 1.272 GB, free: 9.281 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0005381/0.3234, allocations: 191.4 kB / 1.272 GB, free: 9.094 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.001167/0.3246, allocations: 1.004 MB / 1.273 GB, free: 8.062 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.000528/0.3252, allocations: 195.7 kB / 1.273 GB, free: 7.871 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3252, allocations: 0 / 1.273 GB, free: 7.871 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001869/0.3254, allocations: 75.89 kB / 1.274 GB, free: 7.797 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008176/0.3262, allocations: 158 kB / 1.274 GB, free: 7.641 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003466/0.3297, allocations: 2.734 MB / 1.276 GB, free: 4.805 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000408/0.3301, allocations: 0.7918 MB / 1.277 GB, free: 3.984 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0002109/0.3303, allocations: 71.11 kB / 1.277 GB, free: 3.918 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001544/0.3305, allocations: 115.4 kB / 1.277 GB, free: 3.805 MB / 0.9981 GB Notification: Performance of SimCode: time 2.91e-07/0.3305, allocations: 0 / 1.277 GB, free: 3.805 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03286/0.3633, allocations: 10.07 MB / 1.287 GB, free: 9.957 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.046/8.409, allocations: 3.938 kB / 1.287 GB, free: 9.953 MB / 1.014 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 400 --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