Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.45/1.45, allocations: 288.4 MB / 303.6 MB, free: 8.027 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008733/0.0008733, allocations: 187 kB / 372.3 MB, free: 10.12 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.198/1.198, allocations: 205.4 MB / 0.631 GB, free: 9.891 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006774/0.0006774, allocations: 90.3 kB / 0.7444 GB, free: 5.797 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003981/0.0003982, allocations: 11.97 kB / 0.8675 GB, free: 141.8 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1491/0.1495, allocations: 115.3 MB / 0.9802 GB, free: 27.28 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal): time 0.05632/0.2059, allocations: 74.44 MB / 1.053 GB, free: 0.6406 MB / 0.6667 GB Notification: Performance of NFInst.instExpressions: time 0.3428/0.5487, allocations: 20.96 MB / 1.073 GB, free: 18.91 MB / 0.6823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002863/0.5516, allocations: 91.44 kB / 1.073 GB, free: 18.91 MB / 0.6823 GB Notification: Performance of NFTyping.typeComponents: time 0.002764/0.5544, allocations: 0.8868 MB / 1.074 GB, free: 18.91 MB / 0.6823 GB Notification: Performance of NFTyping.typeBindings: time 0.006774/0.5612, allocations: 2.421 MB / 1.077 GB, free: 18.82 MB / 0.6823 GB Notification: Performance of NFTyping.typeClassSections: time 0.008085/0.5693, allocations: 2.846 MB / 1.079 GB, free: 18.74 MB / 0.6823 GB Notification: Performance of NFFlatten.flatten: time 0.01879/0.5881, allocations: 17.56 MB / 1.097 GB, free: 17.67 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.007618/0.5957, allocations: 5.968 MB / 1.102 GB, free: 16.48 MB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.009064/0.6048, allocations: 4.663 MB / 1.107 GB, free: 15.52 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007887/0.6127, allocations: 4.578 MB / 1.111 GB, free: 14.62 MB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 0.00158/0.6144, allocations: 260.2 kB / 1.112 GB, free: 14.62 MB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006428/0.6208, allocations: 1.566 MB / 1.113 GB, free: 14.54 MB / 0.6823 GB Notification: Performance of NFScalarize.scalarize: time 0.002368/0.6232, allocations: 1.222 MB / 1.114 GB, free: 14.27 MB / 0.6823 GB Notification: Performance of NFVerifyModel.verify: time 0.006282/0.6295, allocations: 2.772 MB / 1.117 GB, free: 13.27 MB / 0.6823 GB Notification: Performance of NFConvertDAE.convert: time 0.007796/0.6373, allocations: 6.937 MB / 1.124 GB, free: 9.715 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.6374, allocations: 0 / 1.124 GB, free: 9.715 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.335e-06/0.6374, allocations: 0 / 1.124 GB, free: 9.715 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.0002342/0.6376, allocations: 0 / 1.124 GB, free: 9.715 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 835 * Number of variables: 835 Notification: Performance of Generate backend data structure: time 0.01217/0.6498, allocations: 5.36 MB / 1.129 GB, free: 6.504 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.687e-05/0.6498, allocations: 13.22 kB / 1.129 GB, free: 6.504 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00146/0.6513, allocations: 471.8 kB / 1.13 GB, free: 6.367 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003719/0.655, allocations: 0.8454 MB / 1.13 GB, free: 5.969 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009534/0.6646, allocations: 5.188 MB / 1.135 GB, free: 3.918 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001922/0.6648, allocations: 260.7 kB / 1.136 GB, free: 3.91 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001104/0.6659, allocations: 337.7 kB / 1.136 GB, free: 3.91 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008752/0.6747, allocations: 5.738 MB / 1.142 GB, free: 1.828 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.419e-05/0.6748, allocations: 18.25 kB / 1.142 GB, free: 1.82 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004324/0.6752, allocations: 148.3 kB / 1.142 GB, free: 1.816 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.045e-05/0.6753, allocations: 86.52 kB / 1.142 GB, free: 1.812 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007882/0.6832, allocations: 5.551 MB / 1.147 GB, free: 400 kB / 0.6823 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.03804/0.7212, allocations: 24.01 MB / 1.171 GB, free: 9.523 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005277/0.7266, allocations: 2.8 MB / 1.173 GB, free: 6.719 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003195/0.7298, allocations: 1.925 MB / 1.175 GB, free: 4.793 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01392/0.7437, allocations: 7.132 MB / 1.182 GB, free: 13.41 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003341/0.7471, allocations: 1.949 MB / 1.184 GB, free: 11.45 MB / 0.7292 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00499/0.7521, allocations: 1.248 MB / 1.185 GB, free: 10.2 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=155): time 7.635e-06/0.7522, allocations: 2.734 kB / 1.185 GB, free: 10.2 MB / 0.7292 GB Notification: Performance of matching and sorting (n=155): time 0.02229/0.7745, allocations: 7.665 MB / 1.193 GB, free: 2.469 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.138e-05/0.7746, allocations: 145.8 kB / 1.193 GB, free: 2.297 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00771/0.7823, allocations: 4.848 MB / 1.198 GB, free: 13.46 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 0.0005635/0.7829, allocations: 69.7 kB / 1.198 GB, free: 13.39 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.002372/0.7853, allocations: 2.442 MB / 1.2 GB, free: 10.93 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008709/0.7862, allocations: 0.5513 MB / 1.201 GB, free: 10.39 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001991/0.7864, allocations: 52 kB / 1.201 GB, free: 10.34 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001948/0.7866, allocations: 415.4 kB / 1.201 GB, free: 9.926 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002852/0.7894, allocations: 1.656 MB / 1.203 GB, free: 8.266 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003632/0.7931, allocations: 2.891 MB / 1.206 GB, free: 4.812 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006609/0.7997, allocations: 4.551 MB / 1.21 GB, free: 15.81 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-05/0.7998, allocations: 12 kB / 1.21 GB, free: 15.8 MB / 0.7605 GB Notification: Performance of matching and sorting (n=340) (initialization): time 0.0117/0.8115, allocations: 6.023 MB / 1.216 GB, free: 9.754 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008042/0.8123, allocations: 1.108 MB / 1.217 GB, free: 8.184 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.112e-05/0.8124, allocations: 39.98 kB / 1.217 GB, free: 8.145 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06744/0.8798, allocations: 11.86 MB / 1.229 GB, free: 12.32 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002992/0.8828, allocations: 0.663 MB / 1.229 GB, free: 11.66 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008327/0.8912, allocations: 5.045 MB / 1.234 GB, free: 6.539 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005676/0.8969, allocations: 351.7 kB / 1.235 GB, free: 6.195 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005857/0.8975, allocations: 159.9 kB / 1.235 GB, free: 6.039 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.208e-05/0.8976, allocations: 4 kB / 1.235 GB, free: 6.035 MB / 0.7761 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009082/0.9066, allocations: 5.368 MB / 1.24 GB, free: 0.6484 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.514e-05/0.9067, allocations: 32 kB / 1.24 GB, free: 0.6172 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06463/0.9714, allocations: 11.68 MB / 1.251 GB, free: 4.973 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002797/0.9742, allocations: 0.6513 MB / 1.252 GB, free: 4.32 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0115/0.9857, allocations: 8.075 MB / 1.26 GB, free: 11.96 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004652/0.9904, allocations: 333.3 kB / 1.26 GB, free: 11.63 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004524/0.9909, allocations: 152.1 kB / 1.26 GB, free: 11.48 MB / 0.8073 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 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,nRes.y,allowFlowReversal.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (287): * Single equations (assignments): 280 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {11 13,10 11,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.002869/0.9938, allocations: 1.558 MB / 1.262 GB, free: 9.918 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009043/0.9947, allocations: 462.2 kB / 1.262 GB, free: 9.461 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007855/1.003, allocations: 4.867 MB / 1.267 GB, free: 4.578 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-05/1.003, allocations: 16 kB / 1.267 GB, free: 4.562 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.456e-06/1.003, allocations: 0 / 1.267 GB, free: 4.562 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01859/1.021, allocations: 7.007 MB / 1.274 GB, free: 13.3 MB / 0.823 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.03068/1.052, allocations: 13.22 MB / 1.287 GB, free: 4 kB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.135e-05/1.052, allocations: 0 / 1.287 GB, free: 4 kB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002262/1.054, allocations: 367.6 kB / 1.287 GB, free: 15.64 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06287/1.117, allocations: 11.9 MB / 1.299 GB, free: 3.781 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004944/1.118, allocations: 51.91 kB / 1.299 GB, free: 3.73 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00645/1.124, allocations: 4.373 MB / 1.303 GB, free: 15.28 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/1.124, allocations: 0 / 1.303 GB, free: 15.28 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02426/1.148, allocations: 9.739 MB / 1.313 GB, free: 5.504 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003363/1.152, allocations: 1.077 MB / 1.314 GB, free: 4.402 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009797/1.153, allocations: 30.73 kB / 1.314 GB, free: 4.375 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003592/1.156, allocations: 279.2 kB / 1.314 GB, free: 4.102 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003597/1.157, allocations: 101.2 kB / 1.314 GB, free: 4.004 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002636/1.157, allocations: 83.86 kB / 1.314 GB, free: 3.922 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.005118/1.162, allocations: 3.306 MB / 1.317 GB, free: 0.6328 MB / 0.8542 GB Notification: Performance of sort global known variables: time 1.91e-07/1.162, allocations: 0 / 1.317 GB, free: 0.6328 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.008094/1.17, allocations: 2.714 MB / 1.32 GB, free: 13.91 MB / 0.8698 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.x[1],val.filter.x[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 (127): * Single equations (assignments): 118 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {10 3,2 5,10 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.02441/1.195, allocations: 10.64 MB / 1.331 GB, free: 3.266 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.01537/1.21, allocations: 7.574 MB / 1.338 GB, free: 11.65 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 6.442e-06/1.21, allocations: 3.625 kB / 1.338 GB, free: 11.65 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.005461/1.216, allocations: 2.515 MB / 1.34 GB, free: 9.129 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01285/1.228, allocations: 2.747 MB / 1.343 GB, free: 6.406 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08809/1.317, allocations: 40.47 MB / 1.383 GB, free: 11.2 MB / 0.9323 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002739/1.319, allocations: 3.217 MB / 1.386 GB, free: 7.953 MB / 0.9323 GB Notification: Performance of simCode: alias equations: time 0.005715/1.325, allocations: 1.693 MB / 1.387 GB, free: 6.254 MB / 0.9323 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003139/1.328, allocations: 2.007 MB / 1.389 GB, free: 4.246 MB / 0.9323 GB Notification: Performance of SimCode: time 8.02e-07/1.328, allocations: 3.938 kB / 1.389 GB, free: 4.242 MB / 0.9323 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.548/2.877, allocations: 152.9 MB / 1.539 GB, free: 276.2 MB / 0.9636 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001772/2.877, allocations: 254.1 kB / 1.539 GB, free: 275.8 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.18/9.057, allocations: 2.516 kB / 1.539 GB, free: 275.8 MB / 0.9636 GB (rm -f Buildings_maint.8.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal_fmu --startTime=0 --stopTime=10000 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal.fmu > Buildings_maint.8.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1)