Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|res.1..m_flow|res.2..m_flow|vol.1..T|vol.2..T",fileNamePrefix="Buildings_9_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal") translateModel(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|res.1..m_flow|res.2..m_flow|vol.1..T|vol.2..T",fileNamePrefix="Buildings_9_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001396/0.001396, allocations: 113.9 kB / 16.42 MB, free: 6.449 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.001355/0.001355, allocations: 192.3 kB / 17.35 MB, free: 5.738 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.359/1.359, allocations: 222.9 MB / 241.1 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.158/2.158, allocations: 390.3 MB / 0.6655 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001374/0.001374, allocations: 59.91 kB / 0.9515 GB, free: 7.695 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7101/0.7115, allocations: 140.4 MB / 1.089 GB, free: 5.531 MB / 0.8575 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Blocks/Math.mo:543:5-544:48:writable] Warning: Parameter pump.gaiSpe.k has no value, and is fixed during initialization (fixed=true), using available start value (start=1) as default value. Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal): time 0.07782/0.7893, allocations: 80.59 MB / 1.167 GB, free: 11.77 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.02857/0.8179, allocations: 19.25 MB / 1.186 GB, free: 13.92 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004633/0.8226, allocations: 106.5 kB / 1.186 GB, free: 13.88 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.003324/0.826, allocations: 1.161 MB / 1.187 GB, free: 12.93 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.007703/0.8337, allocations: 2.868 MB / 1.19 GB, free: 10.63 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.006217/0.8399, allocations: 2.417 MB / 1.192 GB, free: 8.828 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.01742/0.8573, allocations: 15.54 MB / 1.208 GB, free: 15.88 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.009978/0.8673, allocations: 7.203 MB / 1.215 GB, free: 11.63 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01258/0.8799, allocations: 5.956 MB / 1.221 GB, free: 6.828 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.008658/0.8886, allocations: 5.047 MB / 1.225 GB, free: 1.762 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.001984/0.8906, allocations: 0.5391 MB / 1.226 GB, free: 1.223 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005897/0.8965, allocations: 1.803 MB / 1.228 GB, free: 15.42 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.002496/0.899, allocations: 1.624 MB / 1.229 GB, free: 13.79 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.005963/0.905, allocations: 3.293 MB / 1.233 GB, free: 10.48 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.01173/0.9168, allocations: 9.061 MB / 1.241 GB, free: 1.395 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 7.674e-06/0.9168, allocations: 3.984 kB / 1.241 GB, free: 1.391 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.003e-06/0.9168, allocations: 0 / 1.241 GB, free: 1.391 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 0.0002661/0.9171, allocations: 0 / 1.241 GB, free: 1.391 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 834 * Number of variables: 834 Notification: Performance of Generate backend data structure: time 0.01457/0.9317, allocations: 6.485 MB / 1.248 GB, free: 10.81 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.489e-05/0.9317, allocations: 12.03 kB / 1.248 GB, free: 10.8 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004768/0.9365, allocations: 0.9066 MB / 1.249 GB, free: 9.887 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01146/0.948, allocations: 5.375 MB / 1.254 GB, free: 4.43 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002164/0.9482, allocations: 262.5 kB / 1.254 GB, free: 4.172 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009308/0.9492, allocations: 343.9 kB / 1.254 GB, free: 3.836 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01029/0.9595, allocations: 5.726 MB / 1.26 GB, free: 13.86 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.666e-05/0.9595, allocations: 11.94 kB / 1.26 GB, free: 13.85 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005042/0.9601, allocations: 151.9 kB / 1.26 GB, free: 13.7 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.131e-05/0.9602, allocations: 118 kB / 1.26 GB, free: 13.59 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009202/0.9694, allocations: 5.561 MB / 1.266 GB, free: 8.012 MB / 0.9981 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.03534/1.005, allocations: 23.74 MB / 1.289 GB, free: 15.19 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004973/1.01, allocations: 2.784 MB / 1.292 GB, free: 12.41 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002914/1.013, allocations: 1.924 MB / 1.294 GB, free: 10.48 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01166/1.024, allocations: 7.112 MB / 1.3 GB, free: 3.047 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003158/1.028, allocations: 1.937 MB / 1.302 GB, free: 1.098 MB / 1.029 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003086/1.031, allocations: 0.708 MB / 1.303 GB, free: 396 kB / 1.029 GB Notification: Performance of pre-optimization done (n=155): time 7.334e-06/1.031, allocations: 0 / 1.303 GB, free: 396 kB / 1.029 GB Notification: Performance of matching and sorting (n=155): time 0.02424/1.055, allocations: 8.002 MB / 1.311 GB, free: 8.301 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.108e-05/1.055, allocations: 76.7 kB / 1.311 GB, free: 8.215 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008712/1.064, allocations: 5.011 MB / 1.316 GB, free: 3.219 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 0.0006951/1.064, allocations: 61.7 kB / 1.316 GB, free: 3.152 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.002598/1.067, allocations: 2.459 MB / 1.318 GB, free: 0.668 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 0.001147/1.068, allocations: 0.5471 MB / 1.319 GB, free: 116 kB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001798/1.07, allocations: 0.6646 MB / 1.319 GB, free: 15.44 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 9.638e-05/1.07, allocations: 305.1 kB / 1.32 GB, free: 15.14 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003037/1.073, allocations: 1.738 MB / 1.321 GB, free: 13.39 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003823/1.077, allocations: 2.926 MB / 1.324 GB, free: 9.91 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006765/1.084, allocations: 4.715 MB / 1.329 GB, free: 4.727 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.233e-05/1.084, allocations: 15.94 kB / 1.329 GB, free: 4.711 MB / 1.061 GB Notification: Performance of matching and sorting (n=336) (initialization): time 0.01161/1.095, allocations: 6.344 MB / 1.335 GB, free: 14.34 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 5.656e-05/1.096, allocations: 45.92 kB / 1.335 GB, free: 14.29 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.12e-05/1.096, allocations: 36 kB / 1.335 GB, free: 14.25 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.083/1.179, allocations: 13.55 MB / 1.348 GB, free: 0.6836 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003077/1.182, allocations: 0.6513 MB / 1.349 GB, free: 32 kB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01044/1.192, allocations: 5.486 MB / 1.354 GB, free: 10.46 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004294/1.196, allocations: 216.5 kB / 1.355 GB, free: 10.25 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005656/1.197, allocations: 195.8 kB / 1.355 GB, free: 10.06 MB / 1.092 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.005215/1.202, allocations: 2.983 MB / 1.358 GB, free: 7.07 MB / 1.092 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.004026/1.206, allocations: 2.871 MB / 1.361 GB, free: 3.641 MB / 1.092 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.007156/1.214, allocations: 4.59 MB / 1.365 GB, free: 14.58 MB / 1.107 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.934e-05/1.214, allocations: 16.06 kB / 1.365 GB, free: 14.57 MB / 1.107 GB Notification: Performance of matching and sorting (n=336) (initialization_lambda0): time 0.01135/1.225, allocations: 6.034 MB / 1.371 GB, free: 8.504 MB / 1.107 GB Notification: Performance of prepare postOptimizeDAE: time 5.016e-05/1.225, allocations: 49.69 kB / 1.371 GB, free: 8.449 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.711e-05/1.225, allocations: 32 kB / 1.371 GB, free: 8.418 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.08384/1.309, allocations: 13.31 MB / 1.384 GB, free: 11.09 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002937/1.312, allocations: 0.6474 MB / 1.385 GB, free: 10.44 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01373/1.326, allocations: 8.905 MB / 1.393 GB, free: 1.219 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004287/1.33, allocations: 228.9 kB / 1.394 GB, free: 0.9922 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005362/1.33, allocations: 187.8 kB / 1.394 GB, free: 0.8086 MB / 1.123 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 150 * Number of states: 0 () * Number of discrete variables: 7 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,nRes.y,allowFlowReversal.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (283): * Single equations (assignments): 278 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(11,15), (10,11), (2,5)} Notification: Performance of prepare postOptimizeDAE: time 0.001025/1.332, allocations: 372.4 kB / 1.394 GB, free: 448 kB / 1.123 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001496/1.333, allocations: 466.4 kB / 1.395 GB, free: 15.97 MB / 1.139 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009151/1.342, allocations: 4.622 MB / 1.399 GB, free: 11.33 MB / 1.139 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01126/1.353, allocations: 5.676 MB / 1.405 GB, free: 5.391 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.15e-05/1.354, allocations: 112 / 1.405 GB, free: 5.391 MB / 1.139 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002809/1.356, allocations: 0.9324 MB / 1.406 GB, free: 4.434 MB / 1.139 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001046/1.357, allocations: 32 kB / 1.406 GB, free: 4.402 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003281/1.361, allocations: 147.7 kB / 1.406 GB, free: 4.258 MB / 1.139 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003947/1.361, allocations: 129.8 kB / 1.406 GB, free: 4.129 MB / 1.139 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01179/1.373, allocations: 4.818 MB / 1.411 GB, free: 15.26 MB / 1.154 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.009947/1.383, allocations: 6.003 MB / 1.416 GB, free: 9.238 MB / 1.154 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002721/1.386, allocations: 1.881 MB / 1.418 GB, free: 7.359 MB / 1.154 GB Notification: Performance of sorting global known variables: time 0.005717/1.391, allocations: 3.436 MB / 1.422 GB, free: 3.941 MB / 1.154 GB Notification: Performance of Backend: time 5.51e-07/1.391, allocations: 0 / 1.422 GB, free: 3.941 MB / 1.154 GB Notification: Performance of simCode: created initialization part: time 0.0195/1.411, allocations: 6.346 MB / 1.428 GB, free: 13.56 MB / 1.17 GB Notification: Performance of SimCode: time 0.0226/1.434, allocations: 11.7 MB / 1.439 GB, free: 1.875 MB / 1.17 GB Notification: Performance of Templates: time 0.1674/1.601, allocations: 117.5 MB / 1.554 GB, free: 13.38 MB / 1.295 GB make -j1 -f Buildings_9_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.makefile (rm -f Buildings_9_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; mkfifo Buildings_9_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe >> ../files/Buildings_9_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.sim & ./Buildings_9_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1)