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.655/1.655, allocations: 289.9 MB / 297.4 MB, free: 6.363 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.001022/0.001022, allocations: 176.9 kB / 366.7 MB, free: 1.629 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.615/1.615, allocations: 205.2 MB / 0.626 GB, free: 7.156 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.001032/0.001032, allocations: 101.6 kB / 0.74 GB, free: 39.53 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.083e-05/3.081e-05, allocations: 4 kB / 0.8598 GB, free: 12.98 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7626/0.7626, allocations: 116.3 MB / 0.9733 GB, free: 76.05 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.155/1.918, allocations: 420.6 MB / 1.384 GB, free: 135.8 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002175/1.918, allocations: 81.83 kB / 1.384 GB, free: 135.7 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 6.152/8.07, allocations: 1.441 GB / 2.825 GB, free: 138.7 MB / 0.9792 GB Notification: Performance of FrontEnd: time 1.893e-06/8.071, allocations: 0 / 2.825 GB, free: 138.7 MB / 0.9792 GB Notification: Performance of Transformations before backend: time 0.001286/8.072, allocations: 156.1 kB / 2.825 GB, free: 138.6 MB / 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.01965/8.091, allocations: 4.584 MB / 2.83 GB, free: 137 MB / 0.9792 GB Notification: Performance of prepare preOptimizeDAE: time 6.622e-05/8.092, allocations: 13.69 kB / 2.83 GB, free: 137 MB / 0.9792 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006259/8.098, allocations: 0.8031 MB / 2.831 GB, free: 136.6 MB / 0.9792 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01849/8.116, allocations: 6.757 MB / 2.837 GB, free: 135.8 MB / 0.9792 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001688/8.117, allocations: 104 kB / 2.837 GB, free: 135.8 MB / 0.9792 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001049/8.118, allocations: 208.6 kB / 2.838 GB, free: 135.8 MB / 0.9792 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007798/8.125, allocations: 4.736 MB / 2.842 GB, free: 135.8 MB / 0.9792 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007883/8.133, allocations: 4.808 MB / 2.847 GB, free: 135.1 MB / 0.9792 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.348e-05/8.134, allocations: 17.09 kB / 2.847 GB, free: 135.1 MB / 0.9792 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004886/8.134, allocations: 13.19 kB / 2.847 GB, free: 135.1 MB / 0.9792 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.551e-05/8.134, allocations: 87.8 kB / 2.847 GB, free: 135.1 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.03307/8.167, allocations: 22.06 MB / 2.869 GB, free: 125.2 MB / 0.9792 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003584/8.171, allocations: 2.652 MB / 2.871 GB, free: 125.2 MB / 0.9792 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001872/8.173, allocations: 1.698 MB / 2.873 GB, free: 125.2 MB / 0.9792 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01253/8.185, allocations: 6.898 MB / 2.88 GB, free: 122.9 MB / 0.9792 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002219/8.187, allocations: 1.731 MB / 2.881 GB, free: 122.9 MB / 0.9792 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00712/8.195, allocations: 1.963 MB / 2.883 GB, free: 122.8 MB / 0.9792 GB Notification: Performance of pre-optimization done (n=157): time 1.496e-05/8.195, allocations: 3.75 kB / 2.883 GB, free: 122.8 MB / 0.9792 GB Notification: Performance of matching and sorting (n=157): time 0.02331/8.218, allocations: 6.217 MB / 2.889 GB, free: 122.4 MB / 0.9792 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.284e-05/8.218, allocations: 148.9 kB / 2.889 GB, free: 122.2 MB / 0.9792 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007678/8.226, allocations: 3.958 MB / 2.893 GB, free: 121.9 MB / 0.9792 GB Notification: Performance of collectPreVariables (initialization): time 0.0008711/8.227, allocations: 29.67 kB / 2.893 GB, free: 121.9 MB / 0.9792 GB Notification: Performance of collectInitialEqns (initialization): time 0.002517/8.229, allocations: 2.441 MB / 2.896 GB, free: 121.1 MB / 0.9792 GB Notification: Performance of collectInitialBindings (initialization): time 0.001111/8.23, allocations: 0.5409 MB / 2.896 GB, free: 120.7 MB / 0.9792 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001661/8.231, allocations: 0 / 2.896 GB, free: 120.7 MB / 0.9792 GB Notification: Performance of setup shared object (initialization): time 0.0001865/8.231, allocations: 425.5 kB / 2.897 GB, free: 120.4 MB / 0.9792 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00196/8.233, allocations: 1.452 MB / 2.898 GB, free: 120.4 MB / 0.9792 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002671/8.235, allocations: 2.721 MB / 2.901 GB, free: 118.8 MB / 0.9792 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006904/8.242, allocations: 2.513 MB / 2.903 GB, free: 118.8 MB / 0.9792 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.374e-05/8.242, allocations: 7.531 kB / 2.903 GB, free: 118.8 MB / 0.9792 GB Notification: Performance of matching and sorting (n=340) (initialization): time 0.03697/8.279, allocations: 8.394 MB / 2.911 GB, free: 118.4 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 0.004906/8.284, allocations: 15.03 MB / 2.926 GB, free: 102.7 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001169/8.284, allocations: 38.92 kB / 2.926 GB, free: 102.7 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03362/8.318, allocations: 6.206 MB / 2.932 GB, free: 102.6 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003647/8.322, allocations: 0.6902 MB / 2.933 GB, free: 102.6 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01129/8.333, allocations: 5.532 MB / 2.938 GB, free: 101 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006413/8.34, allocations: 297.1 kB / 2.938 GB, free: 101 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006832/8.34, allocations: 162.3 kB / 2.939 GB, free: 101 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 1.614e-05/8.34, allocations: 3.969 kB / 2.939 GB, free: 101 MB / 0.9792 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03356/8.374, allocations: 7.693 MB / 2.946 GB, free: 100.9 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001411/8.374, allocations: 41.44 kB / 2.946 GB, free: 100.9 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03255/8.407, allocations: 6.149 MB / 2.952 GB, free: 100.8 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003235/8.41, allocations: 0.686 MB / 2.953 GB, free: 100.8 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01384/8.424, allocations: 8.238 MB / 2.961 GB, free: 97.55 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005932/8.43, allocations: 283.8 kB / 2.961 GB, free: 97.5 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000642/8.43, allocations: 149.4 kB / 2.961 GB, free: 97.5 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.001047/8.432, allocations: 206.9 kB / 2.961 GB, free: 97.36 MB / 0.9792 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02174/8.453, allocations: 6.042 MB / 2.967 GB, free: 95.78 MB / 0.9792 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003158/8.457, allocations: 437.5 kB / 2.968 GB, free: 95.55 MB / 0.9792 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01741/8.474, allocations: 5.706 MB / 2.973 GB, free: 93.85 MB / 0.9792 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.131e-05/8.474, allocations: 19.09 kB / 2.973 GB, free: 93.85 MB / 0.9792 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.588e-06/8.474, allocations: 3.953 kB / 2.973 GB, free: 93.85 MB / 0.9792 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01612/8.49, allocations: 6.868 MB / 2.98 GB, free: 90.79 MB / 0.9792 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03536/8.526, allocations: 13.1 MB / 2.993 GB, free: 85.93 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.069e-05/8.526, allocations: 0 / 2.993 GB, free: 85.93 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002555/8.528, allocations: 425 kB / 2.993 GB, free: 85.9 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004564/8.533, allocations: 2.446 MB / 2.996 GB, free: 85.36 MB / 0.9792 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004526/8.533, allocations: 31.67 kB / 2.996 GB, free: 85.34 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009197/8.543, allocations: 4.807 MB / 3 GB, free: 82.18 MB / 0.9792 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.008e-05/8.543, allocations: 0 / 3 GB, free: 82.18 MB / 0.9792 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02722/8.57, allocations: 10.01 MB / 3.01 GB, free: 72.26 MB / 0.9792 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004271/8.574, allocations: 1.069 MB / 3.011 GB, free: 71.17 MB / 0.9792 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002008/8.576, allocations: 4 kB / 3.011 GB, free: 71.16 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004983/8.581, allocations: 271.1 kB / 3.011 GB, free: 70.9 MB / 0.9792 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003239/8.582, allocations: 105.1 kB / 3.012 GB, free: 70.8 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003386/8.582, allocations: 87.92 kB / 3.012 GB, free: 70.71 MB / 0.9792 GB Notification: Performance of sorting global known variables: time 0.005124/8.587, allocations: 2.978 MB / 3.015 GB, free: 67.74 MB / 0.9792 GB Notification: Performance of sort global known variables: time 1.61e-07/8.587, allocations: 0 / 3.015 GB, free: 67.74 MB / 0.9792 GB Notification: Performance of remove unused functions: time 0.01403/8.601, allocations: 2.74 MB / 3.017 GB, free: 65 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.03069/8.632, allocations: 11.64 MB / 3.029 GB, free: 53.43 MB / 0.9792 GB Notification: Performance of simCode: created initialization part: time 0.01589/8.648, allocations: 7.103 MB / 3.036 GB, free: 46.29 MB / 0.9792 GB Notification: Performance of simCode: created event and clocks part: time 1.447e-05/8.648, allocations: 1.016 kB / 3.036 GB, free: 46.29 MB / 0.9792 GB Notification: Performance of simCode: created simulation system equations: time 0.005308/8.653, allocations: 2.383 MB / 3.038 GB, free: 43.9 MB / 0.9792 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01439/8.668, allocations: 2.408 MB / 3.04 GB, free: 41.58 MB / 0.9792 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02334/8.691, allocations: 8.828 MB / 3.049 GB, free: 32.7 MB / 0.9792 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002618/8.694, allocations: 3.317 MB / 3.052 GB, free: 29.36 MB / 0.9792 GB Notification: Performance of simCode: alias equations: time 0.01045/8.704, allocations: 2.781 MB / 3.055 GB, free: 26.69 MB / 0.9792 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003288/8.707, allocations: 1.909 MB / 3.057 GB, free: 24.78 MB / 0.9792 GB Notification: Performance of SimCode: time 1.603e-06/8.707, allocations: 0 / 3.057 GB, free: 24.78 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.057/9.764, allocations: 145.8 MB / 3.199 GB, free: 130.6 MB / 0.9792 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002029/9.764, allocations: 169.8 kB / 3.199 GB, free: 130.4 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.884/17.65, allocations: 0 / 3.199 GB, free: 130.4 MB / 0.9792 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)