Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: translateModel(IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal") translateModel(IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001414/0.001414, allocations: 105.4 kB / 16.27 MB, free: 5.98 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.001543/0.001543, allocations: 188.6 kB / 17.19 MB, free: 5.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.485/1.485, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7618/0.7618, allocations: 122.9 MB / 413.9 MB, free: 15.86 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001272, allocations: 67.89 kB / 0.4911 GB, free: 7.418 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3934/0.3947, allocations: 77.93 MB / 0.5672 GB, free: 32.8 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal): time 0.07111/0.4659, allocations: 80.96 MB / 0.6462 GB, free: 9.645 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.03384/0.4997, allocations: 21.04 MB / 0.6668 GB, free: 4.551 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004983/0.5048, allocations: 107.4 kB / 0.6669 GB, free: 4.445 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.009314/0.5142, allocations: 4.395 MB / 0.6712 GB, free: 40 kB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.009384/0.5236, allocations: 2.852 MB / 0.674 GB, free: 13.17 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.006531/0.5301, allocations: 2.424 MB / 0.6763 GB, free: 10.77 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.02091/0.551, allocations: 18.3 MB / 0.6942 GB, free: 8.422 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01159/0.5627, allocations: 7.218 MB / 0.7013 GB, free: 1.109 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01262/0.5753, allocations: 5.774 MB / 0.7069 GB, free: 11.35 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.008753/0.5841, allocations: 5.101 MB / 0.7119 GB, free: 6.23 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.002418/0.5865, allocations: 0.5391 MB / 0.7124 GB, free: 5.691 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007382/0.5939, allocations: 1.966 MB / 0.7143 GB, free: 3.723 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.003286/0.5972, allocations: 1.752 MB / 0.716 GB, free: 1.965 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.007286/0.6045, allocations: 3.476 MB / 0.7194 GB, free: 14.47 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.01363/0.6182, allocations: 9.527 MB / 0.7287 GB, free: 4.918 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.6182, allocations: 0 / 0.7287 GB, free: 4.918 MB / 0.5606 GB Notification: Performance of FrontEnd: time 3.437e-06/0.6182, allocations: 4 kB / 0.7287 GB, free: 4.914 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 0.000307/0.6186, allocations: 0 / 0.7287 GB, free: 4.914 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 838 * Number of variables: 838 Notification: Performance of Generate backend data structure: time 0.01908/0.6376, allocations: 6.889 MB / 0.7355 GB, free: 13.93 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 6.095e-05/0.6377, allocations: 8.625 kB / 0.7355 GB, free: 13.92 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005129/0.6429, allocations: 0.9567 MB / 0.7364 GB, free: 12.95 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01238/0.6553, allocations: 6.103 MB / 0.7424 GB, free: 6.777 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002608/0.6556, allocations: 267.1 kB / 0.7426 GB, free: 6.516 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00106/0.6566, allocations: 343.9 kB / 0.743 GB, free: 6.18 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01102/0.6677, allocations: 5.735 MB / 0.7486 GB, free: 200 kB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.87e-05/0.6678, allocations: 11.88 kB / 0.7486 GB, free: 188 kB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005076/0.6683, allocations: 144 kB / 0.7487 GB, free: 44 kB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.3051/0.9734, allocations: 114.1 kB / 0.7488 GB, free: 159.3 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01486/0.9883, allocations: 5.569 MB / 0.7543 GB, free: 157.9 MB / 0.5762 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.03773/1.026, allocations: 24.21 MB / 0.7779 GB, free: 141.3 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005215/1.031, allocations: 2.761 MB / 0.7806 GB, free: 139.8 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003076/1.034, allocations: 1.901 MB / 0.7824 GB, free: 138.8 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01231/1.047, allocations: 7.17 MB / 0.7894 GB, free: 133.4 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002965/1.05, allocations: 1.913 MB / 0.7913 GB, free: 132.3 MB / 0.5762 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.004527/1.054, allocations: 0.7164 MB / 0.792 GB, free: 131.9 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=154): time 1.288e-05/1.054, allocations: 0 / 0.792 GB, free: 131.9 MB / 0.5762 GB Notification: Performance of matching and sorting (n=154): time 0.02261/1.077, allocations: 8.014 MB / 0.7998 GB, free: 125.1 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.428e-05/1.077, allocations: 68.72 kB / 0.7999 GB, free: 125 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007638/1.085, allocations: 5.59 MB / 0.8054 GB, free: 119.5 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0008742/1.086, allocations: 69.7 kB / 0.8054 GB, free: 119.4 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.002267/1.088, allocations: 2.599 MB / 0.808 GB, free: 116.8 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.001178/1.089, allocations: 0.5583 MB / 0.8085 GB, free: 116.2 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001086/1.09, allocations: 0.7674 MB / 0.8093 GB, free: 115.5 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 7.09e-05/1.09, allocations: 305.1 kB / 0.8096 GB, free: 115.2 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00261/1.093, allocations: 1.904 MB / 0.8114 GB, free: 113.3 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003173/1.096, allocations: 3.17 MB / 0.8145 GB, free: 109.6 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005914/1.102, allocations: 5.022 MB / 0.8194 GB, free: 104.1 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.099e-05/1.102, allocations: 12 kB / 0.8194 GB, free: 104.1 MB / 0.5762 GB Notification: Performance of matching and sorting (n=402) (initialization): time 0.01202/1.114, allocations: 6.808 MB / 0.8261 GB, free: 97.28 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 6.067e-05/1.114, allocations: 57.94 kB / 0.8261 GB, free: 97.22 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.435e-05/1.114, allocations: 36 kB / 0.8262 GB, free: 97.18 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07633/1.191, allocations: 13.54 MB / 0.8394 GB, free: 83.68 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003761/1.194, allocations: 0.7059 MB / 0.8401 GB, free: 82.98 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01019/1.205, allocations: 5.485 MB / 0.8454 GB, free: 77.41 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007055/1.212, allocations: 244.2 kB / 0.8457 GB, free: 77.18 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008664/1.213, allocations: 203.8 kB / 0.8459 GB, free: 76.98 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.006417/1.219, allocations: 3.273 MB / 0.8491 GB, free: 73.7 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003633/1.223, allocations: 3.105 MB / 0.8521 GB, free: 70.03 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.005931/1.229, allocations: 4.934 MB / 0.8569 GB, free: 64.62 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.419e-05/1.229, allocations: 15.94 kB / 0.8569 GB, free: 64.6 MB / 0.5762 GB Notification: Performance of matching and sorting (n=402) (initialization_lambda0): time 0.01106/1.24, allocations: 6.52 MB / 0.8633 GB, free: 58.05 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 5.91e-05/1.24, allocations: 51.67 kB / 0.8633 GB, free: 58 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.267e-05/1.24, allocations: 35.98 kB / 0.8634 GB, free: 57.96 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07432/1.314, allocations: 13.3 MB / 0.8764 GB, free: 44.7 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00299/1.317, allocations: 0.6981 MB / 0.877 GB, free: 44 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01188/1.329, allocations: 8.899 MB / 0.8857 GB, free: 34.79 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005725/1.335, allocations: 248.7 kB / 0.886 GB, free: 34.54 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008293/1.336, allocations: 199.8 kB / 0.8862 GB, free: 34.35 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 154 * Number of states: 0 () * Number of discrete variables: 7 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,nRes.y,allowFlowReversal.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (317): * Single equations (assignments): 311 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(11,15), (10,11), (2,5)} Notification: Performance of prepare postOptimizeDAE: time 0.001296/1.337, allocations: 387.2 kB / 0.8865 GB, free: 33.96 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00218/1.339, allocations: 0.49 MB / 0.887 GB, free: 33.46 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008866/1.348, allocations: 4.586 MB / 0.8915 GB, free: 28.87 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.443e-05/1.348, allocations: 23.94 kB / 0.8915 GB, free: 28.85 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.233e-06/1.348, allocations: 0 / 0.8915 GB, free: 28.85 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009829/1.358, allocations: 5.67 MB / 0.897 GB, free: 22.92 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02942/1.388, allocations: 10.91 MB / 0.9077 GB, free: 11.94 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.749e-05/1.388, allocations: 0 / 0.9077 GB, free: 11.94 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002402/1.39, allocations: 375.6 kB / 0.9081 GB, free: 11.57 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06597/1.456, allocations: 11.71 MB / 0.9195 GB, free: 15.84 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008065/1.457, allocations: 55.83 kB / 0.9195 GB, free: 15.79 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007103/1.464, allocations: 3.554 MB / 0.923 GB, free: 12.16 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/1.464, allocations: 4 kB / 0.923 GB, free: 12.16 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02343/1.488, allocations: 8.113 MB / 0.9309 GB, free: 4 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003794/1.491, allocations: 0.9828 MB / 0.9319 GB, free: 2.992 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001923/1.493, allocations: 32 kB / 0.9319 GB, free: 2.961 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004258/1.498, allocations: 143.8 kB / 0.9321 GB, free: 2.82 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004894/1.498, allocations: 105.8 kB / 0.9322 GB, free: 2.715 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004091/1.499, allocations: 87.92 kB / 0.9323 GB, free: 2.629 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.008122/1.507, allocations: 3.812 MB / 0.936 GB, free: 14.84 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.9e-07/1.507, allocations: 0 / 0.936 GB, free: 14.84 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.01229/1.519, allocations: 2.797 MB / 0.9387 GB, free: 12.08 MB / 0.6075 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.s[1],val.filter.s[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 (134): * Single equations (assignments): 125 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(11,5), (2,5), (10,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002205/1.521, allocations: 0.6722 MB / 0.9394 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.02224/1.543, allocations: 8.968 MB / 0.9481 GB, free: 2.469 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 8.826e-06/1.544, allocations: 4 kB / 0.9481 GB, free: 2.465 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.006116/1.55, allocations: 2.3 MB / 0.9504 GB, free: 172 kB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01647/1.566, allocations: 2.91 MB / 0.9532 GB, free: 13.38 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.022/1.588, allocations: 10.89 MB / 0.9639 GB, free: 2.469 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004211/1.592, allocations: 3.412 MB / 0.9672 GB, free: 15.02 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.006807/1.599, allocations: 1.766 MB / 0.9689 GB, free: 13.25 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001294/1.601, allocations: 387.2 kB / 0.9693 GB, free: 12.87 MB / 0.6387 GB Notification: Performance of SimCode: time 1.222e-06/1.601, allocations: 0 / 0.9693 GB, free: 12.87 MB / 0.6387 GB Notification: Performance of Templates: time 0.5306/2.131, allocations: 122.7 MB / 1.089 GB, free: 155 MB / 0.6544 GB make -j1 -f IBPSA_latest_IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal.makefile (rm -f IBPSA_latest_IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal.sim & ./IBPSA_latest_IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1)