Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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: translateModel(Buildings.Fluid.Examples.Performance.Example2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pump_dp.m_flow",fileNamePrefix="Buildings_latest_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_latest_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.0009144/0.0009143, allocations: 97.78 kB / 16.02 MB, free: 76 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.001161/0.001161, allocations: 181.7 kB / 16.92 MB, free: 6.918 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.402/1.402, allocations: 223.3 MB / 241 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.873/2.873, allocations: 462.6 MB / 0.7371 GB, free: 15.56 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.000356/0.0003561, allocations: 7.562 kB / 0.9034 GB, free: 36.36 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2834/0.2838, allocations: 159.6 MB / 1.059 GB, free: 4.949 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.Performance.Example2): time 0.02727/0.3111, allocations: 29.13 MB / 1.088 GB, free: 7.711 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.01633/0.3275, allocations: 11.71 MB / 1.099 GB, free: 11.97 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001667/0.3292, allocations: 39.75 kB / 1.099 GB, free: 11.93 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.007151/0.3364, allocations: 3.77 MB / 1.103 GB, free: 8.152 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.00398/0.3404, allocations: 1.407 MB / 1.104 GB, free: 6.742 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.003261/0.3436, allocations: 1.267 MB / 1.106 GB, free: 5.48 MB / 0.8575 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/NFFrontEnd/NFCeval.mo:1080:9-1080:67:writable] Error: Internal error NFCeval.evalBinaryMul failed to evaluate ‘{0.0, 0.002008867139553991}[pressure.n] * 0.0‘ Notification: Performance of NFFlatten.flatten: time 0.009985/0.3536, allocations: 7.989 MB / 1.113 GB, free: 13.48 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00197/0.3556, allocations: 1.146 MB / 1.114 GB, free: 12.3 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002483/0.3581, allocations: 1.225 MB / 1.116 GB, free: 11.07 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001553/0.3597, allocations: 1.077 MB / 1.117 GB, free: 9.988 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0001824/0.3599, allocations: 55.94 kB / 1.117 GB, free: 9.934 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002534/0.3624, allocations: 1.267 MB / 1.118 GB, free: 8.664 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0004729/0.3629, allocations: 454.2 kB / 1.118 GB, free: 8.219 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.001108/0.3641, allocations: 0.8991 MB / 1.119 GB, free: 7.309 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.002534/0.3666, allocations: 2.248 MB / 1.121 GB, free: 5.055 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 3.898e-06/0.3666, allocations: 0 / 1.121 GB, free: 5.055 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.502e-06/0.3666, allocations: 0 / 1.121 GB, free: 5.055 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 2.579e-05/0.3667, allocations: 0 / 1.121 GB, free: 5.055 MB / 0.8731 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 0.003235/0.3699, allocations: 2.024 MB / 1.123 GB, free: 2.961 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.3699, allocations: 8.031 kB / 1.123 GB, free: 2.953 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001773/0.3717, allocations: 389.2 kB / 1.124 GB, free: 2.57 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003656/0.3754, allocations: 2.336 MB / 1.126 GB, free: 192 kB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.354e-05/0.3755, allocations: 70.2 kB / 1.126 GB, free: 120 kB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001449/0.3757, allocations: 88 kB / 1.126 GB, free: 32 kB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001833/0.3775, allocations: 1.016 MB / 1.127 GB, free: 14.96 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.17e-05/0.3775, allocations: 0 / 1.127 GB, free: 14.96 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.787e-05/0.3776, allocations: 36 kB / 1.127 GB, free: 14.92 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.625e-05/0.3777, allocations: 16 kB / 1.127 GB, free: 14.91 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001743/0.3794, allocations: 0.7805 MB / 1.128 GB, free: 14.12 MB / 0.8887 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.006435/0.3858, allocations: 5.368 MB / 1.133 GB, free: 8.383 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001394/0.3873, allocations: 0.5815 MB / 1.134 GB, free: 7.793 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007203/0.388, allocations: 334.9 kB / 1.134 GB, free: 7.465 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002433/0.3905, allocations: 1.646 MB / 1.136 GB, free: 5.668 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007588/0.3912, allocations: 339 kB / 1.136 GB, free: 5.324 MB / 0.8887 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005267/0.3918, allocations: 111.3 kB / 1.136 GB, free: 5.215 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=43): time 3.186e-06/0.3918, allocations: 0 / 1.136 GB, free: 5.215 MB / 0.8887 GB Notification: Performance of matching and sorting (n=43): time 0.003559/0.3954, allocations: 1.254 MB / 1.137 GB, free: 3.93 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.894e-05/0.3954, allocations: 55.41 kB / 1.138 GB, free: 3.863 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002581/0.398, allocations: 1.846 MB / 1.139 GB, free: 1.973 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 0.0001253/0.3982, allocations: 41.7 kB / 1.139 GB, free: 1.926 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006927/0.3989, allocations: 0.7793 MB / 1.14 GB, free: 1.137 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001531/0.399, allocations: 149.9 kB / 1.14 GB, free: 0.9883 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001584/0.3992, allocations: 125.6 kB / 1.14 GB, free: 0.8594 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001434/0.3993, allocations: 361.9 kB / 1.141 GB, free: 0.5 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008937/0.4002, allocations: 450 kB / 1.141 GB, free: 60 kB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001144/0.4014, allocations: 0.8474 MB / 1.142 GB, free: 15.04 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001847/0.4033, allocations: 1.172 MB / 1.143 GB, free: 13.75 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.224e-06/0.4033, allocations: 0 / 1.143 GB, free: 13.75 MB / 0.9044 GB Notification: Performance of matching and sorting (n=151) (initialization): time 0.003193/0.4065, allocations: 1.607 MB / 1.145 GB, free: 12.12 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002589/0.4068, allocations: 377.9 kB / 1.145 GB, free: 11.62 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.473e-05/0.4068, allocations: 8 kB / 1.145 GB, free: 11.62 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000647/0.4074, allocations: 188.6 kB / 1.145 GB, free: 11.43 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007717/0.4082, allocations: 211.6 kB / 1.145 GB, free: 11.22 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007426/0.409, allocations: 0.763 MB / 1.146 GB, free: 10.43 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001326/0.4103, allocations: 113.6 kB / 1.146 GB, free: 10.32 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.831e-05/0.4104, allocations: 47.98 kB / 1.146 GB, free: 10.28 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.006e-05/0.4104, allocations: 4 kB / 1.146 GB, free: 10.27 MB / 0.9044 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002434/0.4129, allocations: 1.424 MB / 1.148 GB, free: 8.824 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.854e-05/0.4129, allocations: 12 kB / 1.148 GB, free: 8.812 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002264/0.4132, allocations: 104.8 kB / 1.148 GB, free: 8.707 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007005/0.4139, allocations: 200.1 kB / 1.148 GB, free: 8.512 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002131/0.416, allocations: 2.158 MB / 1.15 GB, free: 6.207 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001356/0.4174, allocations: 109.6 kB / 1.15 GB, free: 6.102 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001168/0.4175, allocations: 48 kB / 1.15 GB, free: 6.055 MB / 0.9044 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * Number of states: 0 () * Number of discrete variables: 7 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,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 (106): * Single equations (assignments): 102 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,7)} Notification: Performance of prepare postOptimizeDAE: time 0.001013/0.4185, allocations: 0.5748 MB / 1.151 GB, free: 5.469 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003197/0.4189, allocations: 165.8 kB / 1.151 GB, free: 5.305 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002102/0.421, allocations: 0.912 MB / 1.152 GB, free: 4.379 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.283e-05/0.421, allocations: 4 kB / 1.152 GB, free: 4.375 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.389e-06/0.421, allocations: 4 kB / 1.152 GB, free: 4.371 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001537/0.4226, allocations: 0.8921 MB / 1.153 GB, free: 3.406 MB / 0.9044 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 postOpt removeSimpleEquations (simulation): time 0.003739/0.4263, allocations: 2.063 MB / 1.155 GB, free: 1.258 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.4263, allocations: 0 / 1.155 GB, free: 1.258 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004445/0.4268, allocations: 87.94 kB / 1.155 GB, free: 1.172 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003013/0.4271, allocations: 136.8 kB / 1.155 GB, free: 1.035 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.081e-05/0.4271, allocations: 12 kB / 1.155 GB, free: 1.023 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006213/0.4278, allocations: 0.7513 MB / 1.156 GB, free: 252 kB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.003e-06/0.4278, allocations: 0 / 1.156 GB, free: 252 kB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00259/0.4304, allocations: 1.251 MB / 1.157 GB, free: 14.96 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006205/0.431, allocations: 326.7 kB / 1.157 GB, free: 14.62 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001739/0.4312, allocations: 15.88 kB / 1.157 GB, free: 14.61 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007862/0.432, allocations: 79.98 kB / 1.157 GB, free: 14.53 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.657e-05/0.4321, allocations: 40.38 kB / 1.157 GB, free: 14.49 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.069e-05/0.4322, allocations: 19.98 kB / 1.157 GB, free: 14.47 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.001784/0.434, allocations: 1.246 MB / 1.159 GB, free: 13.2 MB / 0.92 GB Notification: Performance of sort global known variables: time 3.41e-07/0.434, allocations: 4 kB / 1.159 GB, free: 13.2 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.002335/0.4363, allocations: 0.8034 MB / 1.159 GB, free: 12.39 MB / 0.92 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 (38): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001154/0.4375, allocations: 0.5054 MB / 1.16 GB, free: 11.89 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.003627/0.4411, allocations: 1.868 MB / 1.162 GB, free: 9.988 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 6.542e-06/0.4411, allocations: 4 kB / 1.162 GB, free: 9.984 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0008395/0.442, allocations: 334.8 kB / 1.162 GB, free: 9.656 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00364/0.4456, allocations: 0.7422 MB / 1.163 GB, free: 8.922 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006555/0.4522, allocations: 3.648 MB / 1.166 GB, free: 5.234 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001056/0.4533, allocations: 1.433 MB / 1.168 GB, free: 3.773 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004813/0.4538, allocations: 135.4 kB / 1.168 GB, free: 3.641 MB / 0.92 GB Notification: Performance of SimCode: time 2.445e-06/0.4538, allocations: 0 / 1.168 GB, free: 3.641 MB / 0.92 GB Notification: Performance of Templates: time 0.05112/0.5049, allocations: 36.21 MB / 1.203 GB, free: 15.6 MB / 0.9669 GB make -j1 -f Buildings_latest_Buildings.Fluid.Examples.Performance.Example2.makefile (rm -f Buildings_latest_Buildings.Fluid.Examples.Performance.Example2.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Examples.Performance.Example2.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Examples.Performance.Example2.pipe >> ../files/Buildings_latest_Buildings.Fluid.Examples.Performance.Example2.sim & ./Buildings_latest_Buildings.Fluid.Examples.Performance.Example2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Examples.Performance.Example2.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Examples.Performance.Example2_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Examples_Performance_Example2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Examples.Performance.Example2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches