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.533/1.533, allocations: 249.3 MB / 261.8 MB, free: 5.879 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.001103/0.001103, allocations: 184.4 kB / 321.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.772/1.772, allocations: 205.2 MB / 0.572 GB, free: 10.63 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.000955/0.0009548, allocations: 100.3 kB / 0.6764 GB, free: 15.59 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.461e-05/3.464e-05, allocations: 7.984 kB / 0.788 GB, free: 97.02 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2327/0.2327, allocations: 106.3 MB / 0.8919 GB, free: 6.598 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.674/1.907, allocations: 414 MB / 1.296 GB, free: 316.6 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003101/1.907, allocations: 86.28 kB / 1.296 GB, free: 316.6 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 5.878/7.785, allocations: 1.449 GB / 2.745 GB, free: 118.1 MB / 0.9011 GB Notification: Performance of FrontEnd: time 3.346e-06/7.785, allocations: 0 / 2.745 GB, free: 118.1 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 0.00105/7.786, allocations: 158.6 kB / 2.745 GB, free: 118.1 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.01726/7.804, allocations: 4.577 MB / 2.75 GB, free: 116.2 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 6.974e-05/7.804, allocations: 11.25 kB / 2.75 GB, free: 116.2 MB / 0.9011 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001816/7.806, allocations: 463 kB / 2.75 GB, free: 116.2 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005836/7.811, allocations: 0.8054 MB / 2.751 GB, free: 115.9 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02151/7.833, allocations: 6.753 MB / 2.758 GB, free: 115 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004949/7.833, allocations: 267.2 kB / 2.758 GB, free: 115 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002095/7.836, allocations: 354.8 kB / 2.758 GB, free: 115 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01685/7.852, allocations: 5.279 MB / 2.763 GB, free: 114.3 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002959/7.853, allocations: 9.625 kB / 2.763 GB, free: 114.3 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00173/7.855, allocations: 148.4 kB / 2.763 GB, free: 114.3 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001214/7.855, allocations: 82.47 kB / 2.764 GB, free: 114.3 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01126/7.866, allocations: 4.917 MB / 2.768 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.04966/7.916, allocations: 22.72 MB / 2.791 GB, free: 104.3 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005074/7.921, allocations: 2.601 MB / 2.793 GB, free: 104.3 MB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002701/7.924, allocations: 1.707 MB / 2.795 GB, free: 104.3 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01584/7.94, allocations: 7.019 MB / 2.802 GB, free: 102 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003051/7.943, allocations: 1.791 MB / 2.803 GB, free: 102 MB / 0.9011 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.007366/7.95, allocations: 2.028 MB / 2.805 GB, free: 101.8 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=157): time 1.93e-05/7.95, allocations: 0 / 2.805 GB, free: 101.8 MB / 0.9011 GB Notification: Performance of matching and sorting (n=157): time 0.01892/7.969, allocations: 5.562 MB / 2.811 GB, free: 101.5 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001072/7.969, allocations: 149.9 kB / 2.811 GB, free: 101.3 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01197/7.981, allocations: 4.502 MB / 2.815 GB, free: 101 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 0.0009494/7.982, allocations: 74.06 kB / 2.815 GB, free: 100.9 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.003593/7.986, allocations: 2.447 MB / 2.818 GB, free: 100.2 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 0.001334/7.987, allocations: 0.5641 MB / 2.818 GB, free: 99.8 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005905/7.988, allocations: 52.09 kB / 2.818 GB, free: 99.8 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0002803/7.988, allocations: 415 kB / 2.819 GB, free: 99.5 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002725/7.991, allocations: 1.467 MB / 2.82 GB, free: 99.49 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003729/7.995, allocations: 2.769 MB / 2.823 GB, free: 97.92 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003357/7.998, allocations: 1.941 MB / 2.825 GB, free: 97.85 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.007e-05/7.998, allocations: 7.781 kB / 2.825 GB, free: 97.85 MB / 0.9011 GB Notification: Performance of matching and sorting (n=340) (initialization): time 0.03308/8.031, allocations: 7.981 MB / 2.833 GB, free: 96.23 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 0.004822/8.036, allocations: 15.28 MB / 2.847 GB, free: 79.64 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001631/8.036, allocations: 35.34 kB / 2.848 GB, free: 79.64 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.08957/8.126, allocations: 15.4 MB / 2.863 GB, free: 78.19 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003215/8.129, allocations: 0.693 MB / 2.863 GB, free: 78.17 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007315/8.136, allocations: 4.715 MB / 2.868 GB, free: 75.75 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006539/8.143, allocations: 360.2 kB / 2.868 GB, free: 75.65 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007224/8.144, allocations: 160.6 kB / 2.868 GB, free: 75.63 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 1.902e-05/8.144, allocations: 3.844 kB / 2.868 GB, free: 75.63 MB / 0.9011 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0289/8.173, allocations: 7.458 MB / 2.876 GB, free: 72.3 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001423/8.173, allocations: 36.78 kB / 2.876 GB, free: 72.3 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.08954/8.262, allocations: 15.3 MB / 2.891 GB, free: 58.13 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003121/8.266, allocations: 0.698 MB / 2.891 GB, free: 57.43 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01009/8.276, allocations: 7.71 MB / 2.899 GB, free: 49.44 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006034/8.282, allocations: 347.5 kB / 2.899 GB, free: 49.1 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007357/8.283, allocations: 148 kB / 2.899 GB, free: 48.95 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.001199/8.284, allocations: 292.5 kB / 2.9 GB, free: 48.66 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002004/8.286, allocations: 462.3 kB / 2.9 GB, free: 48.21 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02253/8.308, allocations: 6.598 MB / 2.906 GB, free: 41.65 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.1e-05/8.308, allocations: 20 kB / 2.906 GB, free: 41.63 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/8.308, allocations: 0 / 2.906 GB, free: 41.63 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01212/8.321, allocations: 6.381 MB / 2.913 GB, free: 35.02 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0304/8.351, allocations: 13.01 MB / 2.925 GB, free: 21.95 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.183e-05/8.351, allocations: 4 kB / 2.925 GB, free: 21.95 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002497/8.354, allocations: 419.5 kB / 2.926 GB, free: 21.54 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06207/8.416, allocations: 11.64 MB / 2.937 GB, free: 9.965 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005781/8.416, allocations: 43.97 kB / 2.937 GB, free: 9.922 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005665/8.422, allocations: 4.119 MB / 2.941 GB, free: 5.727 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.998e-06/8.422, allocations: 3.953 kB / 2.941 GB, free: 5.723 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01975/8.442, allocations: 9.006 MB / 2.95 GB, free: 12.69 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005215/8.447, allocations: 1.107 MB / 2.951 GB, free: 11.56 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002058/8.449, allocations: 35.94 kB / 2.951 GB, free: 11.53 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005175/8.454, allocations: 299.2 kB / 2.951 GB, free: 11.23 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003961/8.455, allocations: 105.1 kB / 2.952 GB, free: 11.13 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000388/8.455, allocations: 83.92 kB / 2.952 GB, free: 11.05 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.007027/8.462, allocations: 3.472 MB / 2.955 GB, free: 7.598 MB / 0.9167 GB Notification: Performance of sort global known variables: time 7.52e-07/8.462, allocations: 4 kB / 2.955 GB, free: 7.594 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.01366/8.476, allocations: 2.815 MB / 2.958 GB, free: 4.773 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) * 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.8091/9.285, allocations: 10.68 MB / 2.968 GB, free: 139.4 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.02/9.305, allocations: 7.353 MB / 2.975 GB, free: 138.9 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 1.475e-05/9.305, allocations: 3.578 kB / 2.975 GB, free: 138.9 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.006051/9.311, allocations: 2.419 MB / 2.978 GB, free: 138.9 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01658/9.328, allocations: 2.717 MB / 2.98 GB, free: 138.9 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03031/9.358, allocations: 9.098 MB / 2.989 GB, free: 137.3 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005824/9.364, allocations: 3.315 MB / 2.993 GB, free: 136.5 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.01403/9.378, allocations: 3.004 MB / 2.995 GB, free: 136.4 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003824/9.382, allocations: 1.909 MB / 2.997 GB, free: 136.4 MB / 0.9167 GB Notification: Performance of SimCode: time 1.462e-06/9.382, allocations: 3.188 kB / 2.997 GB, free: 136.4 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2839/9.666, allocations: 167.7 MB / 3.161 GB, free: 104.6 MB / 0.9167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002575/9.666, allocations: 228.8 kB / 3.161 GB, free: 104.3 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.92/17.59, allocations: 0 / 3.161 GB, free: 104.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)