Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Examples.Performance.Example2.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.Examples.Performance.Example2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pump_dp.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Examples.Performance.Example2") translateModel(Buildings.Fluid.Examples.Performance.Example2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pump_dp.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Examples.Performance.Example2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001195/0.001195, allocations: 99.47 kB / 15.05 MB, free: 1.105 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.001412/0.001412, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.378/1.378, allocations: 223.2 MB / 239.9 MB, free: 5.328 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.334/2.334, allocations: 390.2 MB / 0.6653 GB, free: 2.988 MB / 0.5138 GB Notification: Performance of FrontEnd - loaded program: time 0.0005841/0.0005845, allocations: 12 kB / 0.8145 GB, free: 14.31 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.75/0.7506, allocations: 142.3 MB / 0.9535 GB, free: 8.27 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.Performance.Example2): time 0.02411/0.7748, allocations: 24.82 MB / 0.9777 GB, free: 4.812 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.01371/0.7885, allocations: 8.651 MB / 0.9862 GB, free: 13.94 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001921/0.7905, allocations: 36.69 kB / 0.9862 GB, free: 13.92 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.002011/0.7925, allocations: 0.5219 MB / 0.9867 GB, free: 13.49 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.004632/0.7972, allocations: 1.369 MB / 0.9881 GB, free: 12.37 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.004219/0.8014, allocations: 1.327 MB / 0.9894 GB, free: 11.51 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.004363/0.8058, allocations: 2.228 MB / 0.9915 GB, free: 9.312 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001608/0.8074, allocations: 1.002 MB / 0.9925 GB, free: 8.293 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002046/0.8095, allocations: 1.008 MB / 0.9935 GB, free: 7.281 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009991/0.8105, allocations: 0.7078 MB / 0.9942 GB, free: 6.57 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.0001167/0.8106, allocations: 52 kB / 0.9942 GB, free: 6.52 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00224/0.8129, allocations: 0.7295 MB / 0.995 GB, free: 5.789 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0003563/0.8132, allocations: 310.8 kB / 0.9953 GB, free: 5.484 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0004167/0.8137, allocations: 313 kB / 0.9956 GB, free: 5.172 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.002157/0.8158, allocations: 1.746 MB / 0.9973 GB, free: 3.422 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.8158, allocations: 0 / 0.9973 GB, free: 3.422 MB / 0.7481 GB Notification: Performance of FrontEnd: time 2.325e-06/0.8158, allocations: 0 / 0.9973 GB, free: 3.422 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 2.525e-05/0.8159, allocations: 4 kB / 0.9973 GB, free: 3.418 MB / 0.7481 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 188 * Number of variables: 188 Notification: Performance of Generate backend data structure: time 0.003445/0.8193, allocations: 1.699 MB / 0.9989 GB, free: 1.66 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.669e-05/0.8194, allocations: 8.031 kB / 0.9989 GB, free: 1.652 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001657/0.821, allocations: 345.8 kB / 0.9993 GB, free: 1.312 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002868/0.8239, allocations: 1.328 MB / 1.001 GB, free: 15.93 MB / 0.7638 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.966e-05/0.824, allocations: 69.95 kB / 1.001 GB, free: 15.86 MB / 0.7638 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001384/0.8242, allocations: 88 kB / 1.001 GB, free: 15.78 MB / 0.7638 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001905/0.8261, allocations: 1.039 MB / 1.002 GB, free: 14.69 MB / 0.7638 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.405e-05/0.8261, allocations: 3.938 kB / 1.002 GB, free: 14.68 MB / 0.7638 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.272e-05/0.8262, allocations: 32 kB / 1.002 GB, free: 14.65 MB / 0.7638 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.794e-05/0.8262, allocations: 23.94 kB / 1.002 GB, free: 14.63 MB / 0.7638 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002026/0.8283, allocations: 0.8781 MB / 1.003 GB, free: 13.75 MB / 0.7638 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.006597/0.8349, allocations: 5.073 MB / 1.008 GB, free: 8.336 MB / 0.7638 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001503/0.8364, allocations: 0.6712 MB / 1.008 GB, free: 7.656 MB / 0.7638 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003017/0.8394, allocations: 1.933 MB / 1.01 GB, free: 5.574 MB / 0.7638 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000902/0.8404, allocations: 395 kB / 1.011 GB, free: 5.176 MB / 0.7638 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005221/0.8409, allocations: 115.4 kB / 1.011 GB, free: 5.062 MB / 0.7638 GB Notification: Performance of pre-optimization done (n=44): time 2.435e-06/0.8409, allocations: 0 / 1.011 GB, free: 5.062 MB / 0.7638 GB Notification: Performance of matching and sorting (n=44): time 0.004196/0.8451, allocations: 1.442 MB / 1.012 GB, free: 3.59 MB / 0.7638 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.882e-05/0.8452, allocations: 63.33 kB / 1.012 GB, free: 3.516 MB / 0.7638 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001751/0.8469, allocations: 1.337 MB / 1.013 GB, free: 2.164 MB / 0.7638 GB Notification: Performance of collectPreVariables (initialization): time 7.625e-05/0.847, allocations: 37.7 kB / 1.013 GB, free: 2.121 MB / 0.7638 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005433/0.8476, allocations: 0.6373 MB / 1.014 GB, free: 1.477 MB / 0.7638 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001422/0.8477, allocations: 157.8 kB / 1.014 GB, free: 1.32 MB / 0.7638 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.688e-05/0.8478, allocations: 12 kB / 1.014 GB, free: 1.309 MB / 0.7638 GB Notification: Performance of setup shared object (initialization): time 0.0001299/0.8479, allocations: 337.9 kB / 1.015 GB, free: 0.9727 MB / 0.7638 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007376/0.8486, allocations: 297.8 kB / 1.015 GB, free: 0.6836 MB / 0.7638 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001002/0.8497, allocations: 0.6455 MB / 1.015 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008419/0.8505, allocations: 398.2 kB / 1.016 GB, free: 15.49 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.22e-06/0.8505, allocations: 0 / 1.016 GB, free: 15.49 MB / 0.7794 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002768/0.8533, allocations: 1.195 MB / 1.017 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 0.001129/0.8544, allocations: 3.129 MB / 1.02 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.52e-05/0.8545, allocations: 8 kB / 1.02 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008289/0.8553, allocations: 236.4 kB / 1.02 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006829/0.856, allocations: 163.8 kB / 1.02 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009333/0.8569, allocations: 0.8566 MB / 1.021 GB, free: 9.668 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001327/0.8583, allocations: 112.5 kB / 1.021 GB, free: 9.555 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.14e-05/0.8584, allocations: 43.98 kB / 1.021 GB, free: 9.512 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.109e-05/0.8584, allocations: 7.938 kB / 1.021 GB, free: 9.504 MB / 0.7794 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001836/0.8603, allocations: 0.9146 MB / 1.022 GB, free: 8.578 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.011e-05/0.8603, allocations: 8 kB / 1.022 GB, free: 8.57 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003522/0.8606, allocations: 144.7 kB / 1.022 GB, free: 8.426 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005636/0.8612, allocations: 159.8 kB / 1.023 GB, free: 8.27 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002469/0.8637, allocations: 2.377 MB / 1.025 GB, free: 5.746 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001158/0.8649, allocations: 108.5 kB / 1.025 GB, free: 5.641 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.99e-05/0.865, allocations: 36 kB / 1.025 GB, free: 5.605 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 35 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,nRes.y,from_dp.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (72): * Single equations (assignments): 69 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {5 7} Notification: Performance of prepare postOptimizeDAE: time 0.0007696/0.8657, allocations: 476.7 kB / 1.026 GB, free: 5.129 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001788/0.8659, allocations: 134.3 kB / 1.026 GB, free: 4.996 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002238/0.8682, allocations: 1.001 MB / 1.027 GB, free: 3.977 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.179e-05/0.8682, allocations: 4 kB / 1.027 GB, free: 3.973 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.8682, allocations: 8.109 kB / 1.027 GB, free: 3.965 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001744/0.8699, allocations: 1.001 MB / 1.028 GB, free: 2.895 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003723/0.8737, allocations: 2.041 MB / 1.03 GB, free: 0.7656 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.615e-06/0.8737, allocations: 3.953 kB / 1.03 GB, free: 0.7617 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000536/0.8742, allocations: 107.9 kB / 1.03 GB, free: 0.6562 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003188/0.8746, allocations: 144.7 kB / 1.03 GB, free: 0.5117 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.165e-05/0.8746, allocations: 15.98 kB / 1.03 GB, free: 0.4961 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006956/0.8753, allocations: 0.8152 MB / 1.031 GB, free: 15.66 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.8753, allocations: 3.938 kB / 1.031 GB, free: 15.65 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002833/0.8782, allocations: 1.413 MB / 1.032 GB, free: 14.2 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006883/0.8789, allocations: 295.3 kB / 1.032 GB, free: 13.89 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000148/0.879, allocations: 15.95 kB / 1.032 GB, free: 13.87 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008529/0.8799, allocations: 87.91 kB / 1.032 GB, free: 13.79 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001086/0.88, allocations: 44.38 kB / 1.032 GB, free: 13.74 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.912e-05/0.8801, allocations: 23.98 kB / 1.033 GB, free: 13.72 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.001324/0.8814, allocations: 0.9209 MB / 1.033 GB, free: 12.8 MB / 0.795 GB Notification: Performance of sort global known variables: time 1e-07/0.8814, allocations: 0 / 1.033 GB, free: 12.8 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.002156/0.8836, allocations: 0.6902 MB / 1.034 GB, free: 12.11 MB / 0.795 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (pump_dp.vol.dynBal.U) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {5 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009848/0.8846, allocations: 370.2 kB / 1.034 GB, free: 11.74 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.003584/0.8882, allocations: 1.495 MB / 1.036 GB, free: 10.21 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.8882, allocations: 0 / 1.036 GB, free: 10.21 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0009197/0.8891, allocations: 391.4 kB / 1.036 GB, free: 9.836 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002719/0.8919, allocations: 0.5866 MB / 1.037 GB, free: 9.254 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00481/0.8967, allocations: 2.756 MB / 1.04 GB, free: 6.469 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00111/0.8978, allocations: 1.299 MB / 1.041 GB, free: 5.137 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.001544/0.8994, allocations: 318.4 kB / 1.041 GB, free: 4.82 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003791/0.8998, allocations: 107.4 kB / 1.041 GB, free: 4.715 MB / 0.795 GB Notification: Performance of SimCode: time 1.623e-06/0.8998, allocations: 0 / 1.041 GB, free: 4.715 MB / 0.795 GB Notification: Performance of Templates: time 0.04466/0.9444, allocations: 25.59 MB / 1.066 GB, free: 11.44 MB / 0.8263 GB make -j1 -f Buildings_9_Buildings.Fluid.Examples.Performance.Example2.makefile (rm -f Buildings_9_Buildings.Fluid.Examples.Performance.Example2.pipe ; mkfifo Buildings_9_Buildings.Fluid.Examples.Performance.Example2.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Examples.Performance.Example2.pipe >> ../files/Buildings_9_Buildings.Fluid.Examples.Performance.Example2.sim & ./Buildings_9_Buildings.Fluid.Examples.Performance.Example2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Examples.Performance.Example2.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Examples.Performance.Example2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Examples_Performance_Example2.csv","../files/Buildings_9_Buildings.Fluid.Examples.Performance.Example2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches