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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001701/0.001701, allocations: 108 kB / 15.6 MB, free: 132 kB / 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: 193.8 kB / 16.53 MB, free: 6.391 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.31/1.31, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.712/2.712, allocations: 469.4 MB / 0.742 GB, free: 7.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001244/0.001244, allocations: 67.84 kB / 0.9082 GB, free: 34.49 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2734/0.2746, allocations: 159.1 MB / 1.064 GB, free: 14.5 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter): time 0.01462/0.2893, allocations: 15.06 MB / 1.078 GB, free: 15.37 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.004912/0.2942, allocations: 3.88 MB / 1.082 GB, free: 11.48 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002813/0.2945, allocations: 19.88 kB / 1.082 GB, free: 11.46 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.000496/0.2951, allocations: 186.7 kB / 1.082 GB, free: 11.27 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.001315/0.2964, allocations: 0.6764 MB / 1.083 GB, free: 10.59 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.001005/0.2974, allocations: 467.4 kB / 1.083 GB, free: 10.14 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.001147/0.2986, allocations: 1.076 MB / 1.085 GB, free: 9.062 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000349/0.2989, allocations: 289.5 kB / 1.085 GB, free: 8.777 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005156/0.2995, allocations: 402.5 kB / 1.085 GB, free: 8.383 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002899/0.2998, allocations: 270.8 kB / 1.085 GB, free: 8.117 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 4.56e-05/0.2998, allocations: 20 kB / 1.085 GB, free: 8.098 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001021/0.3009, allocations: 0.7095 MB / 1.086 GB, free: 7.387 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 8.011e-05/0.3009, allocations: 71.73 kB / 1.086 GB, free: 7.316 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001735/0.3011, allocations: 187 kB / 1.086 GB, free: 7.133 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0008265/0.302, allocations: 0.7167 MB / 1.087 GB, free: 6.414 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.302, allocations: 0 / 1.087 GB, free: 6.414 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.324e-06/0.302, allocations: 4 kB / 1.087 GB, free: 6.41 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 6.783e-06/0.302, allocations: 0 / 1.087 GB, free: 6.41 MB / 0.8419 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.0009908/0.303, allocations: 0.7435 MB / 1.088 GB, free: 5.617 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.756e-05/0.303, allocations: 16.02 kB / 1.088 GB, free: 5.602 MB / 0.8419 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.818e-05/0.3031, allocations: 50.67 kB / 1.088 GB, free: 5.543 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.66e-05/0.3032, allocations: 44.47 kB / 1.088 GB, free: 5.5 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007812/0.304, allocations: 0.4937 MB / 1.088 GB, free: 4.969 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.926e-05/0.304, allocations: 20.31 kB / 1.088 GB, free: 4.949 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.846e-05/0.304, allocations: 16 kB / 1.088 GB, free: 4.934 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003443/0.3044, allocations: 184.1 kB / 1.089 GB, free: 4.75 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.649e-06/0.3044, allocations: 4 kB / 1.089 GB, free: 4.746 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.116e-05/0.3044, allocations: 8 kB / 1.089 GB, free: 4.738 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.374e-06/0.3044, allocations: 8 kB / 1.089 GB, free: 4.73 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003183/0.3048, allocations: 135.8 kB / 1.089 GB, free: 4.598 MB / 0.8419 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.0009848/0.3058, allocations: 0.8644 MB / 1.09 GB, free: 3.633 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002499/0.306, allocations: 118.6 kB / 1.09 GB, free: 3.508 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001515/0.3062, allocations: 72.81 kB / 1.09 GB, free: 3.434 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002986/0.3065, allocations: 340.3 kB / 1.09 GB, free: 3.027 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.543e-05/0.3065, allocations: 38.5 kB / 1.09 GB, free: 2.98 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=12): time 1.603e-06/0.3065, allocations: 0 / 1.09 GB, free: 2.98 MB / 0.8419 GB Notification: Performance of matching and sorting (n=12): time 0.0005341/0.3071, allocations: 217.2 kB / 1.09 GB, free: 2.762 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.561e-05/0.3071, allocations: 51.41 kB / 1.09 GB, free: 2.699 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003091/0.3074, allocations: 345.7 kB / 1.091 GB, free: 2.355 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.915e-05/0.3074, allocations: 29.7 kB / 1.091 GB, free: 2.32 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001234/0.3076, allocations: 196.2 kB / 1.091 GB, free: 2.121 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.265e-05/0.3076, allocations: 39.45 kB / 1.091 GB, free: 2.082 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.727e-05/0.3077, allocations: 33.62 kB / 1.091 GB, free: 2.043 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001151/0.3078, allocations: 350.7 kB / 1.091 GB, free: 1.691 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00014/0.3079, allocations: 52.83 kB / 1.091 GB, free: 1.637 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001641/0.3081, allocations: 88.23 kB / 1.091 GB, free: 1.535 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002741/0.3084, allocations: 117.6 kB / 1.092 GB, free: 1.414 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.3084, allocations: 4 kB / 1.092 GB, free: 1.41 MB / 0.8419 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003679/0.3088, allocations: 177.1 kB / 1.092 GB, free: 1.23 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.424e-05/0.3088, allocations: 7.938 kB / 1.092 GB, free: 1.223 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.3088, allocations: 0 / 1.092 GB, free: 1.223 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.447e-05/0.3088, allocations: 7.984 kB / 1.092 GB, free: 1.215 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001435/0.309, allocations: 23.98 kB / 1.092 GB, free: 1.191 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.643e-06/0.309, allocations: 3.938 kB / 1.092 GB, free: 1.188 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001869/0.3092, allocations: 23.92 kB / 1.092 GB, free: 1.164 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.961e-05/0.3092, allocations: 4 kB / 1.092 GB, free: 1.16 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002057/0.3094, allocations: 161.8 kB / 1.092 GB, free: 1 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001495/0.3096, allocations: 84.25 kB / 1.092 GB, free: 0.9023 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002477/0.3098, allocations: 117.6 kB / 1.092 GB, free: 0.7812 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.31e-07/0.3098, allocations: 0 / 1.092 GB, free: 0.7812 MB / 0.8419 GB Notification: Performance of matching and sorting (n=12) (initialization_lambda0): time 0.0003332/0.3102, allocations: 169.1 kB / 1.092 GB, free: 0.6094 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 8.917e-06/0.3102, allocations: 9.25 kB / 1.092 GB, free: 0.6016 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.715e-06/0.3102, allocations: 3.938 kB / 1.092 GB, free: 0.5977 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.743e-06/0.3102, allocations: 0 / 1.092 GB, free: 0.5977 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001127/0.3103, allocations: 23.98 kB / 1.092 GB, free: 0.5742 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.406e-06/0.3103, allocations: 7.922 kB / 1.092 GB, free: 0.5664 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001757/0.3105, allocations: 19.98 kB / 1.092 GB, free: 0.5469 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.324e-05/0.3105, allocations: 4.125 kB / 1.092 GB, free: 0.543 MB / 0.8419 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.252e-05/0.3106, allocations: 188.2 kB / 1.093 GB, free: 360 kB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.335e-05/0.3107, allocations: 35.56 kB / 1.093 GB, free: 324 kB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004963/0.3112, allocations: 239.3 kB / 1.093 GB, free: 76 kB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.913e-06/0.3112, allocations: 4 kB / 1.093 GB, free: 72 kB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.399e-06/0.3112, allocations: 192 / 1.093 GB, free: 72 kB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.601e-06/0.3113, allocations: 3.984 kB / 1.093 GB, free: 68 kB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008378/0.3121, allocations: 0.6407 MB / 1.093 GB, free: 15.36 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.3121, allocations: 0 / 1.093 GB, free: 15.36 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001086/0.3122, allocations: 28.08 kB / 1.094 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.3122, allocations: 0 / 1.094 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.265e-05/0.3123, allocations: 8 kB / 1.094 GB, free: 15.33 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.876e-06/0.3123, allocations: 0 / 1.094 GB, free: 15.33 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.3123, allocations: 3.938 kB / 1.094 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004097/0.3127, allocations: 321.5 kB / 1.094 GB, free: 14.98 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001034/0.3128, allocations: 124.6 kB / 1.094 GB, free: 14.84 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.307e-05/0.3129, allocations: 4 kB / 1.094 GB, free: 14.84 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002033/0.3131, allocations: 11.98 kB / 1.094 GB, free: 14.83 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.424e-05/0.3131, allocations: 11.98 kB / 1.094 GB, free: 14.82 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.431e-05/0.3131, allocations: 4 kB / 1.094 GB, free: 14.81 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0002221/0.3134, allocations: 263 kB / 1.094 GB, free: 14.56 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3134, allocations: 0 / 1.094 GB, free: 14.56 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0005481/0.3139, allocations: 187.6 kB / 1.094 GB, free: 14.38 MB / 0.8575 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.001004/0.3149, allocations: 0.9962 MB / 1.095 GB, free: 13.35 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004832/0.3154, allocations: 191.8 kB / 1.096 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.3154, allocations: 4 kB / 1.096 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001737/0.3156, allocations: 79.89 kB / 1.096 GB, free: 13.08 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008011/0.3164, allocations: 154 kB / 1.096 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003046/0.3195, allocations: 2.742 MB / 1.098 GB, free: 10.09 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003057/0.3198, allocations: 0.7918 MB / 1.099 GB, free: 9.27 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0002452/0.3201, allocations: 79.06 kB / 1.099 GB, free: 9.195 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001336/0.3202, allocations: 115.4 kB / 1.099 GB, free: 9.082 MB / 0.8575 GB Notification: Performance of SimCode: time 3.3e-07/0.3202, allocations: 0 / 1.099 GB, free: 9.082 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02568/0.3459, allocations: 9.976 MB / 1.109 GB, free: 15.3 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.452/7.798, allocations: 19.11 kB / 1.109 GB, free: 15.29 MB / 0.8731 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