Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.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 Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,fileNamePrefix="Buildings_8_0_0_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.0/package.mo): time 1.491/1.491, allocations: 287.4 MB / 302.6 MB, free: 8.215 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.000939/0.000939, allocations: 189.2 kB / 371.1 MB, free: 10.84 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.275/1.275, allocations: 205.4 MB / 0.6298 GB, free: 10.6 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.0007314/0.0007311, allocations: 97.86 kB / 0.7431 GB, free: 6.594 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003703/0.0003705, allocations: 10.55 kB / 0.8662 GB, free: 140.4 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1611/0.1615, allocations: 115.3 MB / 0.9787 GB, free: 28.13 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal): time 0.0568/0.2183, allocations: 74.43 MB / 1.051 GB, free: 1.504 MB / 0.6667 GB Notification: Performance of NFInst.instExpressions: time 0.3835/0.6019, allocations: 20.96 MB / 1.072 GB, free: 18.2 MB / 0.6823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003495/0.6054, allocations: 92.38 kB / 1.072 GB, free: 18.2 MB / 0.6823 GB Notification: Performance of NFTyping.typeComponents: time 0.003437/0.6089, allocations: 0.8108 MB / 1.073 GB, free: 18.2 MB / 0.6823 GB Notification: Performance of NFTyping.typeBindings: time 0.00725/0.6162, allocations: 2.269 MB / 1.075 GB, free: 18.14 MB / 0.6823 GB Notification: Performance of NFTyping.typeClassSections: time 0.008881/0.6251, allocations: 2.817 MB / 1.078 GB, free: 18.06 MB / 0.6823 GB Notification: Performance of NFFlatten.flatten: time 0.02453/0.6496, allocations: 17.56 MB / 1.095 GB, free: 17.08 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.009827/0.6595, allocations: 5.946 MB / 1.101 GB, free: 15.91 MB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.009065/0.6686, allocations: 4.624 MB / 1.105 GB, free: 14.94 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.009045/0.6777, allocations: 4.583 MB / 1.11 GB, free: 14.05 MB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 0.001967/0.6797, allocations: 260.1 kB / 1.11 GB, free: 14.05 MB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006771/0.6865, allocations: 1.333 MB / 1.111 GB, free: 13.97 MB / 0.6823 GB Notification: Performance of NFScalarize.scalarize: time 0.003946/0.6905, allocations: 1.223 MB / 1.112 GB, free: 13.75 MB / 0.6823 GB Notification: Performance of NFVerifyModel.verify: time 0.004567/0.6951, allocations: 1.103 MB / 1.113 GB, free: 13.54 MB / 0.6823 GB Notification: Performance of NFConvertDAE.convert: time 0.01028/0.7054, allocations: 6.892 MB / 1.12 GB, free: 10.93 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 8.547e-06/0.7054, allocations: 0 / 1.12 GB, free: 10.93 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.354e-06/0.7055, allocations: 1.438 kB / 1.12 GB, free: 10.93 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.0003368/0.7058, allocations: 0 / 1.12 GB, free: 10.93 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.01453/0.7203, allocations: 5.363 MB / 1.125 GB, free: 7.723 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.434e-05/0.7204, allocations: 8.75 kB / 1.125 GB, free: 7.723 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002272/0.7227, allocations: 472.3 kB / 1.126 GB, free: 7.586 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004862/0.7276, allocations: 0.837 MB / 1.127 GB, free: 7.195 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01159/0.7392, allocations: 5.203 MB / 1.132 GB, free: 5.133 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003064/0.7395, allocations: 263.7 kB / 1.132 GB, free: 5.121 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001522/0.7411, allocations: 342.2 kB / 1.132 GB, free: 5.117 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0101/0.7512, allocations: 5.731 MB / 1.138 GB, free: 3.039 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.529e-05/0.7513, allocations: 18 kB / 1.138 GB, free: 3.027 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004197/0.7517, allocations: 145.9 kB / 1.138 GB, free: 3.027 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.636e-05/0.7518, allocations: 81.5 kB / 1.138 GB, free: 3.027 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007661/0.7594, allocations: 5.551 MB / 1.144 GB, free: 1.887 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.03215/0.7916, allocations: 24.02 MB / 1.167 GB, free: 12.55 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004621/0.7963, allocations: 2.801 MB / 1.17 GB, free: 9.762 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002884/0.7992, allocations: 1.929 MB / 1.172 GB, free: 7.832 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01262/0.8118, allocations: 7.134 MB / 1.179 GB, free: 460 kB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003079/0.8149, allocations: 1.953 MB / 1.181 GB, free: 14.48 MB / 0.7292 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.004577/0.8195, allocations: 1.242 MB / 1.182 GB, free: 13.24 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=155): time 6.161e-06/0.8196, allocations: 0 / 1.182 GB, free: 13.24 MB / 0.7292 GB Notification: Performance of matching and sorting (n=155): time 0.01936/0.8389, allocations: 7.661 MB / 1.189 GB, free: 5.516 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.4e-05/0.839, allocations: 149.8 kB / 1.189 GB, free: 5.34 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00714/0.8462, allocations: 4.844 MB / 1.194 GB, free: 0.5078 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 0.0005978/0.8468, allocations: 65.7 kB / 1.194 GB, free: 448 kB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.002283/0.8491, allocations: 2.45 MB / 1.197 GB, free: 13.98 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009697/0.8501, allocations: 0.5455 MB / 1.197 GB, free: 13.44 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002129/0.8503, allocations: 56 kB / 1.197 GB, free: 13.38 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0002053/0.8505, allocations: 415.4 kB / 1.198 GB, free: 12.97 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00281/0.8533, allocations: 1.656 MB / 1.199 GB, free: 11.31 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003441/0.8568, allocations: 2.892 MB / 1.202 GB, free: 7.863 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006087/0.8629, allocations: 4.554 MB / 1.206 GB, free: 2.855 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.108e-05/0.863, allocations: 8 kB / 1.206 GB, free: 2.848 MB / 0.7448 GB Notification: Performance of matching and sorting (n=340) (initialization): time 0.01092/0.8739, allocations: 6.033 MB / 1.212 GB, free: 12.79 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007222/0.8746, allocations: 1.097 MB / 1.213 GB, free: 11.23 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.342e-05/0.8747, allocations: 35.98 kB / 1.213 GB, free: 11.2 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06606/0.9408, allocations: 11.87 MB / 1.225 GB, free: 15.36 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002952/0.9438, allocations: 0.6675 MB / 1.226 GB, free: 14.7 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007886/0.9517, allocations: 5.043 MB / 1.231 GB, free: 9.57 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005026/0.9567, allocations: 343.7 kB / 1.231 GB, free: 9.234 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005516/0.9573, allocations: 167.2 kB / 1.231 GB, free: 9.074 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.162e-05/0.9573, allocations: 8 kB / 1.231 GB, free: 9.066 MB / 0.7761 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008921/0.9662, allocations: 5.365 MB / 1.236 GB, free: 3.684 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.229e-05/0.9663, allocations: 36 kB / 1.236 GB, free: 3.648 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06377/1.03, allocations: 11.67 MB / 1.248 GB, free: 8.008 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002801/1.033, allocations: 0.6552 MB / 1.248 GB, free: 7.352 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01131/1.044, allocations: 8.07 MB / 1.256 GB, free: 14.99 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004634/1.049, allocations: 335.8 kB / 1.257 GB, free: 14.66 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005384/1.05, allocations: 155.9 kB / 1.257 GB, free: 14.51 MB / 0.8073 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.003342/1.053, allocations: 1.55 MB / 1.258 GB, free: 12.95 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001313/1.054, allocations: 462.3 kB / 1.259 GB, free: 12.49 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008632/1.063, allocations: 4.863 MB / 1.264 GB, free: 7.613 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.221e-05/1.063, allocations: 16 kB / 1.264 GB, free: 7.598 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.271e-06/1.063, allocations: 8 kB / 1.264 GB, free: 7.59 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01718/1.08, allocations: 6.996 MB / 1.27 GB, free: 348 kB / 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.03222/1.112, allocations: 13.22 MB / 1.283 GB, free: 3.047 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.674e-05/1.112, allocations: 4 kB / 1.283 GB, free: 3.043 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002623/1.115, allocations: 371.5 kB / 1.284 GB, free: 2.68 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06289/1.178, allocations: 11.9 MB / 1.295 GB, free: 6.816 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005231/1.179, allocations: 43.91 kB / 1.295 GB, free: 6.773 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006594/1.185, allocations: 4.38 MB / 1.3 GB, free: 2.316 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/1.185, allocations: 0 / 1.3 GB, free: 2.316 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02457/1.21, allocations: 9.739 MB / 1.309 GB, free: 8.539 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003507/1.213, allocations: 1.069 MB / 1.31 GB, free: 7.445 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001607/1.215, allocations: 32 kB / 1.31 GB, free: 7.414 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004182/1.219, allocations: 282 kB / 1.31 GB, free: 7.141 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004149/1.22, allocations: 105.2 kB / 1.311 GB, free: 7.039 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003519/1.22, allocations: 83.92 kB / 1.311 GB, free: 6.957 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.006218/1.226, allocations: 3.302 MB / 1.314 GB, free: 3.672 MB / 0.8542 GB Notification: Performance of sort global known variables: time 3.41e-07/1.226, allocations: 0 / 1.314 GB, free: 3.672 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0108/1.237, allocations: 2.717 MB / 1.316 GB, free: 0.9531 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.02589/1.263, allocations: 10.62 MB / 1.327 GB, free: 6.32 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.017/1.28, allocations: 7.573 MB / 1.334 GB, free: 14.71 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.858e-05/1.28, allocations: 4.891 kB / 1.334 GB, free: 14.7 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.005912/1.286, allocations: 2.524 MB / 1.337 GB, free: 12.18 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01544/1.301, allocations: 2.731 MB / 1.339 GB, free: 9.473 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09726/1.399, allocations: 40.47 MB / 1.379 GB, free: 14.27 MB / 0.9323 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003153/1.402, allocations: 3.217 MB / 1.382 GB, free: 11.02 MB / 0.9323 GB Notification: Performance of simCode: alias equations: time 0.006101/1.408, allocations: 1.709 MB / 1.384 GB, free: 9.309 MB / 0.9323 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003062/1.411, allocations: 1.995 MB / 1.386 GB, free: 7.312 MB / 0.9323 GB Notification: Performance of SimCode: time 1.934e-06/1.411, allocations: 0 / 1.386 GB, free: 7.312 MB / 0.9323 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.22/2.632, allocations: 151.6 MB / 1.534 GB, free: 280.8 MB / 0.9636 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000141/2.632, allocations: 246.7 kB / 1.534 GB, free: 280.5 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.963/8.594, allocations: 3.625 kB / 1.534 GB, free: 280.5 MB / 0.9636 GB (rm -f Buildings_8.0.0_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal_fmu --startTime=0 --stopTime=10000 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal.fmu > Buildings_8.0.0_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1)