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: translateModel(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal") translateModel(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 3.227/3.227, allocations: 287.5 MB / 302.4 MB, free: 8.355 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.001908/0.001908, allocations: 178 kB / 371 MB, free: 10.86 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.155/2.155, allocations: 205.4 MB / 0.6297 GB, free: 10.59 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.001164/0.001164, allocations: 92.8 kB / 0.743 GB, free: 6.59 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000752/0.0007524, allocations: 15.55 kB / 0.8658 GB, free: 140.8 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2175/0.2183, allocations: 115.3 MB / 0.9783 GB, free: 28.38 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal): time 0.1151/0.3334, allocations: 74.42 MB / 1.051 GB, free: 1.766 MB / 0.6667 GB Notification: Performance of NFInst.instExpressions: time 0.7312/1.065, allocations: 20.96 MB / 1.071 GB, free: 18.05 MB / 0.6823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004291/1.069, allocations: 93.33 kB / 1.072 GB, free: 18.05 MB / 0.6823 GB Notification: Performance of NFTyping.typeComponents: time 0.004532/1.074, allocations: 0.8152 MB / 1.072 GB, free: 18.04 MB / 0.6823 GB Notification: Performance of NFTyping.typeBindings: time 0.01022/1.084, allocations: 2.273 MB / 1.075 GB, free: 17.98 MB / 0.6823 GB Notification: Performance of NFTyping.typeClassSections: time 0.01293/1.097, allocations: 2.822 MB / 1.077 GB, free: 17.89 MB / 0.6823 GB Notification: Performance of NFFlatten.flatten: time 0.03348/1.13, allocations: 17.44 MB / 1.094 GB, free: 17 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01335/1.144, allocations: 5.264 MB / 1.1 GB, free: 16.06 MB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01362/1.157, allocations: 4.628 MB / 1.104 GB, free: 15.09 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01227/1.17, allocations: 4.576 MB / 1.109 GB, free: 14.2 MB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 0.002835/1.173, allocations: 260.4 kB / 1.109 GB, free: 14.2 MB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009564/1.182, allocations: 1.334 MB / 1.11 GB, free: 14.12 MB / 0.6823 GB Notification: Performance of NFScalarize.scalarize: time 0.004163/1.186, allocations: 1.219 MB / 1.111 GB, free: 13.91 MB / 0.6823 GB Notification: Performance of NFVerifyModel.verify: time 0.004508/1.191, allocations: 1.109 MB / 1.112 GB, free: 13.7 MB / 0.6823 GB Notification: Performance of NFConvertDAE.convert: time 0.01384/1.205, allocations: 6.878 MB / 1.119 GB, free: 11.05 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 8.967e-06/1.205, allocations: 1.188 kB / 1.119 GB, free: 11.05 MB / 0.6823 GB Notification: Performance of FrontEnd: time 3.326e-06/1.205, allocations: 3.938 kB / 1.119 GB, free: 11.04 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.0003782/1.205, allocations: 0 / 1.119 GB, free: 11.04 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.02257/1.228, allocations: 5.428 MB / 1.124 GB, free: 7.828 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.946e-05/1.228, allocations: 9 kB / 1.124 GB, free: 7.828 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0076/1.236, allocations: 0.8365 MB / 1.125 GB, free: 7.438 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01863/1.254, allocations: 5.013 MB / 1.13 GB, free: 5.562 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004337/1.255, allocations: 262.2 kB / 1.13 GB, free: 5.551 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002196/1.257, allocations: 349.3 kB / 1.131 GB, free: 5.543 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02068/1.278, allocations: 5.724 MB / 1.136 GB, free: 3.477 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001609/1.278, allocations: 10.66 kB / 1.136 GB, free: 3.469 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00223/1.28, allocations: 149.7 kB / 1.136 GB, free: 3.465 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001544/1.28, allocations: 92.03 kB / 1.136 GB, free: 3.461 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02522/1.306, allocations: 5.552 MB / 1.142 GB, free: 2.32 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.0658/1.372, allocations: 24.01 MB / 1.165 GB, free: 14.14 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00934/1.381, allocations: 2.798 MB / 1.168 GB, free: 11.35 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006121/1.387, allocations: 1.928 MB / 1.17 GB, free: 9.418 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02445/1.412, allocations: 7.138 MB / 1.177 GB, free: 2.027 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006591/1.418, allocations: 1.949 MB / 1.179 GB, free: 64 kB / 0.7136 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.008681/1.427, allocations: 1.242 MB / 1.18 GB, free: 14.82 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=155): time 1.216e-05/1.427, allocations: 0 / 1.18 GB, free: 14.82 MB / 0.7292 GB Notification: Performance of matching and sorting (n=155): time 0.04234/1.469, allocations: 7.632 MB / 1.188 GB, free: 7.129 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001268/1.47, allocations: 149.8 kB / 1.188 GB, free: 6.949 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01336/1.483, allocations: 4.844 MB / 1.192 GB, free: 2.117 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 0.0008403/1.484, allocations: 68.44 kB / 1.192 GB, free: 2.047 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.004237/1.488, allocations: 2.445 MB / 1.195 GB, free: 15.59 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 0.001634/1.49, allocations: 0.5529 MB / 1.195 GB, free: 15.04 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004813/1.49, allocations: 52 kB / 1.195 GB, free: 14.99 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0003204/1.491, allocations: 411.4 kB / 1.196 GB, free: 14.58 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005672/1.496, allocations: 1.66 MB / 1.197 GB, free: 12.92 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007178/1.504, allocations: 2.892 MB / 1.2 GB, free: 9.469 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006697/1.51, allocations: 2.104 MB / 1.202 GB, free: 7.363 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.002e-05/1.51, allocations: 15.78 kB / 1.202 GB, free: 7.352 MB / 0.7448 GB Notification: Performance of matching and sorting (n=340) (initialization): time 0.02183/1.532, allocations: 6.03 MB / 1.208 GB, free: 1.305 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 0.001071/1.533, allocations: 1.106 MB / 1.209 GB, free: 15.74 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.844e-05/1.534, allocations: 32 kB / 1.209 GB, free: 15.71 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1472/1.681, allocations: 11.87 MB / 1.221 GB, free: 3.871 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005641/1.686, allocations: 0.6591 MB / 1.222 GB, free: 3.211 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01583/1.702, allocations: 5.04 MB / 1.226 GB, free: 14.09 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008874/1.711, allocations: 351.7 kB / 1.227 GB, free: 13.75 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002217/1.714, allocations: 159.9 kB / 1.227 GB, free: 13.59 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 2.946e-05/1.714, allocations: 8 kB / 1.227 GB, free: 13.59 MB / 0.7761 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02064/1.734, allocations: 5.372 MB / 1.232 GB, free: 8.199 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001163/1.735, allocations: 39.98 kB / 1.232 GB, free: 8.16 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1442/1.879, allocations: 11.67 MB / 1.244 GB, free: 12.52 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008146/1.887, allocations: 0.6513 MB / 1.244 GB, free: 11.87 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03095/1.918, allocations: 8.061 MB / 1.252 GB, free: 3.512 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0117/1.93, allocations: 331.9 kB / 1.252 GB, free: 3.184 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001325/1.931, allocations: 159.9 kB / 1.253 GB, free: 3.027 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.007104/1.938, allocations: 1.554 MB / 1.254 GB, free: 1.461 MB / 0.7917 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001868/1.94, allocations: 462.3 kB / 1.255 GB, free: 1.004 MB / 0.7917 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01586/1.956, allocations: 4.863 MB / 1.259 GB, free: 12.13 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.691e-05/1.956, allocations: 24.05 kB / 1.259 GB, free: 12.11 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.314e-06/1.956, allocations: 3.984 kB / 1.259 GB, free: 12.1 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.03652/1.993, allocations: 7.009 MB / 1.266 GB, free: 4.836 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.05802/2.051, allocations: 13.2 MB / 1.279 GB, free: 7.559 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.466e-05/2.051, allocations: 0 / 1.279 GB, free: 7.559 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00446/2.055, allocations: 371.6 kB / 1.279 GB, free: 7.195 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.1893/2.245, allocations: 11.9 MB / 1.291 GB, free: 11.33 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007099/2.245, allocations: 43.97 kB / 1.291 GB, free: 11.29 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01319/2.259, allocations: 4.371 MB / 1.295 GB, free: 6.84 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.152e-06/2.259, allocations: 7.953 kB / 1.295 GB, free: 6.832 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04944/2.308, allocations: 9.736 MB / 1.305 GB, free: 13.06 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005184/2.313, allocations: 1.069 MB / 1.306 GB, free: 11.97 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002331/2.316, allocations: 35.95 kB / 1.306 GB, free: 11.93 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007749/2.324, allocations: 279.2 kB / 1.306 GB, free: 11.66 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008352/2.324, allocations: 101.2 kB / 1.306 GB, free: 11.56 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005361/2.325, allocations: 86.66 kB / 1.306 GB, free: 11.48 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.01008/2.335, allocations: 3.306 MB / 1.31 GB, free: 8.191 MB / 0.8542 GB Notification: Performance of sort global known variables: time 6.31e-07/2.335, allocations: 0 / 1.31 GB, free: 8.191 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.01654/2.352, allocations: 2.71 MB / 1.312 GB, free: 5.477 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.002629/2.354, allocations: 0.5455 MB / 1.313 GB, free: 4.961 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.04156/2.396, allocations: 7.578 MB / 1.32 GB, free: 13.34 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.83e-05/2.396, allocations: 4.891 kB / 1.32 GB, free: 13.34 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.01607/2.412, allocations: 2.521 MB / 1.323 GB, free: 10.82 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03547/2.448, allocations: 2.777 MB / 1.325 GB, free: 8.066 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04413/2.492, allocations: 11.45 MB / 1.337 GB, free: 12.59 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00902/2.501, allocations: 3.213 MB / 1.34 GB, free: 9.34 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.01636/2.517, allocations: 1.697 MB / 1.341 GB, free: 7.637 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003597/2.521, allocations: 351.3 kB / 1.342 GB, free: 7.293 MB / 0.8855 GB Notification: Performance of SimCode: time 1.733e-06/2.521, allocations: 0 / 1.342 GB, free: 7.293 MB / 0.8855 GB Notification: Performance of Templates: time 0.9713/3.492, allocations: 107.2 MB / 1.446 GB, free: 348.6 MB / 0.9636 GB make -j1 -f Buildings_8.0.0_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.makefile (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 & ./Buildings_8.0.0_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1)