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.6918/0.6918, allocations: 141.7 MB / 154.3 MB, free: 15.48 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009448/0.0009444, allocations: 186.4 kB / 187.3 MB, free: 11.89 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.213/1.213, allocations: 221.3 MB / 441.4 MB, free: 4.625 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.0008309/0.0008309, allocations: 95.55 kB / 0.5124 GB, free: 24.18 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001627/0.001627, allocations: 278.9 kB / 0.5939 GB, free: 7.969 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 3.081e-05/3.083e-05, allocations: 4 kB / 0.6835 GB, free: 12.16 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3651/0.3651, allocations: 82.76 MB / 0.7643 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.648/1.013, allocations: 377.9 MB / 1.133 GB, free: 11.63 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002322/1.013, allocations: 83.94 kB / 1.133 GB, free: 11.59 MB / 0.6667 GB Notification: Performance of FrontEnd - DAE generated: time 4.821/5.834, allocations: 1.475 GB / 2.608 GB, free: 88.97 MB / 0.7605 GB Notification: Performance of FrontEnd: time 1.122e-06/5.834, allocations: 3.906 kB / 2.608 GB, free: 88.97 MB / 0.7605 GB Notification: Performance of Transformations before backend: time 0.0004641/5.835, allocations: 149.1 kB / 2.608 GB, free: 88.95 MB / 0.7605 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.007483/5.842, allocations: 4.54 MB / 2.613 GB, free: 87.38 MB / 0.7605 GB Notification: Performance of prepare preOptimizeDAE: time 3.826e-05/5.842, allocations: 11.59 kB / 2.613 GB, free: 87.38 MB / 0.7605 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005138/5.843, allocations: 459.9 kB / 2.613 GB, free: 87.32 MB / 0.7605 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002571/5.846, allocations: 0.8017 MB / 2.614 GB, free: 87.02 MB / 0.7605 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01113/5.857, allocations: 6.705 MB / 2.621 GB, free: 86.18 MB / 0.7605 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001341/5.857, allocations: 265 kB / 2.621 GB, free: 86.17 MB / 0.7605 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004929/5.857, allocations: 349.1 kB / 2.621 GB, free: 86.17 MB / 0.7605 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006319/5.864, allocations: 5.249 MB / 2.626 GB, free: 85.49 MB / 0.7605 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.069e-05/5.864, allocations: 10 kB / 2.626 GB, free: 85.49 MB / 0.7605 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003677/5.864, allocations: 146.8 kB / 2.627 GB, free: 85.49 MB / 0.7605 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.316e-05/5.864, allocations: 116.2 kB / 2.627 GB, free: 85.48 MB / 0.7605 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00573/5.87, allocations: 4.922 MB / 2.631 GB, free: 85.45 MB / 0.7605 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.0235/5.893, allocations: 22.77 MB / 2.654 GB, free: 75.57 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002659/5.896, allocations: 2.482 MB / 2.656 GB, free: 75.51 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001837/5.898, allocations: 1.776 MB / 2.658 GB, free: 75.49 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009024/5.907, allocations: 7.135 MB / 2.665 GB, free: 73.23 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001977/5.909, allocations: 1.789 MB / 2.667 GB, free: 73.16 MB / 0.7605 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.004908/5.914, allocations: 2.049 MB / 2.669 GB, free: 73.03 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=158): time 3.697e-06/5.914, allocations: 0 / 2.669 GB, free: 73.03 MB / 0.7605 GB Notification: Performance of matching and sorting (n=158): time 0.005124/5.919, allocations: 4.059 MB / 2.672 GB, free: 72.69 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.277e-05/5.919, allocations: 68.19 kB / 2.673 GB, free: 72.63 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005962/5.925, allocations: 4.489 MB / 2.677 GB, free: 72.28 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 0.0002955/5.925, allocations: 71.11 kB / 2.677 GB, free: 72.25 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.001501/5.927, allocations: 2.422 MB / 2.679 GB, free: 71.48 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004318/5.927, allocations: 0.5674 MB / 2.68 GB, free: 71.12 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001473/5.927, allocations: 52.25 kB / 2.68 GB, free: 71.12 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0001131/5.928, allocations: 415.8 kB / 2.68 GB, free: 70.82 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001693/5.929, allocations: 1.458 MB / 2.682 GB, free: 70.81 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002069/5.931, allocations: 2.739 MB / 2.684 GB, free: 69.25 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002059/5.933, allocations: 1.924 MB / 2.686 GB, free: 69.19 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.416e-05/5.933, allocations: 12.56 kB / 2.686 GB, free: 69.19 MB / 0.7605 GB Notification: Performance of matching and sorting (n=336) (initialization): time 0.02905/5.963, allocations: 8.449 MB / 2.695 GB, free: 68.78 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 0.002285/5.965, allocations: 15.23 MB / 2.709 GB, free: 52.45 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.562e-05/5.965, allocations: 32.25 kB / 2.71 GB, free: 52.45 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.08627/6.051, allocations: 15.4 MB / 2.725 GB, free: 52.09 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002639/6.054, allocations: 0.6469 MB / 2.725 GB, free: 52.09 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006522/6.06, allocations: 4.717 MB / 2.73 GB, free: 50.48 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00531/6.066, allocations: 359.9 kB / 2.73 GB, free: 50.43 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000291/6.066, allocations: 154.5 kB / 2.73 GB, free: 50.43 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 1.144e-05/6.066, allocations: 3.688 kB / 2.73 GB, free: 50.43 MB / 0.7605 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02874/6.095, allocations: 7.939 MB / 2.738 GB, free: 50.21 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.222e-05/6.095, allocations: 39.52 kB / 2.738 GB, free: 50.2 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.08483/6.18, allocations: 15.32 MB / 2.753 GB, free: 49.41 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002631/6.182, allocations: 0.644 MB / 2.754 GB, free: 49.4 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009181/6.192, allocations: 7.699 MB / 2.761 GB, free: 46.08 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004584/6.196, allocations: 346.1 kB / 2.762 GB, free: 46.03 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002739/6.196, allocations: 150.4 kB / 2.762 GB, free: 46.03 MB / 0.7605 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 (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.000793/6.197, allocations: 290.1 kB / 2.762 GB, free: 45.9 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006759/6.198, allocations: 462.1 kB / 2.762 GB, free: 45.66 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02229/6.22, allocations: 6.792 MB / 2.769 GB, free: 45.4 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.351e-05/6.22, allocations: 18.06 kB / 2.769 GB, free: 45.4 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/6.22, allocations: 1.125 kB / 2.769 GB, free: 45.4 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009229/6.23, allocations: 6.112 MB / 2.775 GB, free: 44.02 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02193/6.252, allocations: 12.5 MB / 2.787 GB, free: 42.76 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.876e-06/6.252, allocations: 3.516 kB / 2.787 GB, free: 42.76 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001899/6.253, allocations: 372.5 kB / 2.788 GB, free: 42.76 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06047/6.314, allocations: 11.63 MB / 2.799 GB, free: 41.98 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003939/6.314, allocations: 47.09 kB / 2.799 GB, free: 41.98 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005239/6.32, allocations: 4.114 MB / 2.803 GB, free: 40.39 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/6.32, allocations: 4 kB / 2.803 GB, free: 40.39 MB / 0.7605 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01803/6.338, allocations: 9.165 MB / 2.812 GB, free: 38.91 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00305/6.341, allocations: 1.106 MB / 2.813 GB, free: 38.17 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006626/6.341, allocations: 33.17 kB / 2.813 GB, free: 38.16 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002909/6.344, allocations: 298.5 kB / 2.813 GB, free: 37.97 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002869/6.345, allocations: 119.2 kB / 2.813 GB, free: 37.92 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002056/6.345, allocations: 82.3 kB / 2.814 GB, free: 37.87 MB / 0.7605 GB Notification: Performance of sorting global known variables: time 0.004227/6.349, allocations: 3.459 MB / 2.817 GB, free: 35.75 MB / 0.7605 GB Notification: Performance of sort global known variables: time 2.91e-07/6.349, allocations: 4 kB / 2.817 GB, free: 35.74 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.007002/6.356, allocations: 2.768 MB / 2.82 GB, free: 32.99 MB / 0.7605 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) * 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.01884/6.375, allocations: 10.79 MB / 2.83 GB, free: 24.01 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.01328/6.388, allocations: 7.258 MB / 2.837 GB, free: 17.55 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 5.891e-06/6.388, allocations: 0 / 2.837 GB, free: 17.55 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.004605/6.393, allocations: 2.428 MB / 2.84 GB, free: 15.4 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01192/6.405, allocations: 2.692 MB / 2.842 GB, free: 13.5 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01457/6.419, allocations: 9.046 MB / 2.851 GB, free: 5.742 MB / 0.7605 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002084/6.422, allocations: 3.306 MB / 2.854 GB, free: 3.27 MB / 0.7605 GB Notification: Performance of simCode: alias equations: time 0.008394/6.43, allocations: 3.11 MB / 2.857 GB, free: 1.324 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003272/6.433, allocations: 1.987 MB / 2.859 GB, free: 15.85 MB / 0.7761 GB Notification: Performance of SimCode: time 1.032e-06/6.433, allocations: 0 / 2.859 GB, free: 15.85 MB / 0.7761 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6046/7.038, allocations: 165.9 MB / 3.021 GB, free: 106.1 MB / 0.7761 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001518/7.038, allocations: 235.5 kB / 3.022 GB, free: 105.7 MB / 0.7761 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.57/13.61, allocations: 0 / 3.022 GB, free: 105.7 MB / 0.7761 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)