Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.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 BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_Examples_ResistanceVolumeFlowReversal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_Examples_ResistanceVolumeFlowReversal",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo): time 0.7177/0.7177, allocations: 127.4 MB / 134.9 MB, free: 3.715 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001155/0.001155, allocations: 177 kB / 164.6 MB, free: 6.523 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.624/1.624, allocations: 205.2 MB / 399.5 MB, free: 5.918 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001003/0.001003, allocations: 90.09 kB / 476.7 MB, free: 8.645 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 1.971e-05/1.957e-05, allocations: 4 kB / 0.5467 GB, free: 60.41 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1679/0.168, allocations: 76.76 MB / 0.6216 GB, free: 15.59 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.355/1.523, allocations: 388.4 MB / 1.001 GB, free: 131.2 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002345/1.523, allocations: 86.58 kB / 1.001 GB, free: 131.2 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 6.043/7.566, allocations: 1.453 GB / 2.454 GB, free: 81.06 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.415e-06/7.566, allocations: 0 / 2.454 GB, free: 81.06 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.0007563/7.567, allocations: 159.5 kB / 2.454 GB, free: 81.03 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 832 * Number of variables: 832 Notification: Performance of Generate backend data structure: time 0.0133/7.581, allocations: 4.565 MB / 2.458 GB, free: 79.27 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.034e-05/7.581, allocations: 9.562 kB / 2.458 GB, free: 79.27 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004941/7.586, allocations: 0.8456 MB / 2.459 GB, free: 78.96 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01943/7.605, allocations: 7.825 MB / 2.467 GB, free: 78.05 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001767/7.605, allocations: 104.2 kB / 2.467 GB, free: 78.05 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009592/7.606, allocations: 207.2 kB / 2.467 GB, free: 78.05 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00761/7.614, allocations: 4.633 MB / 2.471 GB, free: 78.03 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007566/7.621, allocations: 4.742 MB / 2.476 GB, free: 77.34 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.833e-05/7.622, allocations: 19.33 kB / 2.476 GB, free: 77.34 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004527/7.622, allocations: 7.75 kB / 2.476 GB, free: 77.34 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.159e-05/7.622, allocations: 82.16 kB / 2.476 GB, free: 77.34 MB / 0.6823 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.03187/7.654, allocations: 21.89 MB / 2.498 GB, free: 67.31 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004315/7.658, allocations: 2.503 MB / 2.5 GB, free: 67.27 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00249/7.661, allocations: 1.619 MB / 2.502 GB, free: 67.27 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01258/7.673, allocations: 6.055 MB / 2.508 GB, free: 65.25 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00209/7.676, allocations: 1.676 MB / 2.509 GB, free: 65.19 MB / 0.6823 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.006573/7.682, allocations: 1.952 MB / 2.511 GB, free: 65.09 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=154): time 8.727e-06/7.682, allocations: 2.469 kB / 2.511 GB, free: 65.09 MB / 0.6823 GB Notification: Performance of matching and sorting (n=154): time 0.01924/7.701, allocations: 5.44 MB / 2.516 GB, free: 64.77 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.437e-05/7.702, allocations: 143.9 kB / 2.517 GB, free: 64.61 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007216/7.709, allocations: 3.761 MB / 2.52 GB, free: 64.29 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.0008214/7.71, allocations: 33 kB / 2.52 GB, free: 64.25 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.00248/7.712, allocations: 2.483 MB / 2.523 GB, free: 63.4 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.001084/7.713, allocations: 0.5274 MB / 2.523 GB, free: 63.06 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001782/7.713, allocations: 1.656 kB / 2.523 GB, free: 63.06 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.000177/7.714, allocations: 414.8 kB / 2.524 GB, free: 62.76 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002004/7.716, allocations: 1.466 MB / 2.525 GB, free: 62.75 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002545/7.718, allocations: 2.725 MB / 2.528 GB, free: 61.17 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006796/7.725, allocations: 2.513 MB / 2.53 GB, free: 61.14 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.444e-05/7.725, allocations: 9.594 kB / 2.53 GB, free: 61.14 MB / 0.6823 GB Notification: Performance of matching and sorting (n=340) (initialization): time 0.04363/7.769, allocations: 9.517 MB / 2.539 GB, free: 60.78 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.004281/7.773, allocations: 15.26 MB / 2.554 GB, free: 44.71 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001091/7.773, allocations: 31.44 kB / 2.554 GB, free: 44.71 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03273/7.806, allocations: 6.35 MB / 2.561 GB, free: 44.6 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0037/7.81, allocations: 0.6881 MB / 2.561 GB, free: 44.59 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01467/7.824, allocations: 5.81 MB / 2.567 GB, free: 42.95 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006665/7.831, allocations: 270 kB / 2.567 GB, free: 42.9 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009652/7.832, allocations: 157.9 kB / 2.567 GB, free: 42.9 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 2.278e-05/7.832, allocations: 7.609 kB / 2.567 GB, free: 42.9 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03676/7.869, allocations: 8.198 MB / 2.575 GB, free: 42.52 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001854/7.869, allocations: 40.83 kB / 2.575 GB, free: 42.52 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03153/7.901, allocations: 6.095 MB / 2.581 GB, free: 42.43 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00321/7.904, allocations: 0.6981 MB / 2.582 GB, free: 42.38 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01337/7.917, allocations: 7.913 MB / 2.59 GB, free: 39.11 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005566/7.923, allocations: 234.8 kB / 2.59 GB, free: 39.06 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007075/7.924, allocations: 151.8 kB / 2.59 GB, free: 39.06 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 149 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,nRes.y,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.001084/7.925, allocations: 205.5 kB / 2.59 GB, free: 38.89 MB / 0.6823 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0159/7.941, allocations: 5.117 MB / 2.595 GB, free: 38.49 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002076/7.943, allocations: 428.8 kB / 2.596 GB, free: 38.27 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02924/7.972, allocations: 7.349 MB / 2.603 GB, free: 37.16 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.199e-05/7.972, allocations: 19.09 kB / 2.603 GB, free: 37.16 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.466e-06/7.972, allocations: 3.375 kB / 2.603 GB, free: 37.16 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01553/7.988, allocations: 6.422 MB / 2.609 GB, free: 32.28 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03761/8.026, allocations: 13.46 MB / 2.622 GB, free: 20.89 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-05/8.026, allocations: 6.641 kB / 2.622 GB, free: 20.89 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002528/8.028, allocations: 423.4 kB / 2.623 GB, free: 20.48 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004615/8.033, allocations: 2.597 MB / 2.625 GB, free: 17.89 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004343/8.033, allocations: 27.95 kB / 2.625 GB, free: 17.87 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02514/8.058, allocations: 10.24 MB / 2.635 GB, free: 7.359 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.708e-06/8.059, allocations: 2.516 kB / 2.635 GB, free: 7.359 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.6307/8.689, allocations: 10.38 MB / 2.645 GB, free: 85.89 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004997/8.694, allocations: 1.034 MB / 2.646 GB, free: 85.8 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002185/8.697, allocations: 5.891 kB / 2.646 GB, free: 85.8 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005575/8.702, allocations: 253.1 kB / 2.647 GB, free: 85.8 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006467/8.703, allocations: 119.9 kB / 2.647 GB, free: 85.8 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004092/8.703, allocations: 86.53 kB / 2.647 GB, free: 85.8 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.007741/8.711, allocations: 2.831 MB / 2.65 GB, free: 85.62 MB / 0.6823 GB Notification: Performance of sort global known variables: time 6.71e-07/8.711, allocations: 0 / 2.65 GB, free: 85.62 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.01611/8.727, allocations: 2.689 MB / 2.652 GB, free: 85.62 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (125): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.04091/8.768, allocations: 12.04 MB / 2.664 GB, free: 84.72 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.02212/8.79, allocations: 7.322 MB / 2.671 GB, free: 84.23 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.058e-05/8.79, allocations: 6.969 kB / 2.671 GB, free: 84.23 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.009261/8.8, allocations: 2.968 MB / 2.674 GB, free: 83.97 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01302/8.813, allocations: 2.245 MB / 2.676 GB, free: 83.95 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02819/8.841, allocations: 9.287 MB / 2.685 GB, free: 82.36 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002888/8.844, allocations: 3.315 MB / 2.689 GB, free: 81.57 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.01022/8.854, allocations: 2.839 MB / 2.691 GB, free: 81.54 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003199/8.857, allocations: 1.9 MB / 2.693 GB, free: 81.54 MB / 0.6823 GB Notification: Performance of SimCode: time 1.623e-06/8.857, allocations: 0.6562 kB / 2.693 GB, free: 81.54 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2605/9.118, allocations: 149.7 MB / 2.839 GB, free: 27.23 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002177/9.118, allocations: 176 kB / 2.84 GB, free: 27.04 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.898/17.02, allocations: 4.031 kB / 2.84 GB, free: 27.04 MB / 0.6823 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Fluid_Examples_ResistanceVolumeFlowReversal_fmu --startTime=0 --stopTime=10000 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Fluid_Examples_ResistanceVolumeFlowReversal.fmu > BuildSysPro_BuildSysPro.IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1)