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.403/1.403, allocations: 249.5 MB / 257 MB, free: 6.906 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001023/0.001023, allocations: 191 kB / 316.3 MB, free: 3.246 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.65/1.65, allocations: 205.3 MB / 0.5671 GB, free: 15.8 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.0009711/0.000971, allocations: 86.47 kB / 0.6714 GB, free: 4.922 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.948e-05/1.95e-05, allocations: 4 kB / 0.7814 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2072/0.2073, allocations: 106.4 MB / 0.8853 GB, free: 12.18 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.659/1.867, allocations: 414.3 MB / 1.29 GB, free: 318.9 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002796/1.867, allocations: 85.66 kB / 1.29 GB, free: 318.9 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 5.087/6.954, allocations: 1.441 GB / 2.731 GB, free: 118 MB / 0.9011 GB Notification: Performance of FrontEnd: time 1.593e-06/6.954, allocations: 2.156 kB / 2.731 GB, free: 118 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 0.0008738/6.955, allocations: 154.4 kB / 2.731 GB, free: 117.9 MB / 0.9011 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.0131/6.968, allocations: 4.581 MB / 2.736 GB, free: 116.2 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 4.281e-05/6.968, allocations: 10.69 kB / 2.736 GB, free: 116.2 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004867/6.973, allocations: 0.7999 MB / 2.736 GB, free: 115.9 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01636/6.989, allocations: 6.756 MB / 2.743 GB, free: 115.1 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001555/6.99, allocations: 103.7 kB / 2.743 GB, free: 115.1 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009204/6.991, allocations: 213.2 kB / 2.743 GB, free: 115.1 MB / 0.9011 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007033/6.998, allocations: 4.735 MB / 2.748 GB, free: 115 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007128/7.005, allocations: 4.808 MB / 2.753 GB, free: 114.3 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.64e-05/7.005, allocations: 14.17 kB / 2.753 GB, free: 114.3 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004614/7.005, allocations: 18 kB / 2.753 GB, free: 114.3 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.463e-05/7.005, allocations: 80.16 kB / 2.753 GB, free: 114.3 MB / 0.9011 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.02963/7.035, allocations: 22.07 MB / 2.774 GB, free: 104.5 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003415/7.038, allocations: 2.649 MB / 2.777 GB, free: 104.5 MB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001784/7.04, allocations: 1.69 MB / 2.779 GB, free: 104.4 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01116/7.051, allocations: 6.907 MB / 2.785 GB, free: 102.2 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001997/7.054, allocations: 1.73 MB / 2.787 GB, free: 102.1 MB / 0.9011 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.006141/7.06, allocations: 1.958 MB / 2.789 GB, free: 102 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=157): time 8.035e-06/7.06, allocations: 3.25 kB / 2.789 GB, free: 102 MB / 0.9011 GB Notification: Performance of matching and sorting (n=157): time 0.02372/7.083, allocations: 6.214 MB / 2.795 GB, free: 101.7 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.065e-05/7.084, allocations: 151.6 kB / 2.795 GB, free: 101.5 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006608/7.09, allocations: 3.961 MB / 2.799 GB, free: 101.2 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 0.000849/7.091, allocations: 31.83 kB / 2.799 GB, free: 101.2 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.002366/7.093, allocations: 2.446 MB / 2.801 GB, free: 100.3 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 0.001158/7.095, allocations: 0.5331 MB / 2.802 GB, free: 99.96 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001988/7.095, allocations: 0 / 2.802 GB, free: 99.96 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0001783/7.095, allocations: 416.5 kB / 2.802 GB, free: 99.66 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002028/7.097, allocations: 1.45 MB / 2.804 GB, free: 99.65 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002662/7.1, allocations: 2.721 MB / 2.806 GB, free: 98.09 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006772/7.106, allocations: 2.512 MB / 2.809 GB, free: 98.05 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.492e-05/7.107, allocations: 11.31 kB / 2.809 GB, free: 98.05 MB / 0.9011 GB Notification: Performance of matching and sorting (n=340) (initialization): time 0.03582/7.142, allocations: 8.392 MB / 2.817 GB, free: 97.7 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 0.003056/7.145, allocations: 15.03 MB / 2.832 GB, free: 81.91 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.565e-05/7.146, allocations: 34.22 kB / 2.832 GB, free: 81.91 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03298/7.179, allocations: 6.202 MB / 2.838 GB, free: 81.89 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003202/7.182, allocations: 0.6992 MB / 2.838 GB, free: 81.89 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01094/7.193, allocations: 5.532 MB / 2.844 GB, free: 80.29 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006023/7.199, allocations: 306.4 kB / 2.844 GB, free: 80.26 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000906/7.2, allocations: 158.1 kB / 2.844 GB, free: 80.26 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/7.2, allocations: 4.781 kB / 2.844 GB, free: 80.26 MB / 0.9011 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03472/7.235, allocations: 7.696 MB / 2.852 GB, free: 80.1 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001481/7.235, allocations: 42.44 kB / 2.852 GB, free: 80.1 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03285/7.268, allocations: 6.147 MB / 2.858 GB, free: 80.01 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003169/7.271, allocations: 0.6911 MB / 2.859 GB, free: 80 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01452/7.285, allocations: 8.229 MB / 2.867 GB, free: 76.76 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005669/7.291, allocations: 288.3 kB / 2.867 GB, free: 76.71 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008455/7.292, allocations: 162.1 kB / 2.867 GB, free: 76.71 MB / 0.9011 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.001437/7.293, allocations: 210.5 kB / 2.867 GB, free: 76.58 MB / 0.9011 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02338/7.317, allocations: 6.028 MB / 2.873 GB, free: 75.3 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002187/7.319, allocations: 437.5 kB / 2.874 GB, free: 75.07 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0172/7.336, allocations: 5.706 MB / 2.879 GB, free: 73.4 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.177e-05/7.336, allocations: 17.59 kB / 2.879 GB, free: 73.4 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.042e-05/7.336, allocations: 0.75 kB / 2.879 GB, free: 73.4 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01835/7.355, allocations: 6.873 MB / 2.886 GB, free: 69.46 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03564/7.39, allocations: 13.09 MB / 2.899 GB, free: 58.39 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.176e-05/7.391, allocations: 4 kB / 2.899 GB, free: 58.39 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002505/7.393, allocations: 423.5 kB / 2.899 GB, free: 57.98 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00438/7.397, allocations: 2.448 MB / 2.901 GB, free: 55.55 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004454/7.398, allocations: 27.97 kB / 2.901 GB, free: 55.52 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009154/7.407, allocations: 4.806 MB / 2.906 GB, free: 50.64 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.253e-06/7.407, allocations: 0 / 2.906 GB, free: 50.64 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02761/7.435, allocations: 9.991 MB / 2.916 GB, free: 40.63 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004067/7.439, allocations: 1.073 MB / 2.917 GB, free: 39.53 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002085/7.441, allocations: 7.938 kB / 2.917 GB, free: 39.52 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005163/7.446, allocations: 263.2 kB / 2.917 GB, free: 39.27 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005152/7.447, allocations: 112.1 kB / 2.917 GB, free: 39.16 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004365/7.447, allocations: 83.33 kB / 2.917 GB, free: 39.08 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.006315/7.454, allocations: 2.978 MB / 2.92 GB, free: 36.11 MB / 0.9011 GB Notification: Performance of sort global known variables: time 4.71e-07/7.454, allocations: 7.938 kB / 2.92 GB, free: 36.1 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.01501/7.469, allocations: 2.741 MB / 2.923 GB, free: 33.36 MB / 0.9011 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.03263/7.501, allocations: 11.62 MB / 2.934 GB, free: 21.82 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.0166/7.518, allocations: 7.108 MB / 2.941 GB, free: 14.67 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 1.318e-05/7.518, allocations: 6.703 kB / 2.941 GB, free: 14.66 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.005355/7.523, allocations: 2.387 MB / 2.944 GB, free: 12.27 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01389/7.537, allocations: 2.399 MB / 2.946 GB, free: 9.938 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02473/7.562, allocations: 8.822 MB / 2.955 GB, free: 1.066 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004217/7.566, allocations: 3.317 MB / 2.958 GB, free: 13.72 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.01192/7.578, allocations: 2.79 MB / 2.961 GB, free: 11.01 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00384/7.582, allocations: 1.901 MB / 2.962 GB, free: 9.109 MB / 0.9167 GB Notification: Performance of SimCode: time 8.91e-07/7.582, allocations: 0 / 2.962 GB, free: 9.109 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.871/8.453, allocations: 145.8 MB / 3.105 GB, free: 128.5 MB / 0.9167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001794/8.453, allocations: 187.2 kB / 3.105 GB, free: 128.3 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.153/15.61, allocations: 3.797 kB / 3.105 GB, free: 128.3 MB / 0.9167 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)