Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,fileNamePrefix="Buildings_8_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,fileNamePrefix="Buildings_8_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.665/1.665, allocations: 289.7 MB / 302.2 MB, free: 2.168 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.001122/0.001122, allocations: 183.1 kB / 371.6 MB, free: 3.336 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.745/1.745, allocations: 205.1 MB / 0.6309 GB, free: 11.76 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.0009148/0.0009148, allocations: 86.59 kB / 0.745 GB, free: 54.7 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 3.742e-05/3.746e-05, allocations: 4 kB / 0.8663 GB, free: 14.98 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2658/0.2659, allocations: 116.3 MB / 0.9799 GB, free: 10.51 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.948/2.214, allocations: 421.2 MB / 1.391 GB, free: 246.9 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003612/2.214, allocations: 85.64 kB / 1.391 GB, free: 246.9 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 5.707/7.921, allocations: 1.449 GB / 2.84 GB, free: 412 kB / 0.9792 GB Notification: Performance of FrontEnd: time 2.595e-06/7.921, allocations: 0 / 2.84 GB, free: 412 kB / 0.9792 GB Notification: Performance of Transformations before backend: time 0.001171/7.922, allocations: 159.8 kB / 2.84 GB, free: 252 kB / 0.9792 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.8775/8.8, allocations: 4.578 MB / 2.845 GB, free: 121.5 MB / 0.9792 GB Notification: Performance of prepare preOptimizeDAE: time 7.422e-05/8.8, allocations: 10.31 kB / 2.845 GB, free: 121.5 MB / 0.9792 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00226/8.802, allocations: 463.9 kB / 2.845 GB, free: 121.4 MB / 0.9792 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006782/8.809, allocations: 0.8041 MB / 2.846 GB, free: 121.1 MB / 0.9792 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02672/8.836, allocations: 6.749 MB / 2.853 GB, free: 120.5 MB / 0.9792 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005523/8.836, allocations: 263 kB / 2.853 GB, free: 120.5 MB / 0.9792 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001708/8.838, allocations: 353.8 kB / 2.853 GB, free: 120.5 MB / 0.9792 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01447/8.853, allocations: 5.284 MB / 2.858 GB, free: 119.8 MB / 0.9792 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-05/8.853, allocations: 12.34 kB / 2.858 GB, free: 119.8 MB / 0.9792 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006567/8.853, allocations: 145.6 kB / 2.859 GB, free: 119.8 MB / 0.9792 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001076/8.854, allocations: 83.53 kB / 2.859 GB, free: 119.8 MB / 0.9792 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009017/8.863, allocations: 4.921 MB / 2.864 GB, free: 119.7 MB / 0.9792 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.04527/8.908, allocations: 22.71 MB / 2.886 GB, free: 110.1 MB / 0.9792 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004437/8.912, allocations: 2.622 MB / 2.888 GB, free: 110 MB / 0.9792 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002401/8.915, allocations: 1.704 MB / 2.89 GB, free: 110 MB / 0.9792 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01853/8.933, allocations: 7.016 MB / 2.897 GB, free: 107.8 MB / 0.9792 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003028/8.937, allocations: 1.779 MB / 2.898 GB, free: 107.8 MB / 0.9792 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.007709/8.944, allocations: 2.035 MB / 2.9 GB, free: 107.6 MB / 0.9792 GB Notification: Performance of pre-optimization done (n=157): time 1.753e-05/8.944, allocations: 3.391 kB / 2.9 GB, free: 107.6 MB / 0.9792 GB Notification: Performance of matching and sorting (n=157): time 0.02001/8.964, allocations: 5.567 MB / 2.906 GB, free: 107.3 MB / 0.9792 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.089e-05/8.964, allocations: 153.2 kB / 2.906 GB, free: 107.1 MB / 0.9792 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01183/8.976, allocations: 4.505 MB / 2.91 GB, free: 106.8 MB / 0.9792 GB Notification: Performance of collectPreVariables (initialization): time 0.0008742/8.977, allocations: 71.67 kB / 2.911 GB, free: 106.8 MB / 0.9792 GB Notification: Performance of collectInitialEqns (initialization): time 0.003384/8.981, allocations: 2.46 MB / 2.913 GB, free: 106 MB / 0.9792 GB Notification: Performance of collectInitialBindings (initialization): time 0.001281/8.982, allocations: 0.5583 MB / 2.913 GB, free: 105.6 MB / 0.9792 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005726/8.983, allocations: 48.22 kB / 2.914 GB, free: 105.6 MB / 0.9792 GB Notification: Performance of setup shared object (initialization): time 0.000313/8.983, allocations: 419.9 kB / 2.914 GB, free: 105.3 MB / 0.9792 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002711/8.986, allocations: 1.463 MB / 2.915 GB, free: 105.3 MB / 0.9792 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003404/8.989, allocations: 2.774 MB / 2.918 GB, free: 103.7 MB / 0.9792 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003084/8.992, allocations: 1.941 MB / 2.92 GB, free: 103.7 MB / 0.9792 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.862e-05/8.992, allocations: 8.844 kB / 2.92 GB, free: 103.7 MB / 0.9792 GB Notification: Performance of matching and sorting (n=340) (initialization): time 0.03203/9.024, allocations: 7.975 MB / 2.928 GB, free: 103.3 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 0.003571/9.028, allocations: 15.28 MB / 2.943 GB, free: 86.91 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001028/9.028, allocations: 35.5 kB / 2.943 GB, free: 86.91 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.09352/9.121, allocations: 15.4 MB / 2.958 GB, free: 86.89 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003656/9.125, allocations: 0.6974 MB / 2.958 GB, free: 86.89 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008784/9.134, allocations: 4.72 MB / 2.963 GB, free: 85.29 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007978/9.142, allocations: 365.7 kB / 2.963 GB, free: 85.25 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001097/9.143, allocations: 164.8 kB / 2.964 GB, free: 85.25 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 1.999e-05/9.143, allocations: 4.531 kB / 2.964 GB, free: 85.25 MB / 0.9792 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03426/9.178, allocations: 7.456 MB / 2.971 GB, free: 85.11 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002454/9.178, allocations: 39.69 kB / 2.971 GB, free: 85.11 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1052/9.283, allocations: 15.32 MB / 2.986 GB, free: 84.93 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00387/9.287, allocations: 0.6817 MB / 2.987 GB, free: 84.92 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01273/9.3, allocations: 7.709 MB / 2.994 GB, free: 81.59 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007727/9.308, allocations: 339.1 kB / 2.994 GB, free: 81.55 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001/9.309, allocations: 154.4 kB / 2.994 GB, free: 81.55 MB / 0.9792 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.001276/9.31, allocations: 292.1 kB / 2.995 GB, free: 81.41 MB / 0.9792 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002559/9.313, allocations: 461.4 kB / 2.995 GB, free: 81.18 MB / 0.9792 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02456/9.337, allocations: 6.597 MB / 3.002 GB, free: 80.92 MB / 0.9792 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.494e-05/9.337, allocations: 19.03 kB / 3.002 GB, free: 80.92 MB / 0.9792 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.867e-06/9.337, allocations: 0 / 3.002 GB, free: 80.92 MB / 0.9792 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01318/9.35, allocations: 6.383 MB / 3.008 GB, free: 79.54 MB / 0.9792 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03618/9.387, allocations: 13.01 MB / 3.021 GB, free: 78.29 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.071e-05/9.387, allocations: 0 / 3.021 GB, free: 78.29 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003027/9.39, allocations: 430.3 kB / 3.021 GB, free: 78.28 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06515/9.455, allocations: 11.63 MB / 3.032 GB, free: 77.5 MB / 0.9792 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00062/9.456, allocations: 46.95 kB / 3.032 GB, free: 77.5 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006031/9.462, allocations: 4.121 MB / 3.036 GB, free: 75.91 MB / 0.9792 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/9.462, allocations: 2.297 kB / 3.036 GB, free: 75.91 MB / 0.9792 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02028/9.482, allocations: 9.014 MB / 3.045 GB, free: 75.29 MB / 0.9792 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005219/9.487, allocations: 1.104 MB / 3.046 GB, free: 74.95 MB / 0.9792 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002333/9.49, allocations: 29.75 kB / 3.046 GB, free: 74.95 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005676/9.495, allocations: 305.8 kB / 3.047 GB, free: 74.9 MB / 0.9792 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004193/9.496, allocations: 105.4 kB / 3.047 GB, free: 74.89 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003746/9.496, allocations: 80.8 kB / 3.047 GB, free: 74.89 MB / 0.9792 GB Notification: Performance of sorting global known variables: time 0.007129/9.503, allocations: 3.473 MB / 3.05 GB, free: 74.69 MB / 0.9792 GB Notification: Performance of sort global known variables: time 8.91e-07/9.503, allocations: 0 / 3.05 GB, free: 74.69 MB / 0.9792 GB Notification: Performance of remove unused functions: time 0.0162/9.52, allocations: 2.817 MB / 3.053 GB, free: 74.44 MB / 0.9792 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.02571/9.545, allocations: 10.69 MB / 3.063 GB, free: 72.99 MB / 0.9792 GB Notification: Performance of simCode: created initialization part: time 0.0187/9.564, allocations: 7.334 MB / 3.071 GB, free: 72.43 MB / 0.9792 GB Notification: Performance of simCode: created event and clocks part: time 1.52e-05/9.564, allocations: 3.766 kB / 3.071 GB, free: 72.43 MB / 0.9792 GB Notification: Performance of simCode: created simulation system equations: time 0.00619/9.57, allocations: 2.435 MB / 3.073 GB, free: 72.38 MB / 0.9792 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.018/9.588, allocations: 2.711 MB / 3.076 GB, free: 72.24 MB / 0.9792 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03004/9.619, allocations: 9.099 MB / 3.085 GB, free: 70.49 MB / 0.9792 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004832/9.623, allocations: 3.322 MB / 3.088 GB, free: 69.64 MB / 0.9792 GB Notification: Performance of simCode: alias equations: time 0.01289/9.636, allocations: 3.001 MB / 3.091 GB, free: 69.38 MB / 0.9792 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003537/9.64, allocations: 1.909 MB / 3.093 GB, free: 69.37 MB / 0.9792 GB Notification: Performance of SimCode: time 1.392e-06/9.64, allocations: 0 / 3.093 GB, free: 69.37 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.11/10.75, allocations: 167.7 MB / 3.256 GB, free: 129.4 MB / 0.9948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001791/10.75, allocations: 221.9 kB / 3.256 GB, free: 129.2 MB / 0.9948 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.32/19.07, allocations: 1.203 kB / 3.256 GB, free: 129.2 MB / 0.9948 GB (rm -f Buildings_8_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; mkfifo Buildings_8_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe >> ../files/Buildings_8_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal_fmu --startTime=0 --stopTime=10000 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal.fmu > Buildings_8_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1)