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.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: "" <> buildModelFMU(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,fileNamePrefix="Buildings_9_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,fileNamePrefix="Buildings_9_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008425/0.0008425, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.0053/0.0053, allocations: 169.9 kB / 16.26 MB, free: 6.613 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.286/1.286, allocations: 223.3 MB / 240.3 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.139/2.139, allocations: 390.9 MB / 0.6664 GB, free: 2.355 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0002753/0.0002753, allocations: 8 kB / 0.8161 GB, free: 13.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5189/0.5192, allocations: 142.4 MB / 0.9552 GB, free: 7.746 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal): time 0.06456/0.5838, allocations: 78.57 MB / 1.032 GB, free: 0.5312 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.02303/0.6069, allocations: 19.11 MB / 1.051 GB, free: 13.38 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002517/0.6094, allocations: 95.38 kB / 1.051 GB, free: 13.28 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.002486/0.6119, allocations: 0.9793 MB / 1.052 GB, free: 12.3 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.005694/0.6176, allocations: 2.594 MB / 1.054 GB, free: 9.695 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.004409/0.622, allocations: 2.171 MB / 1.056 GB, free: 7.539 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.01779/0.6398, allocations: 20.76 MB / 1.077 GB, free: 2.727 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.008367/0.6482, allocations: 5.992 MB / 1.082 GB, free: 12.65 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008591/0.6568, allocations: 4.661 MB / 1.087 GB, free: 7.969 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007682/0.6645, allocations: 4.831 MB / 1.092 GB, free: 3.117 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.00132/0.6659, allocations: 256 kB / 1.092 GB, free: 2.867 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004661/0.6706, allocations: 1.498 MB / 1.093 GB, free: 1.367 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.001979/0.6726, allocations: 1.26 MB / 1.095 GB, free: 104 kB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.005028/0.6776, allocations: 2.893 MB / 1.097 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.01062/0.6882, allocations: 8.562 MB / 1.106 GB, free: 4.598 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.105e-06/0.6883, allocations: 0 / 1.106 GB, free: 4.598 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.442e-06/0.6883, allocations: 0 / 1.106 GB, free: 4.598 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 0.0002395/0.6885, allocations: 0 / 1.106 GB, free: 4.598 MB / 0.8575 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.01094/0.6994, allocations: 5.346 MB / 1.111 GB, free: 15.16 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 3.839e-05/0.6995, allocations: 15.97 kB / 1.111 GB, free: 15.14 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009879/0.7005, allocations: 471.5 kB / 1.111 GB, free: 14.67 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003755/0.7043, allocations: 0.9376 MB / 1.112 GB, free: 13.73 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009416/0.7137, allocations: 5.305 MB / 1.118 GB, free: 8.34 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000208/0.7139, allocations: 267.1 kB / 1.118 GB, free: 8.078 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006529/0.7146, allocations: 340 kB / 1.118 GB, free: 7.746 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00913/0.7237, allocations: 5.736 MB / 1.124 GB, free: 1.77 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.818e-05/0.7238, allocations: 15.81 kB / 1.124 GB, free: 1.754 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004225/0.7242, allocations: 148 kB / 1.124 GB, free: 1.609 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.003e-05/0.7243, allocations: 114 kB / 1.124 GB, free: 1.496 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008855/0.7332, allocations: 5.597 MB / 1.129 GB, free: 11.89 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.03196/0.7652, allocations: 23.99 MB / 1.153 GB, free: 2.762 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00491/0.7701, allocations: 2.835 MB / 1.156 GB, free: 15.92 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002893/0.773, allocations: 1.932 MB / 1.158 GB, free: 13.98 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01196/0.785, allocations: 7.108 MB / 1.164 GB, free: 6.559 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003044/0.7881, allocations: 1.951 MB / 1.166 GB, free: 4.598 MB / 0.92 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.004078/0.7922, allocations: 1.254 MB / 1.168 GB, free: 3.34 MB / 0.92 GB Notification: Performance of pre-optimization done (n=156): time 6.873e-06/0.7922, allocations: 0 / 1.168 GB, free: 3.34 MB / 0.92 GB Notification: Performance of matching and sorting (n=156): time 0.02047/0.8127, allocations: 7.675 MB / 1.175 GB, free: 11.58 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.579e-05/0.8127, allocations: 68.72 kB / 1.175 GB, free: 11.5 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007485/0.8202, allocations: 4.898 MB / 1.18 GB, free: 6.621 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.0002534/0.8205, allocations: 65.7 kB / 1.18 GB, free: 6.551 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.002203/0.8227, allocations: 2.459 MB / 1.182 GB, free: 4.066 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006212/0.8233, allocations: 0.5548 MB / 1.183 GB, free: 3.504 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003445/0.8237, allocations: 219.1 kB / 1.183 GB, free: 3.285 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 8.604e-05/0.8238, allocations: 301.1 kB / 1.183 GB, free: 2.988 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002844/0.8266, allocations: 1.699 MB / 1.185 GB, free: 1.285 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003674/0.8303, allocations: 2.901 MB / 1.188 GB, free: 13.83 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006961/0.8373, allocations: 4.632 MB / 1.192 GB, free: 8.73 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.624e-05/0.8373, allocations: 8 kB / 1.192 GB, free: 8.723 MB / 0.9512 GB Notification: Performance of matching and sorting (n=336) (initialization): time 0.01173/0.8491, allocations: 6.122 MB / 1.198 GB, free: 2.574 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007435/0.8498, allocations: 1.105 MB / 1.2 GB, free: 1.004 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.116e-05/0.8499, allocations: 36 kB / 1.2 GB, free: 0.9688 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07108/0.921, allocations: 11.9 MB / 1.211 GB, free: 5.051 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002871/0.9239, allocations: 0.6786 MB / 1.212 GB, free: 4.371 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007774/0.9317, allocations: 5.042 MB / 1.217 GB, free: 15.25 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004349/0.9361, allocations: 340 kB / 1.217 GB, free: 14.91 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004394/0.9365, allocations: 159.9 kB / 1.217 GB, free: 14.76 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 9.888e-06/0.9366, allocations: 5.562 kB / 1.217 GB, free: 14.75 MB / 0.9825 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008741/0.9453, allocations: 5.384 MB / 1.223 GB, free: 9.352 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.283e-05/0.9454, allocations: 36 kB / 1.223 GB, free: 9.316 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07082/1.016, allocations: 11.66 MB / 1.234 GB, free: 13.64 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002823/1.019, allocations: 0.6708 MB / 1.235 GB, free: 12.97 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01094/1.03, allocations: 8.033 MB / 1.242 GB, free: 4.629 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003948/1.034, allocations: 332.1 kB / 1.243 GB, free: 4.301 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003575/1.034, allocations: 155.9 kB / 1.243 GB, free: 4.148 MB / 0.9981 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.002562/1.037, allocations: 1.554 MB / 1.244 GB, free: 2.582 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000926/1.038, allocations: 466.2 kB / 1.245 GB, free: 2.121 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3899/1.428, allocations: 4.887 MB / 1.25 GB, free: 268.7 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.629e-05/1.428, allocations: 17.36 kB / 1.25 GB, free: 268.7 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/1.428, allocations: 7.656 kB / 1.25 GB, free: 268.7 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02016/1.448, allocations: 7.096 MB / 1.257 GB, free: 265.6 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 postOpt removeSimpleEquations (simulation): time 0.02905/1.477, allocations: 13.24 MB / 1.27 GB, free: 259.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.062e-05/1.477, allocations: 1.484 kB / 1.27 GB, free: 259.3 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002388/1.48, allocations: 377.6 kB / 1.27 GB, free: 259.2 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.07119/1.551, allocations: 11.92 MB / 1.282 GB, free: 255.1 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004621/1.551, allocations: 41.34 kB / 1.282 GB, free: 255.1 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006115/1.557, allocations: 4.362 MB / 1.286 GB, free: 252.1 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/1.557, allocations: 3.688 kB / 1.286 GB, free: 252.1 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0249/1.582, allocations: 9.77 MB / 1.295 GB, free: 244.5 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002703/1.585, allocations: 1.072 MB / 1.296 GB, free: 243.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001105/1.586, allocations: 32 kB / 1.296 GB, free: 243.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003894/1.59, allocations: 273.5 kB / 1.297 GB, free: 243.4 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003628/1.59, allocations: 105.2 kB / 1.297 GB, free: 243.3 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002392/1.591, allocations: 87.92 kB / 1.297 GB, free: 243.2 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.004017/1.595, allocations: 3.354 MB / 1.3 GB, free: 239.9 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.91e-07/1.595, allocations: 1.75 kB / 1.3 GB, free: 239.9 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.006271/1.601, allocations: 2.662 MB / 1.303 GB, free: 237.5 MB / 0.9981 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.02469/1.626, allocations: 10.63 MB / 1.313 GB, free: 226.9 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.01523/1.641, allocations: 7.551 MB / 1.321 GB, free: 219.3 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.02e-05/1.641, allocations: 8 kB / 1.321 GB, free: 219.3 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.005524/1.647, allocations: 2.534 MB / 1.323 GB, free: 216.8 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01363/1.66, allocations: 2.714 MB / 1.326 GB, free: 214.1 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0973/1.758, allocations: 51.56 MB / 1.376 GB, free: 158.8 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003552/1.761, allocations: 3.225 MB / 1.379 GB, free: 155.6 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.006483/1.768, allocations: 1.701 MB / 1.381 GB, free: 153.9 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003174/1.771, allocations: 1.995 MB / 1.383 GB, free: 151.9 MB / 0.9981 GB Notification: Performance of SimCode: time 1.062e-06/1.771, allocations: 0 / 1.383 GB, free: 151.9 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.134/5.905, allocations: 142.8 MB / 1.522 GB, free: 10.29 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002103/5.905, allocations: 279.5 kB / 1.523 GB, free: 9.914 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.312/11.22, allocations: 4 kB / 1.523 GB, free: 9.91 MB / 0.9981 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal_fmu --startTime=0 --stopTime=10000 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal.fmu > Buildings_9_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1)