Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Examples.ResistanceVolumeFlowReversal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Fluid.Examples.ResistanceVolumeFlowReversal,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Examples_ResistanceVolumeFlowReversal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Examples.ResistanceVolumeFlowReversal,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Examples_ResistanceVolumeFlowReversal",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8211/0.8211, allocations: 143.3 MB / 158.3 MB, free: 5.82 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001456/0.001456, allocations: 181 kB / 191.5 MB, free: 5.789 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.6/1.6, allocations: 223.2 MB / 447.7 MB, free: 4.805 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009856/0.0009857, allocations: 92.33 kB / 0.5187 GB, free: 1.172 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00182/0.00182, allocations: 280.4 kB / 0.6005 GB, free: 48.75 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004619/0.000462, allocations: 11.94 kB / 0.6929 GB, free: 59.55 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2099/0.2103, allocations: 82.81 MB / 0.7738 GB, free: 13.76 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9209/1.131, allocations: 377.9 MB / 1.143 GB, free: 7.836 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002959/1.132, allocations: 90.7 kB / 1.143 GB, free: 7.789 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 6.365/7.497, allocations: 1.48 GB / 2.623 GB, free: 83.73 MB / 0.7292 GB Notification: Performance of FrontEnd: time 3.066e-06/7.497, allocations: 1.812 kB / 2.623 GB, free: 83.73 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 0.001049/7.498, allocations: 148.5 kB / 2.623 GB, free: 83.7 MB / 0.7292 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 834 * Number of variables: 834 Notification: Performance of Generate backend data structure: time 0.02108/7.519, allocations: 5.869 MB / 2.629 GB, free: 81.52 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 5.137e-05/7.519, allocations: 7.844 kB / 2.629 GB, free: 81.52 MB / 0.7292 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002322/7.521, allocations: 464.2 kB / 2.629 GB, free: 81.46 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005198/7.526, allocations: 0.8071 MB / 2.63 GB, free: 81.16 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01949/7.546, allocations: 6.765 MB / 2.637 GB, free: 80.32 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003522/7.546, allocations: 262.3 kB / 2.637 GB, free: 80.31 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001351/7.548, allocations: 347.6 kB / 2.637 GB, free: 80.31 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01098/7.559, allocations: 5.35 MB / 2.643 GB, free: 79.63 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.946e-05/7.559, allocations: 10.59 kB / 2.643 GB, free: 79.63 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006925/7.56, allocations: 142.4 kB / 2.643 GB, free: 79.63 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001329/7.56, allocations: 121.3 kB / 2.643 GB, free: 79.62 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01167/7.571, allocations: 5.067 MB / 2.648 GB, free: 79.59 MB / 0.7292 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.04821/7.62, allocations: 22.8 MB / 2.67 GB, free: 69.65 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005231/7.625, allocations: 2.573 MB / 2.673 GB, free: 69.6 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01788/7.643, allocations: 7.143 MB / 2.68 GB, free: 67.32 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003603/7.647, allocations: 1.84 MB / 2.681 GB, free: 67.25 MB / 0.7292 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.007803/7.654, allocations: 2.057 MB / 2.683 GB, free: 67.12 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=158): time 1.799e-05/7.654, allocations: 0 / 2.683 GB, free: 67.12 MB / 0.7292 GB Notification: Performance of matching and sorting (n=158): time 0.02062/7.675, allocations: 7.146 MB / 2.69 GB, free: 66.49 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.832e-05/7.675, allocations: 68.75 kB / 2.69 GB, free: 66.42 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01234/7.688, allocations: 4.542 MB / 2.695 GB, free: 66.1 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 0.000861/7.688, allocations: 67.02 kB / 2.695 GB, free: 66.07 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.003786/7.692, allocations: 2.425 MB / 2.697 GB, free: 65.29 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 0.001378/7.694, allocations: 0.5626 MB / 2.698 GB, free: 64.93 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006196/7.694, allocations: 51.88 kB / 2.698 GB, free: 64.93 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0002986/7.695, allocations: 410.5 kB / 2.698 GB, free: 64.63 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003168/7.698, allocations: 1.514 MB / 2.7 GB, free: 64.62 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00394/7.702, allocations: 2.801 MB / 2.702 GB, free: 63.07 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00368/7.705, allocations: 1.973 MB / 2.704 GB, free: 63 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.808e-05/7.706, allocations: 10.41 kB / 2.704 GB, free: 63 MB / 0.7292 GB Notification: Performance of matching and sorting (n=336) (initialization): time 0.01311/7.719, allocations: 5.528 MB / 2.71 GB, free: 62.62 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 0.00584/7.725, allocations: 15.23 MB / 2.725 GB, free: 46.29 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001204/7.725, allocations: 37.11 kB / 2.725 GB, free: 46.29 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06558/7.79, allocations: 11.46 MB / 2.736 GB, free: 45.62 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003428/7.794, allocations: 0.6478 MB / 2.737 GB, free: 45.62 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009672/7.804, allocations: 4.719 MB / 2.741 GB, free: 60.02 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007005/7.811, allocations: 369 kB / 2.741 GB, free: 59.97 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009386/7.812, allocations: 154.8 kB / 2.742 GB, free: 59.97 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 2.097e-05/7.812, allocations: 6.406 kB / 2.742 GB, free: 59.97 MB / 0.7448 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0106/7.822, allocations: 5.006 MB / 2.747 GB, free: 59.82 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001538/7.822, allocations: 30.22 kB / 2.747 GB, free: 59.82 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06661/7.889, allocations: 11.39 MB / 2.758 GB, free: 59.06 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00354/7.893, allocations: 0.6388 MB / 2.758 GB, free: 59.04 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01276/7.905, allocations: 7.791 MB / 2.766 GB, free: 55.69 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006645/7.912, allocations: 356.4 kB / 2.766 GB, free: 55.63 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009404/7.913, allocations: 150.9 kB / 2.766 GB, free: 55.63 MB / 0.7448 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 (285): * Single equations (assignments): 280 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * 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.004789/7.918, allocations: 1.54 MB / 2.768 GB, free: 55.39 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002268/7.92, allocations: 458.9 kB / 2.768 GB, free: 55.15 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0103/7.931, allocations: 4.603 MB / 2.773 GB, free: 54.79 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.621e-05/7.931, allocations: 20 kB / 2.773 GB, free: 54.77 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.897e-06/7.931, allocations: 0 / 2.773 GB, free: 54.77 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01124/7.942, allocations: 6.216 MB / 2.779 GB, free: 49.97 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03534/7.977, allocations: 12.64 MB / 2.791 GB, free: 39.99 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-05/7.977, allocations: 4.062 kB / 2.791 GB, free: 39.98 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002672/7.98, allocations: 372.1 kB / 2.792 GB, free: 39.7 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06583/8.046, allocations: 11.64 MB / 2.803 GB, free: 31.32 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000605/8.047, allocations: 50.78 kB / 2.803 GB, free: 31.29 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006489/8.053, allocations: 4.106 MB / 2.807 GB, free: 27.62 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.661e-06/8.053, allocations: 6.406 kB / 2.807 GB, free: 27.62 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02246/8.076, allocations: 9.333 MB / 2.816 GB, free: 18.25 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006262/8.082, allocations: 1.096 MB / 2.817 GB, free: 17.13 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002642/8.085, allocations: 35.98 kB / 2.817 GB, free: 17.1 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005692/8.09, allocations: 307 kB / 2.818 GB, free: 16.8 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005483/8.091, allocations: 105.2 kB / 2.818 GB, free: 16.7 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005228/8.092, allocations: 83.92 kB / 2.818 GB, free: 16.61 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.008289/8.1, allocations: 3.5 MB / 2.821 GB, free: 13.13 MB / 0.7448 GB Notification: Performance of sort global known variables: time 3.31e-07/8.1, allocations: 0 / 2.821 GB, free: 13.13 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.01597/8.116, allocations: 2.776 MB / 2.824 GB, free: 10.35 MB / 0.7448 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.s[1],val.filter.s[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 (130): * Single equations (assignments): 121 * 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.5873/8.703, allocations: 10.96 MB / 2.835 GB, free: 108 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.01797/8.721, allocations: 7.282 MB / 2.842 GB, free: 107.6 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.329e-05/8.721, allocations: 3.469 kB / 2.842 GB, free: 107.6 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.006433/8.728, allocations: 2.479 MB / 2.844 GB, free: 107.6 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01696/8.745, allocations: 2.693 MB / 2.847 GB, free: 107.6 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04831/8.793, allocations: 40.59 MB / 2.886 GB, free: 74.17 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006359/8.799, allocations: 3.301 MB / 2.89 GB, free: 73.39 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.01059/8.81, allocations: 1.729 MB / 2.891 GB, free: 73.35 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005655/8.816, allocations: 1.998 MB / 2.893 GB, free: 73.35 MB / 0.7448 GB Notification: Performance of SimCode: time 1.983e-06/8.816, allocations: 0 / 2.893 GB, free: 73.35 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2784/9.094, allocations: 156.7 MB / 3.046 GB, free: 30.25 MB / 0.7448 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002284/9.094, allocations: 267 kB / 3.047 GB, free: 29.89 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.725/16.82, allocations: 0 / 3.047 GB, free: 29.89 MB / 0.7448 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Examples.ResistanceVolumeFlowReversal.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Examples.ResistanceVolumeFlowReversal.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Examples_ResistanceVolumeFlowReversal_fmu --startTime=0 --stopTime=10000 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Examples_ResistanceVolumeFlowReversal.fmu > BuildingSystems_BuildingSystems.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1)