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.65/1.65, allocations: 285.6 MB / 293.1 MB, free: 10.18 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.00108/0.00108, allocations: 180.4 kB / 361.4 MB, free: 6.816 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.636/1.636, allocations: 205.2 MB / 0.62 GB, free: 11.65 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001041/0.001041, allocations: 93.7 kB / 0.733 GB, free: 44.14 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.06e-05/2.071e-05, allocations: 0 / 0.8518 GB, free: 2.637 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7567/0.7567, allocations: 115.3 MB / 0.9644 GB, free: 78.81 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.261/2.018, allocations: 419.6 MB / 1.374 GB, free: 147.2 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002982/2.018, allocations: 87.56 kB / 1.374 GB, free: 147.2 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 6.124/8.142, allocations: 1.441 GB / 2.815 GB, free: 135.1 MB / 0.9636 GB Notification: Performance of FrontEnd: time 2.044e-06/8.143, allocations: 3.938 kB / 2.815 GB, free: 135.1 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 0.000915/8.143, allocations: 151.9 kB / 2.816 GB, free: 135.1 MB / 0.9636 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.0153/8.159, allocations: 4.583 MB / 2.82 GB, free: 133.3 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 5.07e-05/8.159, allocations: 10.56 kB / 2.82 GB, free: 133.3 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005216/8.164, allocations: 0.8038 MB / 2.821 GB, free: 133 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0182/8.182, allocations: 6.758 MB / 2.827 GB, free: 132.2 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002366/8.183, allocations: 106.9 kB / 2.828 GB, free: 132.2 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001352/8.184, allocations: 205 kB / 2.828 GB, free: 132.2 MB / 0.9636 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009635/8.194, allocations: 4.736 MB / 2.832 GB, free: 132.2 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008872/8.202, allocations: 4.81 MB / 2.837 GB, free: 131.5 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.198e-05/8.203, allocations: 11.34 kB / 2.837 GB, free: 131.5 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004658/8.203, allocations: 11.5 kB / 2.837 GB, free: 131.5 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.434e-05/8.203, allocations: 86.02 kB / 2.837 GB, free: 131.5 MB / 0.9636 GB Warning: The model contains alias variables with conflicting start and/or 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.03677/8.24, allocations: 22.06 MB / 2.859 GB, free: 121.6 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004314/8.244, allocations: 2.654 MB / 2.861 GB, free: 121.6 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002319/8.247, allocations: 1.7 MB / 2.863 GB, free: 121.6 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01465/8.261, allocations: 6.904 MB / 2.87 GB, free: 119.3 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002666/8.264, allocations: 1.734 MB / 2.871 GB, free: 119.2 MB / 0.9636 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.007961/8.272, allocations: 1.958 MB / 2.873 GB, free: 119.1 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=157): time 1.722e-05/8.272, allocations: 0 / 2.873 GB, free: 119.1 MB / 0.9636 GB Notification: Performance of matching and sorting (n=157): time 0.02606/8.298, allocations: 6.211 MB / 2.879 GB, free: 118.8 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.374e-05/8.298, allocations: 148.3 kB / 2.88 GB, free: 118.6 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009941/8.308, allocations: 3.959 MB / 2.883 GB, free: 118.3 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 0.0008446/8.309, allocations: 35.3 kB / 2.883 GB, free: 118.3 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 0.003341/8.313, allocations: 2.441 MB / 2.886 GB, free: 117.4 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 0.001297/8.314, allocations: 0.5372 MB / 2.886 GB, free: 117.1 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005448/8.314, allocations: 0 / 2.886 GB, free: 117.1 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 0.0002683/8.315, allocations: 419.7 kB / 2.887 GB, free: 116.8 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002855/8.318, allocations: 1.454 MB / 2.888 GB, free: 116.8 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004264/8.322, allocations: 2.732 MB / 2.891 GB, free: 115.2 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008586/8.331, allocations: 2.498 MB / 2.893 GB, free: 115.2 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.28e-05/8.331, allocations: 11.72 kB / 2.893 GB, free: 115.2 MB / 0.9636 GB Notification: Performance of matching and sorting (n=340) (initialization): time 0.04226/8.373, allocations: 8.399 MB / 2.901 GB, free: 114.8 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 0.004166/8.377, allocations: 15.03 MB / 2.916 GB, free: 99.05 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001362/8.377, allocations: 32.56 kB / 2.916 GB, free: 99.05 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03381/8.411, allocations: 6.205 MB / 2.922 GB, free: 99.03 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003402/8.415, allocations: 0.7033 MB / 2.923 GB, free: 99.03 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01151/8.426, allocations: 5.529 MB / 2.928 GB, free: 97.42 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006613/8.433, allocations: 307.5 kB / 2.929 GB, free: 97.38 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001012/8.434, allocations: 156.5 kB / 2.929 GB, free: 97.38 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.907e-05/8.434, allocations: 6.062 kB / 2.929 GB, free: 97.38 MB / 0.9636 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03572/8.47, allocations: 7.686 MB / 2.936 GB, free: 96.27 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001966/8.47, allocations: 38.42 kB / 2.936 GB, free: 96.27 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03343/8.503, allocations: 6.154 MB / 2.942 GB, free: 95.5 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003293/8.507, allocations: 0.6879 MB / 2.943 GB, free: 95.44 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0149/8.522, allocations: 8.228 MB / 2.951 GB, free: 90.69 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006039/8.528, allocations: 289 kB / 2.951 GB, free: 90.64 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009793/8.529, allocations: 153.9 kB / 2.951 GB, free: 90.62 MB / 0.9636 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 () * 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.001656/8.53, allocations: 192.7 kB / 2.952 GB, free: 90.45 MB / 0.9636 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02371/8.554, allocations: 6.046 MB / 2.958 GB, free: 88.76 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002454/8.557, allocations: 432.5 kB / 2.958 GB, free: 88.54 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01916/8.576, allocations: 5.706 MB / 2.964 GB, free: 86.84 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.199e-05/8.576, allocations: 25.88 kB / 2.964 GB, free: 86.84 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.472e-05/8.576, allocations: 3.953 kB / 2.964 GB, free: 86.84 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01788/8.594, allocations: 6.868 MB / 2.97 GB, free: 83.78 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04008/8.634, allocations: 13.1 MB / 2.983 GB, free: 74.44 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.647e-05/8.634, allocations: 0 / 2.983 GB, free: 74.44 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002673/8.637, allocations: 435.4 kB / 2.983 GB, free: 74.02 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004647/8.641, allocations: 2.444 MB / 2.986 GB, free: 71.58 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004887/8.642, allocations: 23.97 kB / 2.986 GB, free: 71.56 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009519/8.652, allocations: 4.805 MB / 2.991 GB, free: 66.68 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.281e-05/8.652, allocations: 3.938 kB / 2.991 GB, free: 66.68 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02967/8.681, allocations: 10.01 MB / 3 GB, free: 56.63 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005529/8.687, allocations: 1.065 MB / 3.001 GB, free: 55.54 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003002/8.69, allocations: 3.984 kB / 3.001 GB, free: 55.54 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006686/8.697, allocations: 263.1 kB / 3.002 GB, free: 55.28 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008156/8.698, allocations: 117.1 kB / 3.002 GB, free: 55.17 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006981/8.698, allocations: 83.66 kB / 3.002 GB, free: 55.09 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 0.0078/8.706, allocations: 2.978 MB / 3.005 GB, free: 52.12 MB / 0.9636 GB Notification: Performance of sort global known variables: time 7.82e-07/8.706, allocations: 4 kB / 3.005 GB, free: 52.12 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.01612/8.722, allocations: 2.728 MB / 3.007 GB, free: 49.38 MB / 0.9636 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) * 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.03364/8.756, allocations: 11.64 MB / 3.019 GB, free: 37.81 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.01847/8.774, allocations: 7.105 MB / 3.026 GB, free: 30.67 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.832e-05/8.775, allocations: 9.078 kB / 3.026 GB, free: 30.66 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.006048/8.781, allocations: 2.375 MB / 3.028 GB, free: 28.29 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0161/8.797, allocations: 2.406 MB / 3.03 GB, free: 25.96 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03301/8.83, allocations: 8.828 MB / 3.039 GB, free: 17.09 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005333/8.835, allocations: 3.317 MB / 3.042 GB, free: 13.74 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 0.01369/8.849, allocations: 2.783 MB / 3.045 GB, free: 11.05 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00471/8.854, allocations: 1.905 MB / 3.047 GB, free: 9.148 MB / 0.9636 GB Notification: Performance of SimCode: time 1.452e-06/8.854, allocations: 0 / 3.047 GB, free: 9.148 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.057/9.911, allocations: 145.8 MB / 3.189 GB, free: 142.1 MB / 0.9792 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002088/9.911, allocations: 182.4 kB / 3.189 GB, free: 141.9 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.312/17.22, allocations: 0 / 3.189 GB, free: 141.9 MB / 0.9792 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)