Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal") translateModel(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.301/2.301, allocations: 391.2 MB / 407 MB, free: 10.82 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00128/0.00128, allocations: 194.8 kB / 499.1 MB, free: 4.621 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.497/1.497, allocations: 222.9 MB / 0.7948 GB, free: 15.79 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001035/0.001035, allocations: 103.6 kB / 0.9329 GB, free: 7.086 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.001271/0.001271, allocations: 51.25 kB / 1.081 GB, free: 218.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2939/0.2952, allocations: 140.6 MB / 1.218 GB, free: 117.2 MB / 0.823 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal): time 0.05092/0.3462, allocations: 80.03 MB / 1.296 GB, free: 36.95 MB / 0.823 GB Notification: Performance of NFInst.instExpressions: time 0.02062/0.3668, allocations: 19.37 MB / 1.315 GB, free: 17.53 MB / 0.823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003557/0.3704, allocations: 99.38 kB / 1.315 GB, free: 17.43 MB / 0.823 GB Notification: Performance of NFTyping.typeComponents: time 0.002969/0.3735, allocations: 0.9891 MB / 1.316 GB, free: 16.44 MB / 0.823 GB Notification: Performance of NFTyping.typeBindings: time 0.006395/0.3799, allocations: 2.587 MB / 1.319 GB, free: 13.84 MB / 0.823 GB Notification: Performance of NFTyping.typeClassSections: time 0.005106/0.385, allocations: 2.17 MB / 1.321 GB, free: 11.69 MB / 0.823 GB Notification: Performance of NFFlatten.flatten: time 0.01752/0.4025, allocations: 20.85 MB / 1.341 GB, free: 6.777 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.008196/0.4108, allocations: 6.12 MB / 1.347 GB, free: 0.5625 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01106/0.4218, allocations: 4.852 MB / 1.352 GB, free: 11.69 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00925/0.4311, allocations: 5.019 MB / 1.357 GB, free: 6.652 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 0.002109/0.4333, allocations: 319.9 kB / 1.357 GB, free: 6.34 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006272/0.4396, allocations: 1.553 MB / 1.359 GB, free: 4.785 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 0.002835/0.4424, allocations: 1.362 MB / 1.36 GB, free: 3.418 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 0.006146/0.4486, allocations: 2.997 MB / 1.363 GB, free: 416 kB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.0125/0.4611, allocations: 8.744 MB / 1.371 GB, free: 7.637 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 9.077e-06/0.4612, allocations: 0 / 1.371 GB, free: 7.637 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.745e-06/0.4612, allocations: 0 / 1.371 GB, free: 7.637 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 0.0003686/0.4615, allocations: 0 / 1.371 GB, free: 7.637 MB / 0.8698 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.0164/0.478, allocations: 6.482 MB / 1.378 GB, free: 1.062 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.478, allocations: 19.97 kB / 1.378 GB, free: 1.043 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004388/0.4824, allocations: 0.9028 MB / 1.379 GB, free: 136 kB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01159/0.494, allocations: 5.312 MB / 1.384 GB, free: 10.74 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002457/0.4943, allocations: 263.1 kB / 1.384 GB, free: 10.48 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009815/0.4953, allocations: 340 kB / 1.384 GB, free: 10.14 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01059/0.5059, allocations: 5.717 MB / 1.39 GB, free: 4.191 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.165e-05/0.506, allocations: 15.88 kB / 1.39 GB, free: 4.176 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004728/0.5065, allocations: 147.9 kB / 1.39 GB, free: 4.031 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.734e-05/0.5066, allocations: 114 kB / 1.39 GB, free: 3.918 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01024/0.5168, allocations: 5.573 MB / 1.396 GB, free: 14.33 MB / 0.9011 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.03655/0.5534, allocations: 23.81 MB / 1.419 GB, free: 5.383 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005032/0.5585, allocations: 2.801 MB / 1.422 GB, free: 2.582 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00295/0.5615, allocations: 1.917 MB / 1.424 GB, free: 0.6641 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5351/1.097, allocations: 7.054 MB / 1.43 GB, free: 189.8 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003765/1.1, allocations: 1.938 MB / 1.432 GB, free: 189.2 MB / 0.9167 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.004782/1.105, allocations: 1.197 MB / 1.434 GB, free: 189.1 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=156): time 1.25e-05/1.105, allocations: 0 / 1.434 GB, free: 189.1 MB / 0.9167 GB Notification: Performance of matching and sorting (n=156): time 0.02292/1.128, allocations: 7.42 MB / 1.441 GB, free: 187 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.238e-05/1.128, allocations: 67.62 kB / 1.441 GB, free: 186.9 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008863/1.137, allocations: 4.899 MB / 1.446 GB, free: 185.4 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 0.0007253/1.138, allocations: 63.61 kB / 1.446 GB, free: 185.3 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.002085/1.14, allocations: 2.471 MB / 1.448 GB, free: 183.7 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009459/1.141, allocations: 0.5513 MB / 1.449 GB, free: 183.3 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008994/1.142, allocations: 0.607 MB / 1.449 GB, free: 183.1 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 4.959e-05/1.142, allocations: 305 kB / 1.45 GB, free: 182.8 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002506/1.144, allocations: 1.693 MB / 1.451 GB, free: 182.2 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003105/1.148, allocations: 2.887 MB / 1.454 GB, free: 179.9 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007752/1.155, allocations: 4.609 MB / 1.459 GB, free: 176.6 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.799e-05/1.155, allocations: 8.844 kB / 1.459 GB, free: 176.6 MB / 0.9167 GB Notification: Performance of matching and sorting (n=336) (initialization): time 0.01169/1.167, allocations: 6.101 MB / 1.464 GB, free: 173.4 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 5.992e-05/1.167, allocations: 45.2 kB / 1.465 GB, free: 173.4 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-05/1.167, allocations: 31.12 kB / 1.465 GB, free: 173.4 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06724/1.235, allocations: 12.04 MB / 1.476 GB, free: 162.7 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002822/1.237, allocations: 0.663 MB / 1.477 GB, free: 162 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007069/1.245, allocations: 5.031 MB / 1.482 GB, free: 156.9 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004742/1.249, allocations: 332 kB / 1.482 GB, free: 156.6 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005582/1.25, allocations: 167.8 kB / 1.482 GB, free: 156.4 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004282/1.254, allocations: 2.944 MB / 1.485 GB, free: 153.4 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002818/1.257, allocations: 2.824 MB / 1.488 GB, free: 150.1 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004885/1.262, allocations: 4.481 MB / 1.492 GB, free: 145.1 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.808e-05/1.262, allocations: 8.109 kB / 1.492 GB, free: 145.1 MB / 0.9167 GB Notification: Performance of matching and sorting (n=336) (initialization_lambda0): time 0.01004/1.272, allocations: 5.795 MB / 1.498 GB, free: 139.3 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 5.11e-05/1.272, allocations: 46.64 kB / 1.498 GB, free: 139.2 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.149e-05/1.272, allocations: 32 kB / 1.498 GB, free: 139.2 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06476/1.337, allocations: 11.8 MB / 1.51 GB, free: 127.4 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002901/1.34, allocations: 0.6591 MB / 1.51 GB, free: 126.8 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01001/1.35, allocations: 8.024 MB / 1.518 GB, free: 118.5 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005106/1.355, allocations: 340.9 kB / 1.518 GB, free: 118.1 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000616/1.356, allocations: 159.9 kB / 1.519 GB, free: 118 MB / 0.9167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 149 * 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 (285): * Single equations (assignments): 280 * 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,13), (10,11), (2,5)} Notification: Performance of prepare postOptimizeDAE: time 0.001114/1.357, allocations: 364.1 kB / 1.519 GB, free: 117.6 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001526/1.358, allocations: 462.3 kB / 1.519 GB, free: 117.1 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007748/1.366, allocations: 4.882 MB / 1.524 GB, free: 112.3 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.15e-05/1.366, allocations: 16 kB / 1.524 GB, free: 112.2 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.142e-06/1.366, allocations: 0.5156 kB / 1.524 GB, free: 112.2 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01794/1.384, allocations: 6.918 MB / 1.531 GB, free: 105.1 MB / 0.9167 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.03134/1.416, allocations: 13.02 MB / 1.544 GB, free: 91.98 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.646e-05/1.416, allocations: 0 / 1.544 GB, free: 91.98 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00218/1.418, allocations: 366.3 kB / 1.544 GB, free: 91.62 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06484/1.483, allocations: 12.03 MB / 1.556 GB, free: 79.66 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005546/1.483, allocations: 43.97 kB / 1.556 GB, free: 79.62 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005611/1.489, allocations: 4.332 MB / 1.56 GB, free: 75.21 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/1.489, allocations: 4 kB / 1.56 GB, free: 75.21 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.6047/2.094, allocations: 148.9 MB / 1.705 GB, free: 5.477 MB / 0.9948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002873/2.097, allocations: 0.9991 MB / 1.706 GB, free: 4.453 MB / 0.9948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000757/2.097, allocations: 31.98 kB / 1.706 GB, free: 4.422 MB / 0.9948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003242/2.101, allocations: 271.3 kB / 1.707 GB, free: 4.156 MB / 0.9948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003817/2.101, allocations: 105.1 kB / 1.707 GB, free: 4.055 MB / 0.9948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000263/2.101, allocations: 84.03 kB / 1.707 GB, free: 3.973 MB / 0.9948 GB Notification: Performance of sorting global known variables: time 0.0057/2.107, allocations: 3.358 MB / 1.71 GB, free: 0.6328 MB / 0.9948 GB Notification: Performance of sort global known variables: time 9.02e-07/2.107, allocations: 0 / 1.71 GB, free: 0.6328 MB / 0.9948 GB Notification: Performance of remove unused functions: time 0.01601/2.123, allocations: 4.514 MB / 1.715 GB, free: 12.16 MB / 1.01 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (pump.vol.dynBal.U,hea.outCon.T,val.filter.s[1],val.filter.s[2]) * 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 (128): * Single equations (assignments): 119 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 2 * 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 {(10,3), (2,5), (10,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001686/2.125, allocations: 0.6101 MB / 1.715 GB, free: 11.59 MB / 1.01 GB Notification: Performance of simCode: created initialization part: time 0.01598/2.141, allocations: 7.52 MB / 1.722 GB, free: 4.031 MB / 1.01 GB Notification: Performance of simCode: created event and clocks part: time 7.504e-06/2.141, allocations: 0 / 1.722 GB, free: 4.031 MB / 1.01 GB Notification: Performance of simCode: created simulation system equations: time 0.005829/2.147, allocations: 2.485 MB / 1.725 GB, free: 1.551 MB / 1.01 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01348/2.16, allocations: 2.719 MB / 1.728 GB, free: 14.86 MB / 1.026 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.027/2.187, allocations: 13.66 MB / 1.741 GB, free: 1.109 MB / 1.026 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004639/2.192, allocations: 3.312 MB / 1.744 GB, free: 13.76 MB / 1.042 GB Notification: Performance of simCode: alias equations: time 0.006417/2.198, allocations: 1.737 MB / 1.746 GB, free: 12.02 MB / 1.042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001407/2.2, allocations: 367.2 kB / 1.746 GB, free: 11.66 MB / 1.042 GB Notification: Performance of SimCode: time 5.11e-07/2.2, allocations: 0 / 1.746 GB, free: 11.66 MB / 1.042 GB Notification: Performance of Templates: time 0.6784/2.878, allocations: 147.2 MB / 1.89 GB, free: 359.3 MB / 1.135 GB make -j1 -f Buildings_latest_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.makefile (rm -f Buildings_latest_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe >> ../files/Buildings_latest_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.sim & ./Buildings_latest_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1)