Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/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 Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.753/1.753, allocations: 288.4 MB / 303.3 MB, free: 8.246 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001199/0.001199, allocations: 188.5 kB / 372 MB, free: 10.27 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.808/1.808, allocations: 205.4 MB / 0.6307 GB, free: 9.977 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008788/0.0008788, allocations: 102.8 kB / 0.7441 GB, free: 5.902 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004194/0.0004198, allocations: 11.53 kB / 0.867 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2437/0.2442, allocations: 115.3 MB / 0.9796 GB, free: 27.57 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal): time 0.06691/0.3111, allocations: 74.41 MB / 1.052 GB, free: 0.9648 MB / 0.6667 GB Notification: Performance of NFInst.instExpressions: time 0.6034/0.9147, allocations: 20.96 MB / 1.073 GB, free: 18.77 MB / 0.6823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00561/0.9203, allocations: 91.53 kB / 1.073 GB, free: 18.77 MB / 0.6823 GB Notification: Performance of NFTyping.typeComponents: time 0.004268/0.9247, allocations: 0.8118 MB / 1.074 GB, free: 18.77 MB / 0.6823 GB Notification: Performance of NFTyping.typeBindings: time 0.009143/0.9338, allocations: 2.268 MB / 1.076 GB, free: 18.7 MB / 0.6823 GB Notification: Performance of NFTyping.typeClassSections: time 0.01023/0.9441, allocations: 2.829 MB / 1.079 GB, free: 18.61 MB / 0.6823 GB Notification: Performance of NFFlatten.flatten: time 0.02864/0.9727, allocations: 17.44 MB / 1.096 GB, free: 17.64 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01215/0.985, allocations: 5.27 MB / 1.101 GB, free: 16.7 MB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01347/0.9985, allocations: 4.62 MB / 1.105 GB, free: 15.74 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01223/1.011, allocations: 4.582 MB / 1.11 GB, free: 14.84 MB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 0.003057/1.014, allocations: 260.4 kB / 1.11 GB, free: 14.84 MB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01057/1.024, allocations: 1.334 MB / 1.111 GB, free: 14.77 MB / 0.6823 GB Notification: Performance of NFScalarize.scalarize: time 0.005047/1.03, allocations: 1.217 MB / 1.113 GB, free: 14.55 MB / 0.6823 GB Notification: Performance of NFVerifyModel.verify: time 0.006719/1.036, allocations: 1.11 MB / 1.114 GB, free: 14.34 MB / 0.6823 GB Notification: Performance of NFConvertDAE.convert: time 0.01396/1.05, allocations: 6.886 MB / 1.12 GB, free: 10.91 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 8.086e-06/1.05, allocations: 6.625 kB / 1.12 GB, free: 10.91 MB / 0.6823 GB Notification: Performance of FrontEnd: time 3.306e-06/1.05, allocations: 0 / 1.12 GB, free: 10.91 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.0004556/1.051, allocations: 0.9688 kB / 1.12 GB, free: 10.91 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: 835 * Number of variables: 835 Notification: Performance of Generate backend data structure: time 0.01944/1.07, allocations: 5.414 MB / 1.126 GB, free: 7.699 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.197e-05/1.07, allocations: 13.12 kB / 1.126 GB, free: 7.699 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002744/1.073, allocations: 468.3 kB / 1.126 GB, free: 7.566 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006742/1.08, allocations: 0.836 MB / 1.127 GB, free: 7.176 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01691/1.097, allocations: 5.033 MB / 1.132 GB, free: 5.285 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003896/1.097, allocations: 261.8 kB / 1.132 GB, free: 5.273 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002154/1.1, allocations: 338.3 kB / 1.132 GB, free: 5.273 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0192/1.119, allocations: 5.735 MB / 1.138 GB, free: 3.199 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002369/1.119, allocations: 9.375 kB / 1.138 GB, free: 3.195 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00232/1.121, allocations: 147 kB / 1.138 GB, free: 3.195 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001116/1.121, allocations: 89.81 kB / 1.138 GB, free: 3.191 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01554/1.137, allocations: 5.56 MB / 1.144 GB, free: 2.043 MB / 0.6823 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.05565/1.193, allocations: 24 MB / 1.167 GB, free: 12.74 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00677/1.2, allocations: 2.799 MB / 1.17 GB, free: 9.945 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004037/1.204, allocations: 1.928 MB / 1.172 GB, free: 8.016 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02077/1.224, allocations: 7.142 MB / 1.179 GB, free: 0.6211 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006136/1.231, allocations: 1.946 MB / 1.181 GB, free: 14.66 MB / 0.7292 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.008892/1.24, allocations: 1.238 MB / 1.182 GB, free: 13.42 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=155): time 2.851e-05/1.24, allocations: 7.938 kB / 1.182 GB, free: 13.41 MB / 0.7292 GB Notification: Performance of matching and sorting (n=155): time 0.0281/1.268, allocations: 7.614 MB / 1.189 GB, free: 5.734 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001605/1.268, allocations: 161.8 kB / 1.189 GB, free: 5.543 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01785/1.286, allocations: 4.848 MB / 1.194 GB, free: 0.707 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 0.00112/1.287, allocations: 61.7 kB / 1.194 GB, free: 0.6406 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.004462/1.292, allocations: 2.45 MB / 1.197 GB, free: 14.21 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 0.001366/1.293, allocations: 0.541 MB / 1.197 GB, free: 13.67 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003336/1.293, allocations: 59.36 kB / 1.197 GB, free: 13.61 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0002371/1.294, allocations: 415.4 kB / 1.198 GB, free: 13.2 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003346/1.297, allocations: 1.664 MB / 1.199 GB, free: 11.54 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004383/1.301, allocations: 2.889 MB / 1.202 GB, free: 8.086 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004013/1.305, allocations: 2.1 MB / 1.204 GB, free: 5.984 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.596e-05/1.306, allocations: 11.95 kB / 1.204 GB, free: 5.973 MB / 0.7448 GB Notification: Performance of matching and sorting (n=340) (initialization): time 0.01408/1.32, allocations: 6.033 MB / 1.21 GB, free: 15.92 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008843/1.321, allocations: 1.106 MB / 1.211 GB, free: 14.36 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.187e-05/1.321, allocations: 32 kB / 1.211 GB, free: 14.32 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07403/1.395, allocations: 11.87 MB / 1.223 GB, free: 2.484 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003206/1.398, allocations: 0.6591 MB / 1.223 GB, free: 1.824 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008318/1.406, allocations: 5.044 MB / 1.228 GB, free: 12.71 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006497/1.413, allocations: 351.7 kB / 1.229 GB, free: 12.36 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001023/1.414, allocations: 167.9 kB / 1.229 GB, free: 12.2 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/1.414, allocations: 4 kB / 1.229 GB, free: 12.2 MB / 0.7761 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01025/1.424, allocations: 5.365 MB / 1.234 GB, free: 6.812 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.155e-05/1.424, allocations: 32 kB / 1.234 GB, free: 6.781 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07082/1.495, allocations: 11.68 MB / 1.245 GB, free: 11.13 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003307/1.498, allocations: 0.6513 MB / 1.246 GB, free: 10.48 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01231/1.511, allocations: 8.059 MB / 1.254 GB, free: 2.125 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005806/1.517, allocations: 324.1 kB / 1.254 GB, free: 1.809 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000886/1.518, allocations: 159.9 kB / 1.254 GB, free: 1.652 MB / 0.7917 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.004248/1.522, allocations: 1.55 MB / 1.256 GB, free: 92 kB / 0.7917 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001781/1.524, allocations: 458.3 kB / 1.256 GB, free: 15.63 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009624/1.533, allocations: 4.877 MB / 1.261 GB, free: 10.75 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.929e-05/1.533, allocations: 23.94 kB / 1.261 GB, free: 10.72 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/1.533, allocations: 0 / 1.261 GB, free: 10.72 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01866/1.552, allocations: 7.002 MB / 1.268 GB, free: 3.457 MB / 0.8073 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.03597/1.588, allocations: 13.22 MB / 1.281 GB, free: 6.168 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.484e-05/1.588, allocations: 0 / 1.281 GB, free: 6.168 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002731/1.591, allocations: 375.6 kB / 1.281 GB, free: 5.801 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06783/1.659, allocations: 11.9 MB / 1.293 GB, free: 9.941 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007154/1.66, allocations: 43.97 kB / 1.293 GB, free: 9.898 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006773/1.666, allocations: 4.368 MB / 1.297 GB, free: 5.453 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.402e-06/1.666, allocations: 8 kB / 1.297 GB, free: 5.445 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02608/1.692, allocations: 9.731 MB / 1.307 GB, free: 11.68 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005093/1.698, allocations: 1.073 MB / 1.308 GB, free: 10.58 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002505/1.7, allocations: 31.98 kB / 1.308 GB, free: 10.55 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005568/1.706, allocations: 287.2 kB / 1.308 GB, free: 10.27 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006572/1.706, allocations: 101.2 kB / 1.308 GB, free: 10.17 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006393/1.707, allocations: 83.92 kB / 1.308 GB, free: 10.09 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.007742/1.715, allocations: 3.306 MB / 1.311 GB, free: 6.797 MB / 0.8542 GB Notification: Performance of sort global known variables: time 1.733e-06/1.715, allocations: 0 / 1.311 GB, free: 6.797 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.01301/1.728, allocations: 2.708 MB / 1.314 GB, free: 4.086 MB / 0.8542 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.02796/1.756, allocations: 10.63 MB / 1.324 GB, free: 9.445 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.01767/1.774, allocations: 7.574 MB / 1.332 GB, free: 1.824 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.082e-05/1.774, allocations: 0.8906 kB / 1.332 GB, free: 1.824 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.006091/1.78, allocations: 2.523 MB / 1.334 GB, free: 15.3 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01664/1.796, allocations: 2.773 MB / 1.337 GB, free: 12.56 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1056/1.902, allocations: 40.48 MB / 1.377 GB, free: 1.34 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003126/1.905, allocations: 3.213 MB / 1.38 GB, free: 14.09 MB / 0.9323 GB Notification: Performance of simCode: alias equations: time 0.007708/1.913, allocations: 1.693 MB / 1.381 GB, free: 12.39 MB / 0.9323 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00449/1.918, allocations: 2.007 MB / 1.383 GB, free: 10.39 MB / 0.9323 GB Notification: Performance of SimCode: time 2.825e-06/1.918, allocations: 4 kB / 1.383 GB, free: 10.38 MB / 0.9323 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6481/2.566, allocations: 151.4 MB / 1.531 GB, free: 282.2 MB / 0.9636 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001817/2.566, allocations: 270.1 kB / 1.531 GB, free: 281.9 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.73/9.296, allocations: 3.938 kB / 1.531 GB, free: 281.9 MB / 0.9636 GB (rm -f Buildings_maint.8.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal_fmu --startTime=0 --stopTime=10000 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal.fmu > Buildings_maint.8.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1)