Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.conf.json 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/Complex 4.0.0+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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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) Running command: "" <> buildModelFMU(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,fileNamePrefix="Buildings_8_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,fileNamePrefix="Buildings_8_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001007/0.001007, allocations: 91.61 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001088/0.001088, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.54/1.54, allocations: 205.4 MB / 222.1 MB, free: 5.66 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.869/1.869, allocations: 292.7 MB / 0.5499 GB, free: 14.56 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00057/0.0005701, allocations: 15.22 kB / 0.6738 GB, free: 26.29 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2225/0.2231, allocations: 116.3 MB / 0.7874 GB, free: 11.89 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal): time 0.07391/0.297, allocations: 74.42 MB / 0.8601 GB, free: 1.266 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.03151/0.3285, allocations: 20.97 MB / 0.8805 GB, free: 12.26 MB / 0.7012 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003515/0.3321, allocations: 91.31 kB / 0.8806 GB, free: 12.17 MB / 0.7012 GB Notification: Performance of NFTyping.typeComponents: time 0.003378/0.3355, allocations: 0.8113 MB / 0.8814 GB, free: 11.36 MB / 0.7012 GB Notification: Performance of NFTyping.typeBindings: time 0.007077/0.3426, allocations: 2.273 MB / 0.8836 GB, free: 9.074 MB / 0.7012 GB Notification: Performance of NFTyping.typeClassSections: time 0.008204/0.3508, allocations: 2.825 MB / 0.8864 GB, free: 6.273 MB / 0.7012 GB Notification: Performance of NFFlatten.flatten: time 0.0181/0.3689, allocations: 17.44 MB / 0.9034 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.5086/0.8776, allocations: 5.259 MB / 0.9086 GB, free: 21 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0135/0.8911, allocations: 4.62 MB / 0.9131 GB, free: 21 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01127/0.9024, allocations: 4.584 MB / 0.9176 GB, free: 21 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.002659/0.9051, allocations: 260 kB / 0.9178 GB, free: 21 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007402/0.9126, allocations: 1.331 MB / 0.9191 GB, free: 21 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.003933/0.9165, allocations: 1.221 MB / 0.9203 GB, free: 21 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.004081/0.9206, allocations: 1.103 MB / 0.9214 GB, free: 20.97 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.01574/0.9364, allocations: 6.889 MB / 0.9281 GB, free: 20.64 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.9365, allocations: 0.7188 kB / 0.9281 GB, free: 20.64 MB / 0.7169 GB Notification: Performance of FrontEnd: time 5.169e-06/0.9365, allocations: 1.031 kB / 0.9281 GB, free: 20.64 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 0.0005531/0.937, allocations: 1.812 kB / 0.9281 GB, free: 20.64 MB / 0.7169 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.02336/0.9604, allocations: 5.414 MB / 0.9334 GB, free: 18.23 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 6.906e-05/0.9605, allocations: 9.562 kB / 0.9334 GB, free: 18.23 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003253/0.9638, allocations: 474.8 kB / 0.9339 GB, free: 18.17 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007361/0.9711, allocations: 0.8358 MB / 0.9347 GB, free: 17.86 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01818/0.9894, allocations: 5.021 MB / 0.9396 GB, free: 17.09 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005001/0.9899, allocations: 261.8 kB / 0.9398 GB, free: 17.08 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002523/0.9925, allocations: 342.4 kB / 0.9402 GB, free: 17.08 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02138/1.014, allocations: 5.741 MB / 0.9458 GB, free: 16.37 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002257/1.014, allocations: 10.44 kB / 0.9458 GB, free: 16.37 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002445/1.017, allocations: 143.9 kB / 0.9459 GB, free: 16.37 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001022/1.017, allocations: 82.69 kB / 0.946 GB, free: 16.37 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01597/1.033, allocations: 5.557 MB / 0.9514 GB, free: 16.32 MB / 0.7169 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.0496/1.082, allocations: 24 MB / 0.9748 GB, free: 19.52 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006275/1.089, allocations: 2.809 MB / 0.9776 GB, free: 18.98 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003436/1.092, allocations: 1.923 MB / 0.9795 GB, free: 18.67 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01793/1.11, allocations: 7.145 MB / 0.9864 GB, free: 14.96 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003672/1.114, allocations: 1.945 MB / 0.9883 GB, free: 14.35 MB / 0.7325 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.005714/1.12, allocations: 1.244 MB / 0.9896 GB, free: 13.83 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=155): time 1.506e-05/1.12, allocations: 0 / 0.9896 GB, free: 13.83 MB / 0.7325 GB Notification: Performance of matching and sorting (n=155): time 0.02125/1.141, allocations: 7.633 MB / 0.997 GB, free: 11.43 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001245/1.141, allocations: 148.3 kB / 0.9972 GB, free: 11.28 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01388/1.155, allocations: 4.846 MB / 1.002 GB, free: 10.02 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 0.001065/1.156, allocations: 67.17 kB / 1.002 GB, free: 9.992 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.003646/1.16, allocations: 2.442 MB / 1.004 GB, free: 8.98 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.001747/1.161, allocations: 0.5461 MB / 1.005 GB, free: 8.516 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008326/1.162, allocations: 55.19 kB / 1.005 GB, free: 8.504 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.000365/1.163, allocations: 414 kB / 1.005 GB, free: 8.137 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003964/1.167, allocations: 1.664 MB / 1.007 GB, free: 7.02 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004789/1.172, allocations: 2.885 MB / 1.01 GB, free: 4.23 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004308/1.176, allocations: 2.107 MB / 1.012 GB, free: 2.871 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.546e-05/1.176, allocations: 12 kB / 1.012 GB, free: 2.859 MB / 0.7325 GB Notification: Performance of matching and sorting (n=340) (initialization): time 0.01524/1.191, allocations: 6.022 MB / 1.018 GB, free: 14.48 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009773/1.192, allocations: 1.108 MB / 1.019 GB, free: 12.92 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.593e-05/1.192, allocations: 32 kB / 1.019 GB, free: 12.89 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06114/1.253, allocations: 11.87 MB / 1.03 GB, free: 1.055 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003563/1.257, allocations: 0.6643 MB / 1.031 GB, free: 440 kB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009391/1.267, allocations: 5.037 MB / 1.036 GB, free: 11.34 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007541/1.274, allocations: 351.7 kB / 1.036 GB, free: 11 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001268/1.275, allocations: 163.9 kB / 1.036 GB, free: 10.84 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 2.402e-05/1.275, allocations: 4 kB / 1.036 GB, free: 10.83 MB / 0.7637 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01338/1.289, allocations: 5.361 MB / 1.042 GB, free: 5.672 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001466/1.289, allocations: 38.44 kB / 1.042 GB, free: 5.637 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0598/1.349, allocations: 11.68 MB / 1.053 GB, free: 9.984 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003302/1.352, allocations: 0.6486 MB / 1.054 GB, free: 9.375 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0133/1.366, allocations: 8.078 MB / 1.062 GB, free: 1.039 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006216/1.372, allocations: 328.7 kB / 1.062 GB, free: 0.7188 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009646/1.373, allocations: 159.9 kB / 1.062 GB, free: 0.5625 MB / 0.7794 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 () * 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.005561/1.378, allocations: 1.54 MB / 1.064 GB, free: 15.05 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002199/1.381, allocations: 470.3 kB / 1.064 GB, free: 14.59 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01162/1.392, allocations: 4.874 MB / 1.069 GB, free: 9.73 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.034e-05/1.392, allocations: 19.98 kB / 1.069 GB, free: 9.711 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/1.392, allocations: 0 / 1.069 GB, free: 9.711 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01807/1.41, allocations: 7.001 MB / 1.076 GB, free: 2.496 MB / 0.795 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 postOpt removeSimpleEquations (simulation): time 0.04011/1.451, allocations: 13.21 MB / 1.089 GB, free: 5.25 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.516e-05/1.451, allocations: 0 / 1.089 GB, free: 5.25 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002555/1.453, allocations: 378.9 kB / 1.089 GB, free: 4.891 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.05854/1.512, allocations: 11.9 MB / 1.101 GB, free: 9.027 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000804/1.513, allocations: 43.97 kB / 1.101 GB, free: 8.984 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007063/1.52, allocations: 4.379 MB / 1.105 GB, free: 4.535 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.516e-06/1.52, allocations: 0.6562 kB / 1.105 GB, free: 4.535 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02527/1.545, allocations: 9.733 MB / 1.114 GB, free: 10.81 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004604/1.55, allocations: 1.073 MB / 1.115 GB, free: 9.711 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002425/1.552, allocations: 35.98 kB / 1.116 GB, free: 9.676 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005593/1.558, allocations: 279.2 kB / 1.116 GB, free: 9.402 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006924/1.558, allocations: 101.2 kB / 1.116 GB, free: 9.305 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006009/1.559, allocations: 83.92 kB / 1.116 GB, free: 9.223 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.008101/1.567, allocations: 3.306 MB / 1.119 GB, free: 5.934 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.344e-06/1.567, allocations: 0 / 1.119 GB, free: 5.934 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.01502/1.582, allocations: 2.713 MB / 1.122 GB, free: 3.219 MB / 0.8419 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 (127): * Single equations (assignments): 118 * 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.02909/1.611, allocations: 10.61 MB / 1.132 GB, free: 8.641 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.018/1.629, allocations: 7.583 MB / 1.14 GB, free: 1.207 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.208e-05/1.63, allocations: 4.891 kB / 1.14 GB, free: 1.203 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.005914/1.635, allocations: 2.518 MB / 1.142 GB, free: 14.71 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01681/1.652, allocations: 2.775 MB / 1.145 GB, free: 11.96 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.122/1.774, allocations: 40.47 MB / 1.184 GB, free: 0.9219 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00502/1.779, allocations: 3.217 MB / 1.187 GB, free: 13.68 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.00959/1.789, allocations: 1.699 MB / 1.189 GB, free: 11.97 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005909/1.795, allocations: 2.001 MB / 1.191 GB, free: 9.973 MB / 0.92 GB Notification: Performance of SimCode: time 1.162e-06/1.795, allocations: 0 / 1.191 GB, free: 9.973 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7423/2.537, allocations: 151.4 MB / 1.339 GB, free: 357.3 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002369/2.538, allocations: 254.4 kB / 1.339 GB, free: 357 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.693/8.231, allocations: 2.516 kB / 1.339 GB, free: 357 MB / 0.9981 GB (rm -f Buildings_8_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; mkfifo Buildings_8_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe >> ../files/Buildings_8_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal_fmu --startTime=0 --stopTime=10000 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal.fmu > Buildings_8_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1) Environment - environmentSimulation: