Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.562/2.562, allocations: 287.3 MB / 302.3 MB, free: 8.246 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.001557/0.001556, allocations: 186.8 kB / 370.8 MB, free: 10.84 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.074/2.074, allocations: 205.4 MB / 0.6295 GB, free: 10.6 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001166/0.001166, allocations: 92.95 kB / 0.7428 GB, free: 6.602 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0007433/0.0007433, allocations: 12.47 kB / 0.8657 GB, free: 140.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2587/0.2595, allocations: 115.3 MB / 0.9783 GB, free: 28.31 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.362/1.622, allocations: 420.2 MB / 1.389 GB, free: 9.445 MB / 0.9167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000279/1.622, allocations: 89.83 kB / 1.389 GB, free: 9.398 MB / 0.9167 GB Notification: Performance of FrontEnd - DAE generated: time 8.154/9.776, allocations: 1.454 GB / 2.843 GB, free: 17.68 MB / 0.9636 GB Notification: Performance of FrontEnd: time 2.515e-06/9.776, allocations: 0 / 2.843 GB, free: 17.68 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 0.001057/9.777, allocations: 147.8 kB / 2.843 GB, free: 17.53 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.02632/9.804, allocations: 5.899 MB / 2.849 GB, free: 11.54 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 5.248e-05/9.804, allocations: 12.03 kB / 2.849 GB, free: 11.53 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002343/9.806, allocations: 471.3 kB / 2.849 GB, free: 11.05 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006941/9.813, allocations: 0.8018 MB / 2.85 GB, free: 10.25 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02639/9.839, allocations: 6.811 MB / 2.857 GB, free: 3.355 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004185/9.84, allocations: 258.5 kB / 2.857 GB, free: 3.102 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001603/9.842, allocations: 352 kB / 2.857 GB, free: 2.758 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01748/9.859, allocations: 5.393 MB / 2.863 GB, free: 13.11 MB / 0.9792 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001664/9.859, allocations: 11.88 kB / 2.863 GB, free: 13.1 MB / 0.9792 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001313/9.861, allocations: 144 kB / 2.863 GB, free: 12.96 MB / 0.9792 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001088/9.861, allocations: 84 kB / 2.863 GB, free: 12.88 MB / 0.9792 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01727/9.878, allocations: 5.062 MB / 2.868 GB, free: 7.801 MB / 0.9792 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.8253/10.7, allocations: 22.72 MB / 2.89 GB, free: 135.7 MB / 0.9792 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009586/10.71, allocations: 2.724 MB / 2.893 GB, free: 135.6 MB / 0.9792 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02315/10.74, allocations: 7.026 MB / 2.899 GB, free: 133.5 MB / 0.9792 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005732/10.74, allocations: 1.841 MB / 2.901 GB, free: 133.5 MB / 0.9792 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.01184/10.75, allocations: 2.027 MB / 2.903 GB, free: 133.5 MB / 0.9792 GB Notification: Performance of pre-optimization done (n=157): time 1.759e-05/10.75, allocations: 0 / 2.903 GB, free: 133.5 MB / 0.9792 GB Notification: Performance of matching and sorting (n=157): time 0.03129/10.79, allocations: 6.627 MB / 2.91 GB, free: 133 MB / 0.9792 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.315e-05/10.79, allocations: 156.5 kB / 2.91 GB, free: 132.8 MB / 0.9792 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01212/10.8, allocations: 4.548 MB / 2.914 GB, free: 132.5 MB / 0.9792 GB Notification: Performance of collectPreVariables (initialization): time 0.000899/10.8, allocations: 76.2 kB / 2.914 GB, free: 132.5 MB / 0.9792 GB Notification: Performance of collectInitialEqns (initialization): time 0.003675/10.8, allocations: 2.447 MB / 2.917 GB, free: 131.9 MB / 0.9792 GB Notification: Performance of collectInitialBindings (initialization): time 0.001298/10.8, allocations: 0.5573 MB / 2.917 GB, free: 131.6 MB / 0.9792 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004553/10.8, allocations: 53.38 kB / 2.917 GB, free: 131.6 MB / 0.9792 GB Notification: Performance of setup shared object (initialization): time 0.0002161/10.8, allocations: 409.8 kB / 2.918 GB, free: 131.3 MB / 0.9792 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00431/10.81, allocations: 1.531 MB / 2.919 GB, free: 131.3 MB / 0.9792 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006076/10.81, allocations: 2.827 MB / 2.922 GB, free: 129.7 MB / 0.9792 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006058/10.82, allocations: 1.984 MB / 2.924 GB, free: 129.7 MB / 0.9792 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.116e-05/10.82, allocations: 11.06 kB / 2.924 GB, free: 129.7 MB / 0.9792 GB Notification: Performance of matching and sorting (n=340) (initialization): time 0.01932/10.84, allocations: 5.561 MB / 2.929 GB, free: 129.3 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 0.00385/10.84, allocations: 15.28 MB / 2.944 GB, free: 112.9 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001909/10.84, allocations: 34.89 kB / 2.944 GB, free: 112.9 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1419/10.99, allocations: 11.46 MB / 2.956 GB, free: 112.9 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005607/10.99, allocations: 0.7006 MB / 2.956 GB, free: 112.9 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01353/11.01, allocations: 4.722 MB / 2.961 GB, free: 111.3 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008782/11.01, allocations: 363.1 kB / 2.961 GB, free: 111.3 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001068/11.02, allocations: 156 kB / 2.961 GB, free: 111.3 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 1.734e-05/11.02, allocations: 3.875 kB / 2.961 GB, free: 111.3 MB / 0.9792 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01497/11.03, allocations: 5.038 MB / 2.966 GB, free: 111.2 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001396/11.03, allocations: 33.62 kB / 2.966 GB, free: 111.2 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1382/11.17, allocations: 11.38 MB / 2.977 GB, free: 111.2 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005458/11.17, allocations: 0.6901 MB / 2.978 GB, free: 111.2 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01847/11.19, allocations: 7.788 MB / 2.986 GB, free: 107.9 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007957/11.2, allocations: 350.8 kB / 2.986 GB, free: 107.8 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000965/11.2, allocations: 152.4 kB / 2.986 GB, free: 107.8 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 () * Number of clocked 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.005058/11.21, allocations: 1.549 MB / 2.988 GB, free: 107.6 MB / 0.9792 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002117/11.21, allocations: 464.6 kB / 2.988 GB, free: 107.4 MB / 0.9792 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01435/11.22, allocations: 4.593 MB / 2.993 GB, free: 107.2 MB / 0.9792 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.921e-05/11.22, allocations: 18.34 kB / 2.993 GB, free: 107.2 MB / 0.9792 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/11.22, allocations: 0 / 2.993 GB, free: 107.2 MB / 0.9792 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02393/11.25, allocations: 6.495 MB / 2.999 GB, free: 105.8 MB / 0.9792 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05254/11.3, allocations: 13.16 MB / 3.012 GB, free: 104.5 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.803e-05/11.3, allocations: 0 / 3.012 GB, free: 104.5 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004518/11.3, allocations: 420.8 kB / 3.012 GB, free: 104.5 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.1356/11.44, allocations: 11.64 MB / 3.024 GB, free: 103.7 MB / 0.9792 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006192/11.44, allocations: 52.34 kB / 3.024 GB, free: 103.7 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01113/11.45, allocations: 4.121 MB / 3.028 GB, free: 102.1 MB / 0.9792 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.468e-06/11.45, allocations: 2.188 kB / 3.028 GB, free: 102.1 MB / 0.9792 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03609/11.49, allocations: 9.179 MB / 3.037 GB, free: 101.5 MB / 0.9792 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005012/11.49, allocations: 1.11 MB / 3.038 GB, free: 101.2 MB / 0.9792 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002235/11.5, allocations: 26.72 kB / 3.038 GB, free: 101.2 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007816/11.5, allocations: 295.7 kB / 3.038 GB, free: 101.2 MB / 0.9792 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008122/11.5, allocations: 115.3 kB / 3.038 GB, free: 101.1 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004857/11.5, allocations: 82.16 kB / 3.038 GB, free: 101.1 MB / 0.9792 GB Notification: Performance of sorting global known variables: time 0.009576/11.51, allocations: 3.519 MB / 3.042 GB, free: 101 MB / 0.9792 GB Notification: Performance of sort global known variables: time 8.82e-07/11.51, allocations: 0 / 3.042 GB, free: 101 MB / 0.9792 GB Notification: Performance of remove unused functions: time 0.01622/11.53, allocations: 2.818 MB / 3.044 GB, free: 100.8 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) * Number of clocked states: 0 () * 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.03971/11.57, allocations: 10.86 MB / 3.055 GB, free: 99.42 MB / 0.9792 GB Notification: Performance of simCode: created initialization part: time 0.02878/11.6, allocations: 7.368 MB / 3.062 GB, free: 98.86 MB / 0.9792 GB Notification: Performance of simCode: created event and clocks part: time 1.395e-05/11.6, allocations: 0.8906 kB / 3.062 GB, free: 98.86 MB / 0.9792 GB Notification: Performance of simCode: created simulation system equations: time 0.01029/11.61, allocations: 2.487 MB / 3.065 GB, free: 98.82 MB / 0.9792 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02303/11.63, allocations: 2.713 MB / 3.067 GB, free: 98.67 MB / 0.9792 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04353/11.68, allocations: 40.51 MB / 3.107 GB, free: 65.05 MB / 0.9792 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005259/11.68, allocations: 3.306 MB / 3.11 GB, free: 64.21 MB / 0.9792 GB Notification: Performance of simCode: alias equations: time 0.01096/11.69, allocations: 1.685 MB / 3.112 GB, free: 64.01 MB / 0.9792 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005805/11.7, allocations: 2.012 MB / 3.114 GB, free: 64 MB / 0.9792 GB Notification: Performance of SimCode: time 1.513e-06/11.7, allocations: 0 / 3.114 GB, free: 64 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.141/12.84, allocations: 158.4 MB / 3.268 GB, free: 164.3 MB / 1.01 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002741/12.84, allocations: 260.8 kB / 3.269 GB, free: 164 MB / 1.01 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.929/21.77, allocations: 2.5 kB / 3.269 GB, free: 164 MB / 1.01 GB (rm -f Buildings_8.0.0_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal_fmu --startTime=0 --stopTime=10000 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal.fmu > Buildings_8.0.0_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1)