Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.HydraulicDiameter,fileNamePrefix="Buildings_10_Buildings_Fluid_FixedResistances_Examples_HydraulicDiameter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter,fileNamePrefix="Buildings_10_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.0009157/0.0009157, allocations: 91.38 kB / 15.36 MB, free: 0.7383 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.005508/0.005508, allocations: 172.1 kB / 16.26 MB, free: 6.676 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.27/1.27, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.324/2.324, allocations: 437.8 MB / 0.7121 GB, free: 6.898 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003052/0.0003052, allocations: 8 kB / 0.8729 GB, free: 3.164 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5787/0.579, allocations: 153.8 MB / 1.023 GB, free: 15.81 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter): time 0.01315/0.5922, allocations: 14.5 MB / 1.037 GB, free: 1.254 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.005038/0.5973, allocations: 3.869 MB / 1.041 GB, free: 13.38 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004034/0.5978, allocations: 19.88 kB / 1.041 GB, free: 13.36 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0005255/0.5983, allocations: 151.1 kB / 1.041 GB, free: 13.21 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.00143/0.5997, allocations: 0.6184 MB / 1.042 GB, free: 12.59 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.001063/0.6008, allocations: 423.8 kB / 1.042 GB, free: 12.18 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.001444/0.6023, allocations: 1.359 MB / 1.044 GB, free: 10.81 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003275/0.6026, allocations: 236.9 kB / 1.044 GB, free: 10.58 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005406/0.6032, allocations: 374.2 kB / 1.044 GB, free: 10.21 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002812/0.6034, allocations: 262.7 kB / 1.044 GB, free: 9.953 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 3.232e-05/0.6035, allocations: 16 kB / 1.044 GB, free: 9.938 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001009/0.6045, allocations: 0.6977 MB / 1.045 GB, free: 9.238 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 7.794e-05/0.6046, allocations: 55.77 kB / 1.045 GB, free: 9.184 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001596/0.6048, allocations: 204.6 kB / 1.045 GB, free: 8.977 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0007655/0.6055, allocations: 0.6932 MB / 1.046 GB, free: 8.281 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.6055, allocations: 0 / 1.046 GB, free: 8.281 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.493e-06/0.6055, allocations: 4 kB / 1.046 GB, free: 8.277 MB / 0.795 GB Notification: Performance of Transformations before backend: time 6.081e-06/0.6056, allocations: 0 / 1.046 GB, free: 8.277 MB / 0.795 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.0009263/0.6065, allocations: 0.6949 MB / 1.047 GB, free: 7.531 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.048e-05/0.6065, allocations: 12.03 kB / 1.047 GB, free: 7.52 MB / 0.795 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.915e-05/0.6066, allocations: 50.73 kB / 1.047 GB, free: 7.461 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.158e-05/0.6067, allocations: 40.47 kB / 1.047 GB, free: 7.422 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000754/0.6074, allocations: 0.4899 MB / 1.047 GB, free: 6.891 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.644e-05/0.6074, allocations: 12.33 kB / 1.047 GB, free: 6.879 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.978e-05/0.6075, allocations: 16 kB / 1.047 GB, free: 6.863 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003328/0.6078, allocations: 192.1 kB / 1.047 GB, free: 6.672 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-06/0.6078, allocations: 0 / 1.047 GB, free: 6.672 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.099e-05/0.6079, allocations: 11.98 kB / 1.047 GB, free: 6.66 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.883e-06/0.6079, allocations: 4 kB / 1.047 GB, free: 6.656 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003046/0.6082, allocations: 140.2 kB / 1.048 GB, free: 6.52 MB / 0.795 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.0009579/0.6091, allocations: 0.8723 MB / 1.048 GB, free: 5.547 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002349/0.6094, allocations: 122.6 kB / 1.049 GB, free: 5.418 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001492/0.6096, allocations: 80.81 kB / 1.049 GB, free: 5.336 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002729/0.6098, allocations: 336.4 kB / 1.049 GB, free: 4.934 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.378e-05/0.6099, allocations: 38.5 kB / 1.049 GB, free: 4.887 MB / 0.795 GB Notification: Performance of pre-optimization done (n=12): time 1.142e-06/0.6099, allocations: 0 / 1.049 GB, free: 4.887 MB / 0.795 GB Notification: Performance of matching and sorting (n=12): time 0.0005224/0.6104, allocations: 233.1 kB / 1.049 GB, free: 4.652 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.093e-05/0.6104, allocations: 55.41 kB / 1.049 GB, free: 4.586 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000296/0.6107, allocations: 341.7 kB / 1.05 GB, free: 4.246 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.008e-05/0.6108, allocations: 33.69 kB / 1.05 GB, free: 4.207 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.000116/0.6109, allocations: 192.2 kB / 1.05 GB, free: 4.016 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 3.733e-05/0.6109, allocations: 51.38 kB / 1.05 GB, free: 3.965 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.622e-05/0.611, allocations: 17.72 kB / 1.05 GB, free: 3.941 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001008/0.6111, allocations: 342.8 kB / 1.05 GB, free: 3.598 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001334/0.6112, allocations: 51.97 kB / 1.05 GB, free: 3.547 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001508/0.6114, allocations: 88.69 kB / 1.05 GB, free: 3.445 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000255/0.6116, allocations: 141.5 kB / 1.051 GB, free: 3.301 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.6116, allocations: 0 / 1.051 GB, free: 3.301 MB / 0.795 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003346/0.612, allocations: 185.2 kB / 1.051 GB, free: 3.113 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 4.706e-05/0.612, allocations: 101.8 kB / 1.051 GB, free: 3.004 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.612, allocations: 0 / 1.051 GB, free: 3.004 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.157e-05/0.6121, allocations: 8 kB / 1.051 GB, free: 2.996 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001368/0.6122, allocations: 31.91 kB / 1.051 GB, free: 2.965 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.821e-06/0.6122, allocations: 64 / 1.051 GB, free: 2.965 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001991/0.6124, allocations: 32.11 kB / 1.051 GB, free: 2.934 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.186e-05/0.6125, allocations: 7.984 kB / 1.051 GB, free: 2.926 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 5.39e-06/0.6125, allocations: 8 kB / 1.051 GB, free: 2.918 MB / 0.795 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002736/0.6127, allocations: 123.9 kB / 1.051 GB, free: 2.797 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.593e-06/0.6128, allocations: 96 / 1.051 GB, free: 2.797 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.386e-06/0.6128, allocations: 3.984 kB / 1.051 GB, free: 2.793 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001054/0.6129, allocations: 35.92 kB / 1.051 GB, free: 2.758 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.553e-06/0.6129, allocations: 0 / 1.051 GB, free: 2.758 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001877/0.6131, allocations: 31.81 kB / 1.051 GB, free: 2.727 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.645e-05/0.6131, allocations: 11.98 kB / 1.051 GB, free: 2.715 MB / 0.795 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.0001472/0.6132, allocations: 225 kB / 1.051 GB, free: 2.484 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.986e-05/0.6133, allocations: 35.81 kB / 1.051 GB, free: 2.449 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004525/0.6138, allocations: 242.8 kB / 1.052 GB, free: 2.203 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.682e-06/0.6138, allocations: 7.938 kB / 1.052 GB, free: 2.195 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.6138, allocations: 0 / 1.052 GB, free: 2.195 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.6138, allocations: 4 kB / 1.052 GB, free: 2.191 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007675/0.6146, allocations: 0.6373 MB / 1.052 GB, free: 1.492 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.095e-06/0.6146, allocations: 8.094 kB / 1.052 GB, free: 1.484 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001032/0.6147, allocations: 31.91 kB / 1.052 GB, free: 1.453 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.388e-06/0.6147, allocations: 4 kB / 1.052 GB, free: 1.449 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.796e-06/0.6147, allocations: 0 / 1.052 GB, free: 1.449 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.148e-06/0.6147, allocations: 4 kB / 1.052 GB, free: 1.445 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.6147, allocations: 3.938 kB / 1.052 GB, free: 1.441 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003868/0.6151, allocations: 329.5 kB / 1.053 GB, free: 1.094 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001047/0.6152, allocations: 136.6 kB / 1.053 GB, free: 0.9414 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.544e-05/0.6153, allocations: 0 / 1.053 GB, free: 0.9414 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002149/0.6155, allocations: 31.92 kB / 1.053 GB, free: 0.9102 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.096e-05/0.6155, allocations: 7.984 kB / 1.053 GB, free: 0.9023 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.331e-05/0.6156, allocations: 7.984 kB / 1.053 GB, free: 0.8945 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0002057/0.6158, allocations: 247.2 kB / 1.053 GB, free: 0.6562 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6158, allocations: 4 kB / 1.053 GB, free: 0.6523 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0005007/0.6163, allocations: 187.6 kB / 1.053 GB, free: 480 kB / 0.795 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.001/0.6173, allocations: 1.002 MB / 1.054 GB, free: 15.44 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0004597/0.6178, allocations: 199.8 kB / 1.054 GB, free: 15.24 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.6178, allocations: 4 kB / 1.054 GB, free: 15.24 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001643/0.6179, allocations: 91.95 kB / 1.054 GB, free: 15.15 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008112/0.6188, allocations: 149.4 kB / 1.055 GB, free: 15 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003001/0.6218, allocations: 2.883 MB / 1.057 GB, free: 12.02 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002862/0.6221, allocations: 0.796 MB / 1.058 GB, free: 11.2 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0002166/0.6223, allocations: 74.97 kB / 1.058 GB, free: 11.13 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001237/0.6224, allocations: 115.4 kB / 1.058 GB, free: 11.02 MB / 0.8106 GB Notification: Performance of SimCode: time 2.3e-07/0.6224, allocations: 0 / 1.058 GB, free: 11.02 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.666/2.288, allocations: 9.472 MB / 1.068 GB, free: 1.781 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002446/2.288, allocations: 259.7 kB / 1.068 GB, free: 1.52 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.722/7.011, allocations: 0 / 1.068 GB, free: 1.52 MB / 0.8106 GB (rm -f Buildings_10_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe ; mkfifo Buildings_10_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe >> ../files/Buildings_10_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_FixedResistances_Examples_HydraulicDiameter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_FixedResistances_Examples_HydraulicDiameter.fmu > Buildings_10_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_FixedResistances_Examples_HydraulicDiameter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches