Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|res.m_flow_nominal|res.m_flow|res.m_flow_turbulent|resLarPip.m_flow_nominal|resLarPip.m_flow|resLarPip.m_flow_turbulent|res.v|resLarPip.v|res.dh|resLarPip.dh",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter") translateModel(Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|res.m_flow_nominal|res.m_flow|res.m_flow_turbulent|resLarPip.m_flow_nominal|resLarPip.m_flow|resLarPip.m_flow_turbulent|res.v|resLarPip.v|res.dh|resLarPip.dh",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.453/1.453, allocations: 249.5 MB / 257 MB, free: 6.945 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001928/0.001928, allocations: 172.8 kB / 316.3 MB, free: 3.305 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.682/1.682, allocations: 205.3 MB / 0.5671 GB, free: 15.83 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009915/0.0009914, allocations: 87.86 kB / 0.6714 GB, free: 4.953 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.944e-05/2.019e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2665/0.2665, allocations: 106.3 MB / 0.8852 GB, free: 12.29 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.641/1.907, allocations: 394.4 MB / 1.27 GB, free: 260.1 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003268/1.908, allocations: 84.44 kB / 1.27 GB, free: 260.1 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.3051/2.213, allocations: 161.6 MB / 1.428 GB, free: 170.8 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.633e-06/2.213, allocations: 0 / 1.428 GB, free: 170.8 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 3.175e-05/2.213, allocations: 15.98 kB / 1.428 GB, free: 170.8 MB / 0.8698 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.0009055/2.214, allocations: 0.6577 MB / 1.429 GB, free: 170.1 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.423e-05/2.214, allocations: 12.03 kB / 1.429 GB, free: 170 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.258e-05/2.214, allocations: 43.44 kB / 1.429 GB, free: 170 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02434/2.238, allocations: 13.3 MB / 1.442 GB, free: 156.5 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.7e-05/2.238, allocations: 7.953 kB / 1.442 GB, free: 156.5 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.71e-05/2.238, allocations: 16 kB / 1.442 GB, free: 156.5 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002235/2.239, allocations: 100.6 kB / 1.442 GB, free: 156.4 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002101/2.239, allocations: 131.9 kB / 1.442 GB, free: 156.3 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.858e-06/2.239, allocations: 0 / 1.442 GB, free: 156.3 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.835e-05/2.239, allocations: 0 / 1.442 GB, free: 156.3 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.512e-06/2.239, allocations: 4 kB / 1.442 GB, free: 156.3 MB / 0.8698 GB Warning: The model contains alias variables with conflicting start and/or 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.0009137/2.24, allocations: 0.7873 MB / 1.443 GB, free: 155.4 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001921/2.24, allocations: 98.67 kB / 1.443 GB, free: 155.3 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.533e-05/2.24, allocations: 48.84 kB / 1.443 GB, free: 155.2 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002227/2.24, allocations: 340.4 kB / 1.443 GB, free: 154.8 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.649e-05/2.24, allocations: 42.44 kB / 1.444 GB, free: 154.8 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=12): time 1.293e-06/2.24, allocations: 0 / 1.444 GB, free: 154.8 MB / 0.8698 GB Notification: Performance of matching and sorting (n=12): time 0.0003353/2.241, allocations: 137.4 kB / 1.444 GB, free: 154.6 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.967e-05/2.241, allocations: 51.41 kB / 1.444 GB, free: 154.6 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001826/2.241, allocations: 258.4 kB / 1.444 GB, free: 154.3 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.721e-05/2.241, allocations: 25.7 kB / 1.444 GB, free: 154.3 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 8.148e-05/2.241, allocations: 188.2 kB / 1.444 GB, free: 154.1 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 2.714e-05/2.241, allocations: 43.3 kB / 1.444 GB, free: 154 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.091e-06/2.241, allocations: 0 / 1.444 GB, free: 154 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 6.197e-05/2.241, allocations: 342.8 kB / 1.445 GB, free: 153.7 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.942e-05/2.241, allocations: 23.98 kB / 1.445 GB, free: 153.7 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.581e-05/2.241, allocations: 90.8 kB / 1.445 GB, free: 153.6 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001187/2.241, allocations: 35.97 kB / 1.445 GB, free: 153.5 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/2.241, allocations: 0 / 1.445 GB, free: 153.5 MB / 0.8698 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002165/2.242, allocations: 145.2 kB / 1.445 GB, free: 153.4 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 4.82e-05/2.242, allocations: 186 kB / 1.445 GB, free: 153.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/2.242, allocations: 0 / 1.445 GB, free: 153.2 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.344e-05/2.242, allocations: 0 / 1.445 GB, free: 153.2 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001293/2.242, allocations: 31.92 kB / 1.445 GB, free: 153.2 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.292e-06/2.242, allocations: 3.953 kB / 1.445 GB, free: 153.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001814/2.242, allocations: 23.97 kB / 1.445 GB, free: 153.1 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.427e-05/2.242, allocations: 8 kB / 1.445 GB, free: 153.1 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 8.566e-06/2.242, allocations: 5.562 kB / 1.445 GB, free: 153.1 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001705/2.242, allocations: 76.02 kB / 1.445 GB, free: 153 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.063e-06/2.242, allocations: 4 kB / 1.445 GB, free: 153 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.964e-06/2.242, allocations: 0 / 1.445 GB, free: 153 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001107/2.242, allocations: 31.97 kB / 1.445 GB, free: 153 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.164e-06/2.242, allocations: 4 kB / 1.445 GB, free: 153 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001557/2.243, allocations: 27.83 kB / 1.445 GB, free: 153 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.491e-05/2.243, allocations: 4 kB / 1.445 GB, free: 153 MB / 0.8698 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.53e-05/2.243, allocations: 120.8 kB / 1.445 GB, free: 152.8 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.175e-05/2.243, allocations: 31.62 kB / 1.445 GB, free: 152.8 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00033/2.243, allocations: 168.8 kB / 1.446 GB, free: 152.6 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/2.243, allocations: 8 kB / 1.446 GB, free: 152.6 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.139e-06/2.243, allocations: 3.984 kB / 1.446 GB, free: 152.6 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.077e-06/2.243, allocations: 0 / 1.446 GB, free: 152.6 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005363/2.244, allocations: 0.5285 MB / 1.446 GB, free: 152.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/2.244, allocations: 0 / 1.446 GB, free: 152.1 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001052/2.244, allocations: 36.06 kB / 1.446 GB, free: 152 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/2.244, allocations: 4 kB / 1.446 GB, free: 152 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.069e-05/2.244, allocations: 0 / 1.446 GB, free: 152 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/2.244, allocations: 4 kB / 1.446 GB, free: 152 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/2.244, allocations: 3.984 kB / 1.446 GB, free: 152 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002577/2.244, allocations: 318.5 kB / 1.446 GB, free: 151.7 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 8.259e-05/2.244, allocations: 124.7 kB / 1.447 GB, free: 151.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.427e-05/2.244, allocations: 4 kB / 1.447 GB, free: 151.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001793/2.244, allocations: 27.84 kB / 1.447 GB, free: 151.5 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.479e-05/2.244, allocations: 11.98 kB / 1.447 GB, free: 151.5 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.315e-05/2.244, allocations: 11.98 kB / 1.447 GB, free: 151.5 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.0001276/2.245, allocations: 192.6 kB / 1.447 GB, free: 151.3 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.5e-07/2.245, allocations: 0 / 1.447 GB, free: 151.3 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0005498/2.245, allocations: 155.9 kB / 1.447 GB, free: 151.1 MB / 0.8698 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005004/2.246, allocations: 291.3 kB / 1.447 GB, free: 150.8 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0002291/2.246, allocations: 150 kB / 1.447 GB, free: 150.7 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/2.246, allocations: 0 / 1.447 GB, free: 150.7 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 7.755e-05/2.246, allocations: 59.92 kB / 1.447 GB, free: 150.6 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006562/2.247, allocations: 121.5 kB / 1.447 GB, free: 150.5 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005494/2.247, allocations: 370.3 kB / 1.448 GB, free: 150.1 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000202/2.247, allocations: 0.7997 MB / 1.449 GB, free: 149.3 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.0002976/2.248, allocations: 83.69 kB / 1.449 GB, free: 149.2 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.581e-05/2.248, allocations: 23.44 kB / 1.449 GB, free: 149.2 MB / 0.8698 GB Notification: Performance of SimCode: time 2.61e-07/2.248, allocations: 0 / 1.449 GB, free: 149.2 MB / 0.8698 GB Notification: Performance of Templates: time 0.008964/2.257, allocations: 5.981 MB / 1.455 GB, free: 143.3 MB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_FixedResistances_Examples_HydraulicDiameter.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches