Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.Examples.Performance.Example3.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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.Examples.Performance.Example3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pump.m_flow",fileNamePrefix="Buildings_10_Buildings.Fluid.Examples.Performance.Example3") translateModel(Buildings.Fluid.Examples.Performance.Example3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pump.m_flow",fileNamePrefix="Buildings_10_Buildings.Fluid.Examples.Performance.Example3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001053/0.001053, allocations: 99.03 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.001416/0.001416, allocations: 181.6 kB / 16.92 MB, free: 6.891 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.338/1.338, allocations: 223.3 MB / 241 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.527/2.527, allocations: 437.8 MB / 0.7128 GB, free: 6.996 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003657/0.000366, allocations: 12.23 kB / 0.8735 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6179/0.6183, allocations: 153.8 MB / 1.024 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.Performance.Example3): time 0.03248/0.6508, allocations: 32.21 MB / 1.055 GB, free: 15.54 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.01936/0.6702, allocations: 12.28 MB / 1.067 GB, free: 3.23 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002068/0.6723, allocations: 47.69 kB / 1.067 GB, free: 3.184 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.008015/0.6804, allocations: 3.805 MB / 1.071 GB, free: 15.37 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.004811/0.6852, allocations: 1.52 MB / 1.072 GB, free: 13.85 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.003966/0.6892, allocations: 1.301 MB / 1.074 GB, free: 12.55 MB / 0.8262 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.01252/0.7017, allocations: 9.428 MB / 1.083 GB, free: 3.105 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00347/0.7052, allocations: 1.757 MB / 1.085 GB, free: 1.316 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003845/0.7091, allocations: 1.587 MB / 1.086 GB, free: 15.72 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002661/0.7118, allocations: 1.392 MB / 1.087 GB, free: 14.32 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0005567/0.7124, allocations: 72 kB / 1.088 GB, free: 14.25 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003688/0.7161, allocations: 1.302 MB / 1.089 GB, free: 12.95 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.001026/0.7171, allocations: 0.5057 MB / 1.089 GB, free: 12.44 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.002364/0.7195, allocations: 1.109 MB / 1.09 GB, free: 11.32 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.003926/0.7235, allocations: 2.615 MB / 1.093 GB, free: 8.699 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.7235, allocations: 0 / 1.093 GB, free: 8.699 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.815e-06/0.7235, allocations: 0 / 1.093 GB, free: 8.699 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.756e-05/0.7236, allocations: 0 / 1.093 GB, free: 8.699 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 239 * Number of variables: 239 Notification: Performance of Generate backend data structure: time 0.00439/0.728, allocations: 2.395 MB / 1.095 GB, free: 6.227 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.865e-05/0.728, allocations: 15.98 kB / 1.095 GB, free: 6.211 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00195/0.73, allocations: 444.5 kB / 1.096 GB, free: 5.773 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004649/0.7347, allocations: 2.665 MB / 1.098 GB, free: 3.039 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001062/0.7348, allocations: 86.27 kB / 1.098 GB, free: 2.953 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001914/0.735, allocations: 111.9 kB / 1.099 GB, free: 2.844 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002355/0.7374, allocations: 1.329 MB / 1.1 GB, free: 1.441 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.998e-05/0.7374, allocations: 7.938 kB / 1.1 GB, free: 1.434 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001042/0.7375, allocations: 40 kB / 1.1 GB, free: 1.395 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.46e-05/0.7375, allocations: 24 kB / 1.1 GB, free: 1.371 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002149/0.7397, allocations: 1.05 MB / 1.101 GB, free: 328 kB / 0.8419 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.009035/0.7487, allocations: 7.169 MB / 1.108 GB, free: 8.645 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001456/0.7502, allocations: 0.6126 MB / 1.109 GB, free: 8.027 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007925/0.751, allocations: 407 kB / 1.109 GB, free: 7.629 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003075/0.7541, allocations: 1.774 MB / 1.111 GB, free: 5.715 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008331/0.755, allocations: 379 kB / 1.111 GB, free: 5.332 MB / 0.8575 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007678/0.7558, allocations: 119.1 kB / 1.111 GB, free: 5.215 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=45): time 2.955e-06/0.7558, allocations: 0 / 1.111 GB, free: 5.215 MB / 0.8575 GB Notification: Performance of matching and sorting (n=45): time 0.003795/0.7596, allocations: 1.387 MB / 1.112 GB, free: 3.797 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.301e-05/0.7596, allocations: 59.41 kB / 1.113 GB, free: 3.727 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003225/0.7629, allocations: 2.352 MB / 1.115 GB, free: 1.355 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 0.0001642/0.7631, allocations: 41.7 kB / 1.115 GB, free: 1.309 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009934/0.7641, allocations: 0.9919 MB / 1.116 GB, free: 312 kB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002532/0.7643, allocations: 165.8 kB / 1.116 GB, free: 144 kB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002401/0.7646, allocations: 137.6 kB / 1.116 GB, free: 0 / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0002276/0.7648, allocations: 357.9 kB / 1.116 GB, free: 15.64 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00109/0.7659, allocations: 0.4945 MB / 1.117 GB, free: 15.15 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001302/0.7672, allocations: 0.9892 MB / 1.118 GB, free: 13.94 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002083/0.7693, allocations: 1.351 MB / 1.119 GB, free: 12.44 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.528e-06/0.7694, allocations: 7.938 kB / 1.119 GB, free: 12.43 MB / 0.8731 GB Notification: Performance of matching and sorting (n=165) (initialization): time 0.003648/0.773, allocations: 1.815 MB / 1.121 GB, free: 10.59 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003312/0.7734, allocations: 457 kB / 1.121 GB, free: 9.98 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.846e-05/0.7734, allocations: 12 kB / 1.121 GB, free: 9.969 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006615/0.7741, allocations: 192.6 kB / 1.122 GB, free: 9.777 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008396/0.7749, allocations: 227.6 kB / 1.122 GB, free: 9.555 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007295/0.7757, allocations: 0.7669 MB / 1.123 GB, free: 8.762 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001667/0.7773, allocations: 113.1 kB / 1.123 GB, free: 8.652 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001188/0.7775, allocations: 55.98 kB / 1.123 GB, free: 8.598 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.071e-05/0.7775, allocations: 4 kB / 1.123 GB, free: 8.594 MB / 0.8731 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002753/0.7803, allocations: 1.583 MB / 1.124 GB, free: 6.977 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.309e-05/0.7803, allocations: 12 kB / 1.124 GB, free: 6.965 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002524/0.7806, allocations: 126.1 kB / 1.124 GB, free: 6.84 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007854/0.7814, allocations: 227.6 kB / 1.125 GB, free: 6.617 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002261/0.7836, allocations: 2.118 MB / 1.127 GB, free: 4.367 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001508/0.7852, allocations: 124.5 kB / 1.127 GB, free: 4.246 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001263/0.7853, allocations: 51.98 kB / 1.127 GB, free: 4.195 MB / 0.8731 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 8 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,nRes.y,from_dp.y,mergeDp.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (119): * Single equations (assignments): 115 * 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 {(1,12)} Notification: Performance of prepare postOptimizeDAE: time 0.001197/0.7865, allocations: 0.7035 MB / 1.128 GB, free: 3.48 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004306/0.7869, allocations: 213.2 kB / 1.128 GB, free: 3.27 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002438/0.7894, allocations: 1.037 MB / 1.129 GB, free: 2.219 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-05/0.7894, allocations: 7.938 kB / 1.129 GB, free: 2.211 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.925e-06/0.7894, allocations: 0 / 1.129 GB, free: 2.211 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001713/0.7912, allocations: 0.9701 MB / 1.13 GB, free: 1.168 MB / 0.8731 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.004965/0.7961, allocations: 2.378 MB / 1.132 GB, free: 14.71 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.74e-06/0.7962, allocations: 4.062 kB / 1.132 GB, free: 14.7 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004997/0.7967, allocations: 91.86 kB / 1.132 GB, free: 14.61 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003064/0.797, allocations: 130.4 kB / 1.132 GB, free: 14.49 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.328e-05/0.7971, allocations: 11.98 kB / 1.132 GB, free: 14.48 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005769/0.7976, allocations: 0.7357 MB / 1.133 GB, free: 13.71 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.7977, allocations: 0 / 1.133 GB, free: 13.71 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002835/0.8005, allocations: 1.437 MB / 1.134 GB, free: 12.25 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008584/0.8014, allocations: 374.3 kB / 1.135 GB, free: 11.86 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002651/0.8017, allocations: 12 kB / 1.135 GB, free: 11.85 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009337/0.8026, allocations: 91.84 kB / 1.135 GB, free: 11.76 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000114/0.8027, allocations: 40.39 kB / 1.135 GB, free: 11.72 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.744e-05/0.8028, allocations: 19.98 kB / 1.135 GB, free: 11.7 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.002471/0.8053, allocations: 1.603 MB / 1.136 GB, free: 10.09 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.7e-07/0.8053, allocations: 0 / 1.136 GB, free: 10.09 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.003016/0.8083, allocations: 0.9556 MB / 1.137 GB, free: 9.133 MB / 0.8887 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (pump.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 (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 {(1,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001398/0.8097, allocations: 0.5084 MB / 1.138 GB, free: 8.625 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.00392/0.8137, allocations: 2.021 MB / 1.14 GB, free: 6.57 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 5.119e-06/0.8137, allocations: 448 / 1.14 GB, free: 6.57 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0008067/0.8145, allocations: 354.1 kB / 1.14 GB, free: 6.223 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004745/0.8193, allocations: 0.9245 MB / 1.141 GB, free: 5.305 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007903/0.8272, allocations: 4.418 MB / 1.145 GB, free: 0.8438 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001368/0.8286, allocations: 1.662 MB / 1.147 GB, free: 15.15 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005973/0.8292, allocations: 171.3 kB / 1.147 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of SimCode: time 8.42e-07/0.8292, allocations: 0 / 1.147 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of Templates: time 0.0635/0.8927, allocations: 44.57 MB / 1.191 GB, free: 2.625 MB / 0.9356 GB make -j1 -f Buildings_10_Buildings.Fluid.Examples.Performance.Example3.makefile (rm -f Buildings_10_Buildings.Fluid.Examples.Performance.Example3.pipe ; mkfifo Buildings_10_Buildings.Fluid.Examples.Performance.Example3.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Examples.Performance.Example3.pipe >> ../files/Buildings_10_Buildings.Fluid.Examples.Performance.Example3.sim & ./Buildings_10_Buildings.Fluid.Examples.Performance.Example3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Examples.Performance.Example3.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Examples.Performance.Example3_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Examples_Performance_Example3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Examples.Performance.Example3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches