Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_9_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_9_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.001161/0.001161, allocations: 92.39 kB / 16.02 MB, free: 80 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.00165/0.00165, allocations: 177.7 kB / 16.92 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.447/1.447, allocations: 223.3 MB / 241 MB, free: 5.254 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.477/2.477, allocations: 390.9 MB / 0.667 GB, free: 2.379 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004513/0.0004514, allocations: 12 kB / 0.8166 GB, free: 13.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.724/0.7245, allocations: 142.4 MB / 0.9557 GB, free: 7.746 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter): time 0.01356/0.7381, allocations: 14.49 MB / 0.9699 GB, free: 12.11 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.005844/0.744, allocations: 3.864 MB / 0.9736 GB, free: 9.004 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005437/0.7445, allocations: 15.94 kB / 0.9736 GB, free: 9 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0005914/0.7451, allocations: 151.6 kB / 0.9738 GB, free: 8.875 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.001787/0.7469, allocations: 0.6238 MB / 0.9744 GB, free: 8.406 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.001364/0.7483, allocations: 420.1 kB / 0.9748 GB, free: 8.133 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.001935/0.7503, allocations: 1.37 MB / 0.9761 GB, free: 7.379 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000408/0.7507, allocations: 237.3 kB / 0.9764 GB, free: 7.23 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007611/0.7515, allocations: 368.9 kB / 0.9767 GB, free: 7.031 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003741/0.7518, allocations: 268 kB / 0.977 GB, free: 6.879 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 3.674e-05/0.7519, allocations: 10.88 kB / 0.977 GB, free: 6.879 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001376/0.7533, allocations: 0.6941 MB / 0.9777 GB, free: 6.473 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001028/0.7534, allocations: 72.39 kB / 0.9777 GB, free: 6.418 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.000242/0.7536, allocations: 199.3 kB / 0.9779 GB, free: 6.281 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0007385/0.7544, allocations: 0.4917 MB / 0.9784 GB, free: 6.004 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.369e-06/0.7544, allocations: 0 / 0.9784 GB, free: 6.004 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.994e-06/0.7544, allocations: 1.031 kB / 0.9784 GB, free: 6.004 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.562e-06/0.7544, allocations: 0 / 0.9784 GB, free: 6.004 MB / 0.7325 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.00112/0.7555, allocations: 0.6839 MB / 0.9791 GB, free: 5.387 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.501e-05/0.7556, allocations: 9.312 kB / 0.9791 GB, free: 5.387 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.021e-05/0.7557, allocations: 41.78 kB / 0.9791 GB, free: 5.367 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008983/0.7566, allocations: 0.5006 MB / 0.9796 GB, free: 4.938 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.326e-05/0.7566, allocations: 15.83 kB / 0.9796 GB, free: 4.93 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.776e-05/0.7567, allocations: 16.34 kB / 0.9796 GB, free: 4.926 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003979/0.7571, allocations: 188.6 kB / 0.9798 GB, free: 4.812 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.747e-06/0.7571, allocations: 0 / 0.9798 GB, free: 4.812 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.154e-05/0.7571, allocations: 5.531 kB / 0.9798 GB, free: 4.809 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.929e-06/0.7571, allocations: 7.688 kB / 0.9798 GB, free: 4.805 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003599/0.7575, allocations: 148 kB / 0.98 GB, free: 4.742 MB / 0.7325 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.001201/0.7587, allocations: 0.8596 MB / 0.9808 GB, free: 3.941 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002766/0.759, allocations: 126.3 kB / 0.9809 GB, free: 3.871 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001914/0.7592, allocations: 79.09 kB / 0.981 GB, free: 3.832 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000321/0.7595, allocations: 336.3 kB / 0.9813 GB, free: 3.445 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.726e-05/0.7596, allocations: 38.5 kB / 0.9814 GB, free: 3.398 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=12): time 1.412e-06/0.7596, allocations: 1.5 kB / 0.9814 GB, free: 3.398 MB / 0.7325 GB Notification: Performance of matching and sorting (n=12): time 0.0006114/0.7602, allocations: 234.7 kB / 0.9816 GB, free: 3.277 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.548e-05/0.7603, allocations: 52.81 kB / 0.9816 GB, free: 3.215 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003651/0.7606, allocations: 347.7 kB / 0.982 GB, free: 2.996 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.365e-05/0.7607, allocations: 31.23 kB / 0.982 GB, free: 2.961 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001395/0.7608, allocations: 194.8 kB / 0.9822 GB, free: 2.785 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 4.129e-05/0.7609, allocations: 41.02 kB / 0.9822 GB, free: 2.75 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.127e-05/0.7609, allocations: 15.88 kB / 0.9822 GB, free: 2.73 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001323/0.761, allocations: 343.2 kB / 0.9826 GB, free: 2.395 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001849/0.7612, allocations: 57.56 kB / 0.9826 GB, free: 2.367 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002614/0.7615, allocations: 99.53 kB / 0.9827 GB, free: 2.293 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002996/0.7618, allocations: 127.5 kB / 0.9828 GB, free: 2.227 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.7618, allocations: 1.375 kB / 0.9828 GB, free: 2.227 MB / 0.7325 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0004092/0.7622, allocations: 186.3 kB / 0.983 GB, free: 2.125 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 6.625e-05/0.7623, allocations: 106 kB / 0.9831 GB, free: 2.02 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.7623, allocations: 0 / 0.9831 GB, free: 2.02 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.621e-05/0.7623, allocations: 5.453 kB / 0.9831 GB, free: 2.016 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001572/0.7625, allocations: 29.05 kB / 0.9831 GB, free: 2.008 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.113e-06/0.7625, allocations: 5.969 kB / 0.9832 GB, free: 2.004 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002508/0.7628, allocations: 27.69 kB / 0.9832 GB, free: 1.992 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.525e-05/0.7628, allocations: 3.906 kB / 0.9832 GB, free: 1.992 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 6.803e-06/0.7628, allocations: 3.938 kB / 0.9832 GB, free: 1.992 MB / 0.7325 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003361/0.7632, allocations: 126.8 kB / 0.9833 GB, free: 1.938 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.813e-06/0.7632, allocations: 0 / 0.9833 GB, free: 1.938 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.623e-06/0.7632, allocations: 1.219 kB / 0.9833 GB, free: 1.938 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001178/0.7633, allocations: 32.98 kB / 0.9833 GB, free: 1.926 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.707e-06/0.7633, allocations: 5.219 kB / 0.9833 GB, free: 1.922 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002167/0.7635, allocations: 43.81 kB / 0.9834 GB, free: 1.895 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.607e-05/0.7636, allocations: 8.266 kB / 0.9834 GB, free: 1.891 MB / 0.7325 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.0001928/0.7638, allocations: 218.4 kB / 0.9836 GB, free: 1.684 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.959e-05/0.7638, allocations: 32.66 kB / 0.9836 GB, free: 1.668 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005272/0.7644, allocations: 243.3 kB / 0.9839 GB, free: 1.52 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.126e-05/0.7644, allocations: 6.062 kB / 0.9839 GB, free: 1.516 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.708e-06/0.7644, allocations: 0 / 0.9839 GB, free: 1.516 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.516e-06/0.7644, allocations: 0 / 0.9839 GB, free: 1.516 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009467/0.7654, allocations: 0.641 MB / 0.9845 GB, free: 0.9805 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.7654, allocations: 0 / 0.9845 GB, free: 0.9805 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001156/0.7655, allocations: 30.36 kB / 0.9845 GB, free: 0.9727 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.606e-06/0.7655, allocations: 5.344 kB / 0.9845 GB, free: 0.9688 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.412e-05/0.7655, allocations: 7.031 kB / 0.9845 GB, free: 0.9648 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.7655, allocations: 1.438 kB / 0.9845 GB, free: 0.9648 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.7655, allocations: 1.25 kB / 0.9845 GB, free: 0.9648 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004753/0.766, allocations: 337.9 kB / 0.9849 GB, free: 0.7109 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001242/0.7661, allocations: 131.5 kB / 0.985 GB, free: 0.5781 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.141e-05/0.7662, allocations: 2.75 kB / 0.985 GB, free: 0.5781 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002349/0.7664, allocations: 29.56 kB / 0.985 GB, free: 0.5625 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.84e-05/0.7665, allocations: 10.64 kB / 0.985 GB, free: 0.5586 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.867e-05/0.7665, allocations: 8.25 kB / 0.985 GB, free: 0.5547 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0002506/0.7668, allocations: 244.3 kB / 0.9853 GB, free: 412 kB / 0.7325 GB Notification: Performance of sort global known variables: time 1.543e-06/0.7668, allocations: 0 / 0.9853 GB, free: 412 kB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0006605/0.7674, allocations: 199.9 kB / 0.9855 GB, free: 320 kB / 0.7325 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.0005227/0.768, allocations: 248 kB / 0.9857 GB, free: 72 kB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0005393/0.7685, allocations: 196 kB / 0.9859 GB, free: 15.88 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.7685, allocations: 0 / 0.9859 GB, free: 15.88 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0002099/0.7688, allocations: 92.08 kB / 0.986 GB, free: 15.79 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001147/0.7699, allocations: 149.8 kB / 0.9861 GB, free: 15.65 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009518/0.7709, allocations: 0.7146 MB / 0.9868 GB, free: 14.89 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004031/0.7713, allocations: 0.7997 MB / 0.9876 GB, free: 14.06 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.165e-05/0.7714, allocations: 31.44 kB / 0.9876 GB, free: 14.03 MB / 0.7481 GB Notification: Performance of SimCode: time 2.31e-07/0.7714, allocations: 0 / 0.9876 GB, free: 14.03 MB / 0.7481 GB Notification: Performance of Templates: time 0.00917/0.7806, allocations: 5.704 MB / 0.9932 GB, free: 8.383 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.makefile (rm -f Buildings_9_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe ; mkfifo Buildings_9_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe >> ../files/Buildings_9_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.sim & ./Buildings_9_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_FixedResistances_Examples_HydraulicDiameter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches