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: "" <> 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.007109/0.007109, allocations: 102.6 kB / 15.73 MB, free: 6.492 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.001567/0.001567, allocations: 195 kB / 16.68 MB, free: 6.375 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.243/1.243, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.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.126/2.126, allocations: 390.3 MB / 0.6648 GB, free: 228 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001174/0.001174, allocations: 66.52 kB / 0.9504 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2501/0.2513, allocations: 140.4 MB / 1.087 GB, free: 2.023 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal): time 0.07662/0.3279, allocations: 80.59 MB / 1.166 GB, free: 1.16 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.02592/0.3539, allocations: 19.24 MB / 1.185 GB, free: 13.87 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00316/0.3571, allocations: 107.4 kB / 1.185 GB, free: 13.77 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.00304/0.3602, allocations: 1.165 MB / 1.186 GB, free: 12.59 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.006905/0.3671, allocations: 2.778 MB / 1.189 GB, free: 9.805 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.005681/0.3728, allocations: 2.42 MB / 1.191 GB, free: 7.398 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.01452/0.3873, allocations: 15.51 MB / 1.206 GB, free: 7.848 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.008349/0.3957, allocations: 7.198 MB / 1.213 GB, free: 0.5547 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01098/0.4067, allocations: 5.835 MB / 1.219 GB, free: 10.73 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.008149/0.4149, allocations: 5.05 MB / 1.224 GB, free: 5.664 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.001662/0.4166, allocations: 0.5391 MB / 1.225 GB, free: 5.125 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005116/0.4217, allocations: 1.803 MB / 1.226 GB, free: 3.32 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.001997/0.4237, allocations: 1.616 MB / 1.228 GB, free: 1.699 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.005152/0.4289, allocations: 3.297 MB / 1.231 GB, free: 14.39 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.01127/0.4402, allocations: 9.068 MB / 1.24 GB, free: 5.293 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.571e-06/0.4402, allocations: 0 / 1.24 GB, free: 5.293 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.954e-06/0.4402, allocations: 0 / 1.24 GB, free: 5.293 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 0.0002214/0.4404, allocations: 0 / 1.24 GB, free: 5.293 MB / 0.9981 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.0136/0.454, allocations: 6.474 MB / 1.246 GB, free: 14.73 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.501e-05/0.4541, allocations: 12.03 kB / 1.246 GB, free: 14.71 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007334/0.4548, allocations: 479.5 kB / 1.247 GB, free: 14.23 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004261/0.4591, allocations: 0.9064 MB / 1.248 GB, free: 13.32 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01129/0.4704, allocations: 5.391 MB / 1.253 GB, free: 7.848 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002108/0.4707, allocations: 254.5 kB / 1.253 GB, free: 7.598 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009741/0.4716, allocations: 347.8 kB / 1.254 GB, free: 7.258 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009214/0.4809, allocations: 5.738 MB / 1.259 GB, free: 1.273 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.668e-05/0.481, allocations: 7.938 kB / 1.259 GB, free: 1.266 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004422/0.4814, allocations: 147.9 kB / 1.259 GB, free: 1.121 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.207e-05/0.4815, allocations: 118 kB / 1.259 GB, free: 1.004 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4939/0.9754, allocations: 5.569 MB / 1.265 GB, free: 160.9 MB / 1.014 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.03657/1.012, allocations: 23.72 MB / 1.288 GB, free: 146.2 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004854/1.017, allocations: 2.792 MB / 1.291 GB, free: 145.2 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002888/1.02, allocations: 1.926 MB / 1.293 GB, free: 144.5 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01112/1.031, allocations: 7.113 MB / 1.3 GB, free: 140.2 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002888/1.034, allocations: 1.941 MB / 1.301 GB, free: 139 MB / 1.014 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003454/1.037, allocations: 0.7002 MB / 1.302 GB, free: 138.7 MB / 1.014 GB Notification: Performance of pre-optimization done (n=155): time 8.536e-06/1.037, allocations: 0 / 1.302 GB, free: 138.7 MB / 1.014 GB Notification: Performance of matching and sorting (n=155): time 0.02379/1.061, allocations: 8 MB / 1.31 GB, free: 134.4 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.701e-05/1.061, allocations: 68.28 kB / 1.31 GB, free: 134.3 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006083/1.067, allocations: 5.008 MB / 1.315 GB, free: 131.8 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.000554/1.068, allocations: 69.59 kB / 1.315 GB, free: 131.8 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.001528/1.069, allocations: 2.456 MB / 1.317 GB, free: 129.6 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006794/1.07, allocations: 0.5449 MB / 1.318 GB, free: 129.2 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008265/1.071, allocations: 0.676 MB / 1.319 GB, free: 128.8 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 3.21e-05/1.071, allocations: 305.1 kB / 1.319 GB, free: 128.5 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002335/1.073, allocations: 1.735 MB / 1.321 GB, free: 127.6 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002885/1.076, allocations: 2.932 MB / 1.323 GB, free: 125.1 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005815/1.082, allocations: 4.715 MB / 1.328 GB, free: 121.8 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-05/1.082, allocations: 10 kB / 1.328 GB, free: 121.8 MB / 1.014 GB Notification: Performance of matching and sorting (n=336) (initialization): time 0.009927/1.092, allocations: 6.346 MB / 1.334 GB, free: 115.6 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 4.719e-05/1.092, allocations: 52.03 kB / 1.334 GB, free: 115.6 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.238e-05/1.092, allocations: 35.94 kB / 1.334 GB, free: 115.5 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07849/1.171, allocations: 13.54 MB / 1.347 GB, free: 102 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002684/1.173, allocations: 0.663 MB / 1.348 GB, free: 101.4 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00883/1.182, allocations: 5.47 MB / 1.353 GB, free: 95.82 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00546/1.188, allocations: 222.6 kB / 1.354 GB, free: 95.61 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006786/1.188, allocations: 199.8 kB / 1.354 GB, free: 95.41 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004485/1.193, allocations: 2.979 MB / 1.357 GB, free: 92.42 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002695/1.196, allocations: 2.871 MB / 1.36 GB, free: 89 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004922/1.201, allocations: 4.59 MB / 1.364 GB, free: 83.94 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.528e-05/1.201, allocations: 12 kB / 1.364 GB, free: 83.93 MB / 1.014 GB Notification: Performance of matching and sorting (n=336) (initialization_lambda0): time 0.008964/1.21, allocations: 6.028 MB / 1.37 GB, free: 77.87 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 4.111e-05/1.21, allocations: 45.7 kB / 1.37 GB, free: 77.82 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.806e-05/1.21, allocations: 32 kB / 1.37 GB, free: 77.79 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07539/1.285, allocations: 13.32 MB / 1.383 GB, free: 64.5 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002586/1.288, allocations: 0.6552 MB / 1.384 GB, free: 63.85 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01088/1.299, allocations: 8.911 MB / 1.392 GB, free: 54.64 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004291/1.303, allocations: 224.9 kB / 1.393 GB, free: 54.42 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000459/1.303, allocations: 195.8 kB / 1.393 GB, free: 54.23 MB / 1.014 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.0007957/1.304, allocations: 355.3 kB / 1.393 GB, free: 53.87 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00122/1.305, allocations: 470.3 kB / 1.394 GB, free: 53.41 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007323/1.313, allocations: 4.618 MB / 1.398 GB, free: 48.77 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.981e-05/1.313, allocations: 27.94 kB / 1.398 GB, free: 48.75 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/1.313, allocations: 0 / 1.398 GB, free: 48.75 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009609/1.322, allocations: 5.664 MB / 1.404 GB, free: 42.83 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02521/1.348, allocations: 10.79 MB / 1.414 GB, free: 32 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.686e-05/1.348, allocations: 0 / 1.414 GB, free: 32 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002252/1.35, allocations: 371.6 kB / 1.415 GB, free: 31.64 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06715/1.417, allocations: 11.71 MB / 1.426 GB, free: 19.96 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004347/1.418, allocations: 47.97 kB / 1.426 GB, free: 19.91 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005475/1.423, allocations: 3.561 MB / 1.43 GB, free: 16.28 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.836e-06/1.423, allocations: 7.969 kB / 1.43 GB, free: 16.27 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02274/1.446, allocations: 8.473 MB / 1.438 GB, free: 7.758 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002933/1.449, allocations: 0.9247 MB / 1.439 GB, free: 6.809 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008926/1.45, allocations: 39.92 kB / 1.439 GB, free: 6.77 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002779/1.453, allocations: 151.7 kB / 1.439 GB, free: 6.621 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002968/1.453, allocations: 105.8 kB / 1.439 GB, free: 6.516 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001977/1.453, allocations: 83.92 kB / 1.439 GB, free: 6.434 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.003792/1.457, allocations: 3.44 MB / 1.442 GB, free: 3.012 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.6e-07/1.457, allocations: 0 / 1.442 GB, free: 3.012 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.006318/1.463, allocations: 2.634 MB / 1.445 GB, free: 416 kB / 1.014 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 (135): * Single equations (assignments): 126 * 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 {(11,5), (2,5), (10,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.02542/1.489, allocations: 9.35 MB / 1.454 GB, free: 7.055 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.01952/1.508, allocations: 7.48 MB / 1.461 GB, free: 15.54 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 8.936e-06/1.508, allocations: 3.938 kB / 1.461 GB, free: 15.53 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.006633/1.515, allocations: 2.306 MB / 1.464 GB, free: 13.23 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01417/1.529, allocations: 2.716 MB / 1.466 GB, free: 10.58 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07405/1.603, allocations: 42.1 MB / 1.507 GB, free: 15.13 MB / 1.092 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002605/1.606, allocations: 3.241 MB / 1.511 GB, free: 11.86 MB / 1.092 GB Notification: Performance of simCode: alias equations: time 0.004921/1.611, allocations: 1.661 MB / 1.512 GB, free: 10.2 MB / 1.092 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002761/1.613, allocations: 1.995 MB / 1.514 GB, free: 8.203 MB / 1.092 GB Notification: Performance of SimCode: time 6.31e-07/1.614, allocations: 0 / 1.514 GB, free: 8.203 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2091/1.823, allocations: 147.7 MB / 1.658 GB, free: 5.703 MB / 1.232 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.04/23.87, allocations: 7.922 kB / 1.658 GB, free: 5.695 MB / 1.232 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)