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: translateModel(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal") translateModel(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.672/1.672, allocations: 289.9 MB / 297.4 MB, free: 6.422 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.001293/0.001293, allocations: 176.9 kB / 366.7 MB, free: 1.656 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.68/1.68, allocations: 205.2 MB / 0.626 GB, free: 7.172 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.0008629/0.000863, allocations: 87.83 kB / 0.74 GB, free: 39.55 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.587e-05/1.599e-05, allocations: 4 kB / 0.8597 GB, free: 13.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6794/0.6794, allocations: 116.3 MB / 0.9732 GB, free: 76.32 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.147/1.827, allocations: 420.6 MB / 1.384 GB, free: 136 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000259/1.827, allocations: 86.83 kB / 1.384 GB, free: 136 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 6.12/7.947, allocations: 1.441 GB / 2.825 GB, free: 122.1 MB / 0.9636 GB Notification: Performance of FrontEnd: time 2.986e-06/7.947, allocations: 1.844 kB / 2.825 GB, free: 122.1 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 0.001454/7.948, allocations: 155.2 kB / 2.825 GB, free: 122.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.0178/7.966, allocations: 4.582 MB / 2.83 GB, free: 120.4 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 5.214e-05/7.966, allocations: 9.062 kB / 2.83 GB, free: 120.4 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005797/7.972, allocations: 0.8028 MB / 2.831 GB, free: 120 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02058/7.993, allocations: 6.756 MB / 2.837 GB, free: 119.2 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003975/7.993, allocations: 109.7 kB / 2.837 GB, free: 119.2 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002059/7.995, allocations: 203.8 kB / 2.837 GB, free: 119.2 MB / 0.9636 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01263/8.008, allocations: 4.745 MB / 2.842 GB, free: 119.2 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01675/8.025, allocations: 4.808 MB / 2.847 GB, free: 118.5 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002615/8.025, allocations: 10.22 kB / 2.847 GB, free: 118.5 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001545/8.027, allocations: 13.28 kB / 2.847 GB, free: 118.5 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.668e-05/8.027, allocations: 87.39 kB / 2.847 GB, free: 118.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.04153/8.068, allocations: 22.06 MB / 2.868 GB, free: 108.6 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004476/8.073, allocations: 2.66 MB / 2.871 GB, free: 108.6 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00232/8.075, allocations: 1.7 MB / 2.873 GB, free: 108.6 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01449/8.09, allocations: 6.898 MB / 2.879 GB, free: 106.3 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002635/8.092, allocations: 1.737 MB / 2.881 GB, free: 106.2 MB / 0.9636 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.007276/8.1, allocations: 1.952 MB / 2.883 GB, free: 106.1 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=157): time 1.938e-05/8.1, allocations: 2.25 kB / 2.883 GB, free: 106.1 MB / 0.9636 GB Notification: Performance of matching and sorting (n=157): time 0.02454/8.124, allocations: 6.216 MB / 2.889 GB, free: 105.8 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.925e-05/8.124, allocations: 151.4 kB / 2.889 GB, free: 105.6 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01103/8.135, allocations: 3.957 MB / 2.893 GB, free: 105.3 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 0.0009073/8.136, allocations: 33.27 kB / 2.893 GB, free: 105.3 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 0.003573/8.14, allocations: 2.436 MB / 2.896 GB, free: 104.5 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 0.001342/8.141, allocations: 0.5464 MB / 2.896 GB, free: 104.1 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006121/8.142, allocations: 0 / 2.896 GB, free: 104.1 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 0.0002852/8.142, allocations: 418.5 kB / 2.896 GB, free: 103.8 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002637/8.145, allocations: 1.453 MB / 2.898 GB, free: 103.8 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00357/8.149, allocations: 2.726 MB / 2.901 GB, free: 102.2 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007588/8.156, allocations: 2.509 MB / 2.903 GB, free: 102.2 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.838e-05/8.156, allocations: 10.62 kB / 2.903 GB, free: 102.2 MB / 0.9636 GB Notification: Performance of matching and sorting (n=340) (initialization): time 0.03836/8.195, allocations: 8.394 MB / 2.911 GB, free: 101.8 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 0.004295/8.199, allocations: 15.04 MB / 2.926 GB, free: 86.05 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001501/8.199, allocations: 34.12 kB / 2.926 GB, free: 86.05 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03246/8.232, allocations: 6.208 MB / 2.932 GB, free: 86.02 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003256/8.235, allocations: 0.6944 MB / 2.933 GB, free: 86.02 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01102/8.246, allocations: 5.527 MB / 2.938 GB, free: 84.43 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006524/8.253, allocations: 299.7 kB / 2.938 GB, free: 84.4 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009791/8.254, allocations: 157.1 kB / 2.938 GB, free: 84.4 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.707e-05/8.254, allocations: 6.312 kB / 2.938 GB, free: 84.4 MB / 0.9636 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03474/8.288, allocations: 7.7 MB / 2.946 GB, free: 84.27 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001909/8.289, allocations: 31.84 kB / 2.946 GB, free: 84.27 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03193/8.321, allocations: 6.157 MB / 2.952 GB, free: 84.18 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003274/8.324, allocations: 0.6881 MB / 2.953 GB, free: 84.17 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0146/8.338, allocations: 8.236 MB / 2.961 GB, free: 80.94 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007598/8.346, allocations: 281.5 kB / 2.961 GB, free: 80.89 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001548/8.348, allocations: 152.1 kB / 2.961 GB, free: 80.89 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.002405/8.35, allocations: 206.6 kB / 2.961 GB, free: 80.75 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003083/8.353, allocations: 432.8 kB / 2.962 GB, free: 80.53 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01862/8.372, allocations: 5.726 MB / 2.967 GB, free: 79.17 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.305e-05/8.372, allocations: 17.34 kB / 2.967 GB, free: 79.17 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.658e-06/8.372, allocations: 7.953 kB / 2.967 GB, free: 79.16 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01706/8.389, allocations: 6.862 MB / 2.974 GB, free: 76.1 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04086/8.43, allocations: 13.09 MB / 2.987 GB, free: 71.25 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.153e-05/8.43, allocations: 6.453 kB / 2.987 GB, free: 71.24 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002949/8.433, allocations: 425 kB / 2.987 GB, free: 71.21 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00503/8.438, allocations: 2.442 MB / 2.99 GB, free: 70.84 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005986/8.439, allocations: 29.12 kB / 2.99 GB, free: 70.83 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01015/8.449, allocations: 4.814 MB / 2.994 GB, free: 68.38 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.066e-05/8.449, allocations: 0 / 2.994 GB, free: 68.38 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02923/8.478, allocations: 10.01 MB / 3.004 GB, free: 62.73 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004544/8.483, allocations: 1.069 MB / 3.005 GB, free: 61.64 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002306/8.485, allocations: 4 kB / 3.005 GB, free: 61.64 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005695/8.491, allocations: 267.2 kB / 3.005 GB, free: 61.38 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005976/8.492, allocations: 109 kB / 3.006 GB, free: 61.27 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005738/8.492, allocations: 87.92 kB / 3.006 GB, free: 61.18 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 0.007346/8.5, allocations: 2.978 MB / 3.009 GB, free: 58.21 MB / 0.9636 GB Notification: Performance of sort global known variables: time 8.42e-07/8.5, allocations: 0 / 3.009 GB, free: 58.21 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.01607/8.516, allocations: 2.742 MB / 3.011 GB, free: 55.47 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.003696/8.519, allocations: 1.198 MB / 3.012 GB, free: 54.42 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.01685/8.536, allocations: 7.117 MB / 3.019 GB, free: 47.26 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.63e-05/8.536, allocations: 7.703 kB / 3.019 GB, free: 47.25 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.005618/8.542, allocations: 2.371 MB / 3.022 GB, free: 44.88 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01607/8.558, allocations: 2.398 MB / 3.024 GB, free: 42.58 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02112/8.579, allocations: 7.546 MB / 3.031 GB, free: 35 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005126/8.585, allocations: 3.313 MB / 3.035 GB, free: 47.65 MB / 0.9792 GB Notification: Performance of simCode: alias equations: time 0.01036/8.595, allocations: 2.794 MB / 3.037 GB, free: 44.97 MB / 0.9792 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009944/8.596, allocations: 251.3 kB / 3.038 GB, free: 44.73 MB / 0.9792 GB Notification: Performance of SimCode: time 2.394e-06/8.596, allocations: 0 / 3.038 GB, free: 44.73 MB / 0.9792 GB Notification: Performance of Templates: time 0.9191/9.515, allocations: 105.5 MB / 3.141 GB, free: 134.4 MB / 0.9792 GB make -j1 -f Buildings_8_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.makefile (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 & ./Buildings_8_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1)