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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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: 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_10_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_10_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001482/0.001482, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001891/0.001891, allocations: 193.3 kB / 16.14 MB, free: 6.652 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.509/1.509, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.643/2.643, allocations: 437 MB / 0.7099 GB, free: 5.359 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001302/0.001302, allocations: 67.91 kB / 0.8685 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9157/0.9171, allocations: 151.6 MB / 1.017 GB, free: 2.781 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter): time 0.01774/0.9349, allocations: 15.02 MB / 1.031 GB, free: 3.707 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.006221/0.9411, allocations: 3.92 MB / 1.035 GB, free: 15.78 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006016/0.9418, allocations: 23.88 kB / 1.035 GB, free: 15.75 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0006717/0.9425, allocations: 159 kB / 1.035 GB, free: 15.6 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.001996/0.9445, allocations: 0.6106 MB / 1.036 GB, free: 14.98 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.001294/0.9458, allocations: 430.7 kB / 1.036 GB, free: 14.57 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.001927/0.9478, allocations: 1.362 MB / 1.038 GB, free: 13.2 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003876/0.9482, allocations: 237.2 kB / 1.038 GB, free: 12.97 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006807/0.9488, allocations: 378.3 kB / 1.038 GB, free: 12.6 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003393/0.9492, allocations: 262.8 kB / 1.038 GB, free: 12.34 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 4.249e-05/0.9492, allocations: 15.94 kB / 1.038 GB, free: 12.32 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001318/0.9506, allocations: 0.7016 MB / 1.039 GB, free: 11.62 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 9.632e-05/0.9507, allocations: 63.7 kB / 1.039 GB, free: 11.56 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001937/0.9509, allocations: 179 kB / 1.039 GB, free: 11.38 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0009695/0.9519, allocations: 0.7127 MB / 1.04 GB, free: 10.67 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.9519, allocations: 0 / 1.04 GB, free: 10.67 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.512e-06/0.9519, allocations: 0 / 1.04 GB, free: 10.67 MB / 0.795 GB Notification: Performance of Transformations before backend: time 7.243e-06/0.9519, allocations: 0 / 1.04 GB, free: 10.67 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.001219/0.9531, allocations: 0.7513 MB / 1.041 GB, free: 9.867 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 5.071e-05/0.9532, allocations: 8.031 kB / 1.041 GB, free: 9.859 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001017/0.9533, allocations: 40.47 kB / 1.041 GB, free: 9.82 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001035/0.9543, allocations: 0.49 MB / 1.041 GB, free: 9.289 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.819e-05/0.9544, allocations: 16.33 kB / 1.041 GB, free: 9.273 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.496e-05/0.9544, allocations: 20 kB / 1.041 GB, free: 9.254 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003788/0.9548, allocations: 176.2 kB / 1.042 GB, free: 9.078 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.9548, allocations: 0 / 1.042 GB, free: 9.078 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.207e-05/0.9548, allocations: 4 kB / 1.042 GB, free: 9.074 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.456e-06/0.9549, allocations: 4 kB / 1.042 GB, free: 9.07 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003536/0.9552, allocations: 143.8 kB / 1.042 GB, free: 8.93 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.001181/0.9564, allocations: 0.8644 MB / 1.043 GB, free: 7.965 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002771/0.9567, allocations: 118.6 kB / 1.043 GB, free: 7.84 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001588/0.9569, allocations: 72.81 kB / 1.043 GB, free: 7.766 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004131/0.9573, allocations: 336.4 kB / 1.043 GB, free: 7.363 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.706e-05/0.9573, allocations: 34.55 kB / 1.043 GB, free: 7.32 MB / 0.795 GB Notification: Performance of pre-optimization done (n=12): time 1.342e-06/0.9573, allocations: 4 kB / 1.043 GB, free: 7.316 MB / 0.795 GB Notification: Performance of matching and sorting (n=12): time 0.0005796/0.9579, allocations: 225 kB / 1.043 GB, free: 7.09 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.474e-05/0.958, allocations: 55.41 kB / 1.043 GB, free: 7.023 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003407/0.9584, allocations: 341.7 kB / 1.044 GB, free: 6.684 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.535e-05/0.9584, allocations: 33.7 kB / 1.044 GB, free: 6.645 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001367/0.9585, allocations: 188.3 kB / 1.044 GB, free: 6.457 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 4.14e-05/0.9586, allocations: 43.39 kB / 1.044 GB, free: 6.414 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.291e-05/0.9586, allocations: 37.7 kB / 1.044 GB, free: 6.371 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001436/0.9588, allocations: 342.8 kB / 1.044 GB, free: 6.027 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001398/0.9589, allocations: 48.83 kB / 1.044 GB, free: 5.977 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000192/0.9591, allocations: 100.1 kB / 1.044 GB, free: 5.863 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002679/0.9594, allocations: 113.6 kB / 1.045 GB, free: 5.746 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.9594, allocations: 4 kB / 1.045 GB, free: 5.742 MB / 0.795 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003658/0.9598, allocations: 173.2 kB / 1.045 GB, free: 5.566 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.051e-05/0.9598, allocations: 7.938 kB / 1.045 GB, free: 5.559 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.994e-06/0.9598, allocations: 0 / 1.045 GB, free: 5.559 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.348e-05/0.9599, allocations: 4 kB / 1.045 GB, free: 5.555 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001496/0.96, allocations: 31.91 kB / 1.045 GB, free: 5.523 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.016e-06/0.96, allocations: 4 kB / 1.045 GB, free: 5.52 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002264/0.9603, allocations: 23.89 kB / 1.045 GB, free: 5.496 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.769e-05/0.9603, allocations: 7.984 kB / 1.045 GB, free: 5.488 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002235/0.9605, allocations: 152.1 kB / 1.045 GB, free: 5.336 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001531/0.9607, allocations: 88.25 kB / 1.045 GB, free: 5.234 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003163/0.961, allocations: 113.6 kB / 1.045 GB, free: 5.117 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.495e-06/0.961, allocations: 4 kB / 1.045 GB, free: 5.113 MB / 0.795 GB Notification: Performance of matching and sorting (n=12) (initialization_lambda0): time 0.0003452/0.9614, allocations: 173.2 kB / 1.045 GB, free: 4.938 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 8.186e-06/0.9614, allocations: 5.562 kB / 1.045 GB, free: 4.934 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.91e-06/0.9614, allocations: 7.984 kB / 1.045 GB, free: 4.926 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.687e-06/0.9614, allocations: 3.938 kB / 1.045 GB, free: 4.922 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001104/0.9615, allocations: 23.98 kB / 1.045 GB, free: 4.898 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.814e-06/0.9615, allocations: 0 / 1.045 GB, free: 4.898 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002045/0.9618, allocations: 31.81 kB / 1.045 GB, free: 4.867 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.588e-05/0.9618, allocations: 11.94 kB / 1.045 GB, free: 4.855 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.00011/0.9619, allocations: 188.2 kB / 1.046 GB, free: 4.664 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.336e-05/0.962, allocations: 35.56 kB / 1.046 GB, free: 4.629 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005066/0.9625, allocations: 229.5 kB / 1.046 GB, free: 4.395 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.119e-05/0.9625, allocations: 3.984 kB / 1.046 GB, free: 4.391 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.9625, allocations: 4 kB / 1.046 GB, free: 4.387 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.9625, allocations: 0 / 1.046 GB, free: 4.387 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009314/0.9635, allocations: 0.6372 MB / 1.046 GB, free: 3.684 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.9635, allocations: 0 / 1.046 GB, free: 3.684 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001102/0.9636, allocations: 31.91 kB / 1.046 GB, free: 3.652 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.9636, allocations: 4.094 kB / 1.046 GB, free: 3.648 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.438e-05/0.9636, allocations: 4 kB / 1.046 GB, free: 3.645 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.9636, allocations: 0 / 1.046 GB, free: 3.645 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.9636, allocations: 0 / 1.046 GB, free: 3.645 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005045/0.9641, allocations: 317.7 kB / 1.047 GB, free: 3.309 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001201/0.9643, allocations: 128.5 kB / 1.047 GB, free: 3.164 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.801e-05/0.9643, allocations: 15.94 kB / 1.047 GB, free: 3.148 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002215/0.9645, allocations: 19.97 kB / 1.047 GB, free: 3.129 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.12e-05/0.9646, allocations: 7.984 kB / 1.047 GB, free: 3.121 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.555e-05/0.9646, allocations: 12 kB / 1.047 GB, free: 3.109 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0002435/0.9649, allocations: 251.2 kB / 1.047 GB, free: 2.867 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9649, allocations: 0 / 1.047 GB, free: 2.867 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0006494/0.9655, allocations: 191.6 kB / 1.047 GB, free: 2.68 MB / 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.0006154/0.9662, allocations: 247.8 kB / 1.048 GB, free: 2.438 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0005721/0.9667, allocations: 195.7 kB / 1.048 GB, free: 2.246 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.9668, allocations: 0 / 1.048 GB, free: 2.246 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0002122/0.967, allocations: 79.89 kB / 1.048 GB, free: 2.168 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008878/0.9679, allocations: 138 kB / 1.048 GB, free: 2.031 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00107/0.969, allocations: 0.6667 MB / 1.049 GB, free: 1.332 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004133/0.9694, allocations: 0.796 MB / 1.049 GB, free: 0.5117 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002642/0.9697, allocations: 75.25 kB / 1.049 GB, free: 452 kB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.942e-05/0.9697, allocations: 31.44 kB / 1.05 GB, free: 424 kB / 0.795 GB Notification: Performance of SimCode: time 2e-07/0.9697, allocations: 0 / 1.05 GB, free: 424 kB / 0.795 GB Notification: Performance of Templates: time 0.01467/0.9844, allocations: 6.305 MB / 1.056 GB, free: 10.21 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.makefile (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 & ./Buildings_10_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches