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.87/0.87, allocations: 141.8 MB / 149.3 MB, free: 9.242 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.0009683/0.0009682, allocations: 180.9 kB / 182.2 MB, free: 9.438 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.51/1.51, allocations: 221.5 MB / 436.4 MB, free: 13.34 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.0009641/0.0009639, allocations: 100 kB / 0.5074 GB, free: 10.16 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00183/0.00183, allocations: 276.4 kB / 0.5889 GB, free: 54.67 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 3.237e-05/3.273e-05, allocations: 4 kB / 0.6766 GB, free: 12.75 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5283/0.5283, allocations: 82.77 MB / 0.7574 GB, free: 31.93 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9023/1.431, allocations: 377.2 MB / 1.126 GB, free: 3.145 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003014/1.431, allocations: 85.45 kB / 1.126 GB, free: 3.105 MB / 0.6667 GB Notification: Performance of FrontEnd - DAE generated: time 6.32/7.751, allocations: 1.467 GB / 2.593 GB, free: 94.59 MB / 0.7292 GB Notification: Performance of FrontEnd: time 2.685e-06/7.751, allocations: 0 / 2.593 GB, free: 94.59 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 0.0008274/7.752, allocations: 148.5 kB / 2.593 GB, free: 94.56 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.0145/7.766, allocations: 4.545 MB / 2.597 GB, free: 92.82 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 4.905e-05/7.766, allocations: 7.094 kB / 2.598 GB, free: 92.82 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005123/7.772, allocations: 0.7937 MB / 2.598 GB, free: 92.52 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01731/7.789, allocations: 6.713 MB / 2.605 GB, free: 91.68 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002045/7.789, allocations: 103.3 kB / 2.605 GB, free: 91.68 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001199/7.79, allocations: 207.2 kB / 2.605 GB, free: 91.68 MB / 0.7292 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009725/7.8, allocations: 4.73 MB / 2.61 GB, free: 91.66 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01153/7.812, allocations: 4.792 MB / 2.614 GB, free: 91 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000147/7.812, allocations: 12.09 kB / 2.614 GB, free: 91 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009941/7.813, allocations: 9.719 kB / 2.614 GB, free: 91 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001234/7.813, allocations: 113 kB / 2.615 GB, free: 90.99 MB / 0.7292 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.04201/7.855, allocations: 22.14 MB / 2.636 GB, free: 81.17 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003741/7.859, allocations: 2.494 MB / 2.639 GB, free: 81.13 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002316/7.861, allocations: 1.759 MB / 2.64 GB, free: 81.11 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01465/7.876, allocations: 7.037 MB / 2.647 GB, free: 78.82 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002455/7.878, allocations: 1.733 MB / 2.649 GB, free: 78.76 MB / 0.7292 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.006898/7.885, allocations: 1.979 MB / 2.651 GB, free: 78.66 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=158): time 1.285e-05/7.885, allocations: 0 / 2.651 GB, free: 78.66 MB / 0.7292 GB Notification: Performance of matching and sorting (n=158): time 0.01342/7.899, allocations: 4.704 MB / 2.655 GB, free: 78.33 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.567e-05/7.899, allocations: 70.38 kB / 2.655 GB, free: 78.27 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01062/7.91, allocations: 3.941 MB / 2.659 GB, free: 77.95 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 0.0007025/7.91, allocations: 29.67 kB / 2.659 GB, free: 77.92 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.003037/7.913, allocations: 2.422 MB / 2.662 GB, free: 77.07 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 0.001044/7.914, allocations: 0.5427 MB / 2.662 GB, free: 76.72 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003843/7.915, allocations: 2.812 kB / 2.662 GB, free: 76.72 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0002225/7.915, allocations: 418.4 kB / 2.663 GB, free: 76.41 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002149/7.917, allocations: 1.44 MB / 2.664 GB, free: 76.41 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002952/7.92, allocations: 2.695 MB / 2.667 GB, free: 74.86 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006837/7.927, allocations: 2.493 MB / 2.669 GB, free: 74.83 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.764e-05/7.927, allocations: 13.72 kB / 2.669 GB, free: 74.83 MB / 0.7292 GB Notification: Performance of matching and sorting (n=336) (initialization): time 0.03894/7.966, allocations: 8.874 MB / 2.678 GB, free: 74.48 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 0.004459/7.971, allocations: 14.99 MB / 2.692 GB, free: 58.65 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001254/7.971, allocations: 33.28 kB / 2.692 GB, free: 58.65 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03403/8.005, allocations: 6.214 MB / 2.699 GB, free: 58.56 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003166/8.008, allocations: 0.6408 MB / 2.699 GB, free: 58.55 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01104/8.019, allocations: 5.523 MB / 2.705 GB, free: 56.92 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007604/8.027, allocations: 300 kB / 2.705 GB, free: 56.87 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00106/8.028, allocations: 163.4 kB / 2.705 GB, free: 56.86 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 2.161e-05/8.028, allocations: 3.781 kB / 2.705 GB, free: 56.86 MB / 0.7292 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03824/8.066, allocations: 8.183 MB / 2.713 GB, free: 56.62 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001666/8.066, allocations: 35.88 kB / 2.713 GB, free: 56.62 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03362/8.1, allocations: 6.159 MB / 2.719 GB, free: 56.53 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003466/8.103, allocations: 0.642 MB / 2.72 GB, free: 56.52 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01569/8.119, allocations: 8.228 MB / 2.728 GB, free: 53.29 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005936/8.125, allocations: 290.1 kB / 2.728 GB, free: 53.23 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009294/8.126, allocations: 153.4 kB / 2.728 GB, free: 53.23 MB / 0.7292 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.001591/8.128, allocations: 205.2 kB / 2.728 GB, free: 53.1 MB / 0.7292 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01204/8.14, allocations: 4.518 MB / 2.733 GB, free: 52.72 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001967/8.142, allocations: 435.2 kB / 2.733 GB, free: 52.5 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02961/8.171, allocations: 7.202 MB / 2.74 GB, free: 51.39 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.682e-05/8.172, allocations: 13.75 kB / 2.74 GB, free: 51.39 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.046e-05/8.172, allocations: 0 / 2.74 GB, free: 51.39 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01533/8.187, allocations: 6.592 MB / 2.747 GB, free: 45.9 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03408/8.221, allocations: 12.58 MB / 2.759 GB, free: 35.86 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.402e-05/8.221, allocations: 3.953 kB / 2.759 GB, free: 35.86 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002458/8.224, allocations: 371.6 kB / 2.759 GB, free: 35.5 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004642/8.228, allocations: 2.443 MB / 2.762 GB, free: 33.07 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004938/8.229, allocations: 27.97 kB / 2.762 GB, free: 33.04 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009423/8.238, allocations: 4.796 MB / 2.766 GB, free: 28.17 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.113e-05/8.238, allocations: 0 / 2.766 GB, free: 28.17 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02546/8.264, allocations: 9.59 MB / 2.776 GB, free: 18.55 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004397/8.268, allocations: 1.073 MB / 2.777 GB, free: 17.45 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002283/8.271, allocations: 0 / 2.777 GB, free: 17.45 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006014/8.277, allocations: 271.1 kB / 2.777 GB, free: 17.18 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006843/8.277, allocations: 105.2 kB / 2.777 GB, free: 17.08 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000602/8.278, allocations: 83.92 kB / 2.777 GB, free: 17 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.007739/8.286, allocations: 2.973 MB / 2.78 GB, free: 14.03 MB / 0.7292 GB Notification: Performance of sort global known variables: time 3.91e-07/8.286, allocations: 0 / 2.78 GB, free: 14.03 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.01504/8.301, allocations: 2.7 MB / 2.783 GB, free: 11.33 MB / 0.7292 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.0279/8.329, allocations: 11.18 MB / 2.794 GB, free: 228 kB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.01889/8.348, allocations: 7.017 MB / 2.801 GB, free: 9.188 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.705e-05/8.348, allocations: 8.969 kB / 2.801 GB, free: 9.184 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.006179/8.354, allocations: 2.387 MB / 2.803 GB, free: 6.793 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01518/8.369, allocations: 2.38 MB / 2.805 GB, free: 4.508 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6221/8.991, allocations: 8.763 MB / 2.814 GB, free: 112.5 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003438/8.995, allocations: 3.308 MB / 2.817 GB, free: 111.7 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.01101/9.006, allocations: 2.757 MB / 2.82 GB, free: 111.7 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003419/9.009, allocations: 1.881 MB / 2.822 GB, free: 111.7 MB / 0.7448 GB Notification: Performance of SimCode: time 1.683e-06/9.009, allocations: 3.906 kB / 2.822 GB, free: 111.7 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2612/9.271, allocations: 144.1 MB / 2.962 GB, free: 92.27 MB / 0.7448 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001932/9.271, allocations: 185 kB / 2.962 GB, free: 92.07 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.18/16.45, allocations: 0 / 2.962 GB, free: 92.07 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)