Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,fileNamePrefix="Buildings_maint_7_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 7.0.3-maint.7.0.x/package.mo): time 1.386/1.386, allocations: 251.9 MB / 266.9 MB, free: 11.03 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001307/0.001307, allocations: 175.7 kB / 326.5 MB, free: 2.258 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.94/1.94, allocations: 205.4 MB / 0.5775 GB, free: 20.56 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009599/0.0009597, allocations: 98.02 kB / 0.6821 GB, free: 13.34 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004008/0.0004009, allocations: 10.75 kB / 0.7963 GB, free: 135.4 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2456/0.246, allocations: 106.4 MB / 0.9001 GB, free: 64.38 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9763/1.222, allocations: 414.1 MB / 1.304 GB, free: 1.582 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002341/1.223, allocations: 90.2 kB / 1.305 GB, free: 1.535 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 5.709/6.931, allocations: 1.454 GB / 2.759 GB, free: 11.72 MB / 0.9167 GB Notification: Performance of FrontEnd: time 2.985e-06/6.931, allocations: 0 / 2.759 GB, free: 11.72 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 0.001303/6.933, allocations: 151.8 kB / 2.759 GB, free: 11.57 MB / 0.9167 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.02516/6.958, allocations: 5.898 MB / 2.765 GB, free: 5.574 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 6.084e-05/6.958, allocations: 8.031 kB / 2.765 GB, free: 5.566 MB / 0.9167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002912/6.961, allocations: 479.3 kB / 2.765 GB, free: 5.086 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006389/6.967, allocations: 0.805 MB / 2.766 GB, free: 4.273 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.6963/7.664, allocations: 6.794 MB / 2.773 GB, free: 134.5 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003109/7.664, allocations: 272.1 kB / 2.773 GB, free: 134.5 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001127/7.665, allocations: 351.8 kB / 2.773 GB, free: 134.5 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01504/7.68, allocations: 5.376 MB / 2.778 GB, free: 133.8 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001128/7.68, allocations: 11.19 kB / 2.778 GB, free: 133.8 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007431/7.681, allocations: 145.4 kB / 2.779 GB, free: 133.8 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001528/7.681, allocations: 83 kB / 2.779 GB, free: 133.8 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01256/7.694, allocations: 5.064 MB / 2.784 GB, free: 133.8 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 preOpt removeSimpleEquations (simulation): time 0.04472/7.738, allocations: 22.74 MB / 2.806 GB, free: 124.4 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005569/7.744, allocations: 2.727 MB / 2.808 GB, free: 124.3 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01541/7.76, allocations: 7.008 MB / 2.815 GB, free: 122.1 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00319/7.763, allocations: 1.835 MB / 2.817 GB, free: 122.1 MB / 0.9167 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.007104/7.77, allocations: 2.027 MB / 2.819 GB, free: 122 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=157): time 1.308e-05/7.77, allocations: 2.25 kB / 2.819 GB, free: 122 MB / 0.9167 GB Notification: Performance of matching and sorting (n=157): time 0.01743/7.787, allocations: 6.615 MB / 2.826 GB, free: 121.4 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.156e-05/7.788, allocations: 161.1 kB / 2.826 GB, free: 121.2 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01412/7.802, allocations: 4.552 MB / 2.83 GB, free: 120.9 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 0.001033/7.803, allocations: 71.55 kB / 2.83 GB, free: 120.9 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.002803/7.806, allocations: 2.451 MB / 2.833 GB, free: 120.3 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 0.001105/7.807, allocations: 0.5514 MB / 2.833 GB, free: 120 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002563/7.807, allocations: 56.56 kB / 2.833 GB, free: 120 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001701/7.807, allocations: 420.1 kB / 2.834 GB, free: 119.7 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00259/7.81, allocations: 1.522 MB / 2.835 GB, free: 119.7 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003123/7.813, allocations: 2.837 MB / 2.838 GB, free: 118.1 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002923/7.816, allocations: 1.987 MB / 2.84 GB, free: 118.1 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.715e-05/7.816, allocations: 7.688 kB / 2.84 GB, free: 118.1 MB / 0.9167 GB Notification: Performance of matching and sorting (n=340) (initialization): time 0.01013/7.826, allocations: 5.556 MB / 2.845 GB, free: 117.7 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 0.003874/7.83, allocations: 15.27 MB / 2.86 GB, free: 101.3 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.704e-05/7.83, allocations: 41.22 kB / 2.86 GB, free: 101.3 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06715/7.897, allocations: 11.46 MB / 2.871 GB, free: 101.3 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003275/7.901, allocations: 0.6966 MB / 2.872 GB, free: 101.3 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007541/7.908, allocations: 4.72 MB / 2.877 GB, free: 99.72 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006453/7.915, allocations: 363.5 kB / 2.877 GB, free: 99.7 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007448/7.915, allocations: 154.2 kB / 2.877 GB, free: 99.7 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.643e-05/7.915, allocations: 4.938 kB / 2.877 GB, free: 99.7 MB / 0.9167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009152/7.925, allocations: 5.031 MB / 2.882 GB, free: 99.59 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.816e-05/7.925, allocations: 33.88 kB / 2.882 GB, free: 99.59 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06634/7.991, allocations: 11.38 MB / 2.893 GB, free: 99.31 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003066/7.994, allocations: 0.6911 MB / 2.894 GB, free: 99.3 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01034/8.005, allocations: 7.795 MB / 2.901 GB, free: 95.98 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005816/8.01, allocations: 345.4 kB / 2.902 GB, free: 95.95 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007235/8.011, allocations: 153 kB / 2.902 GB, free: 95.95 MB / 0.9167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 147 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,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.003486/8.015, allocations: 1.558 MB / 2.903 GB, free: 95.75 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001566/8.016, allocations: 466.4 kB / 2.904 GB, free: 95.51 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007337/8.024, allocations: 4.582 MB / 2.908 GB, free: 95.31 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.2e-05/8.024, allocations: 18.03 kB / 2.908 GB, free: 95.31 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.9e-06/8.024, allocations: 0 / 2.908 GB, free: 95.31 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01213/8.036, allocations: 6.492 MB / 2.915 GB, free: 93.91 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03015/8.066, allocations: 13.15 MB / 2.928 GB, free: 92.62 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.983e-05/8.066, allocations: 3.141 kB / 2.928 GB, free: 92.62 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002566/8.069, allocations: 427.5 kB / 2.928 GB, free: 92.62 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06483/8.134, allocations: 11.64 MB / 2.939 GB, free: 91.84 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005558/8.134, allocations: 48 kB / 2.939 GB, free: 91.84 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005695/8.14, allocations: 4.109 MB / 2.943 GB, free: 90.26 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/8.14, allocations: 0 / 2.943 GB, free: 90.26 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0198/8.16, allocations: 9.182 MB / 2.952 GB, free: 89.64 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0048/8.165, allocations: 1.109 MB / 2.953 GB, free: 89.3 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001797/8.166, allocations: 28.62 kB / 2.954 GB, free: 89.3 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004657/8.171, allocations: 306.8 kB / 2.954 GB, free: 89.27 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003523/8.171, allocations: 102.2 kB / 2.954 GB, free: 89.27 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003043/8.172, allocations: 83.55 kB / 2.954 GB, free: 89.27 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.005614/8.177, allocations: 3.515 MB / 2.957 GB, free: 89.09 MB / 0.9167 GB Notification: Performance of sort global known variables: time 2.1e-07/8.177, allocations: 3.75 kB / 2.957 GB, free: 89.09 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.01197/8.189, allocations: 2.81 MB / 2.96 GB, free: 88.97 MB / 0.9167 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 (129): * Single equations (assignments): 120 * 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.02189/8.211, allocations: 10.85 MB / 2.971 GB, free: 87.54 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.01609/8.227, allocations: 7.371 MB / 2.978 GB, free: 86.98 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 1.271e-05/8.227, allocations: 5.953 kB / 2.978 GB, free: 86.98 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.005123/8.233, allocations: 2.484 MB / 2.98 GB, free: 86.93 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01345/8.246, allocations: 2.717 MB / 2.983 GB, free: 86.8 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03594/8.282, allocations: 40.52 MB / 3.023 GB, free: 53.17 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002972/8.285, allocations: 3.304 MB / 3.026 GB, free: 52.34 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.006817/8.292, allocations: 1.678 MB / 3.027 GB, free: 52.14 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003622/8.296, allocations: 2.004 MB / 3.029 GB, free: 52.12 MB / 0.9167 GB Notification: Performance of SimCode: time 5.71e-07/8.296, allocations: 0 / 3.029 GB, free: 52.12 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.77/9.066, allocations: 158.4 MB / 3.184 GB, free: 114.2 MB / 0.9323 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001527/9.066, allocations: 258.7 kB / 3.184 GB, free: 113.8 MB / 0.9323 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.296/16.36, allocations: 0 / 3.184 GB, free: 113.8 MB / 0.9323 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal_fmu --startTime=0 --stopTime=10000 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal.fmu > Buildings_maint.7.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1)