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.001311/0.001311, allocations: 106.2 kB / 16.4 MB, free: 6.484 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.001299/0.001299, allocations: 193.2 kB / 17.34 MB, free: 5.762 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.383/1.383, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7415/0.7415, allocations: 115.3 MB / 406.5 MB, free: 6.184 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00171/0.00171, allocations: 67.5 kB / 0.5576 GB, free: 32.26 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1694/0.1711, allocations: 76.18 MB / 0.632 GB, free: 4.449 MB / 478.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal): time 0.07674/0.2479, allocations: 80.97 MB / 0.7111 GB, free: 3.199 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.03301/0.2809, allocations: 21.05 MB / 0.7317 GB, free: 14.09 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005375/0.2864, allocations: 107.4 kB / 0.7318 GB, free: 13.99 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.006667/0.2931, allocations: 1.959 MB / 0.7337 GB, free: 12.02 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.009532/0.3026, allocations: 2.937 MB / 0.7366 GB, free: 9.07 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.007188/0.3098, allocations: 2.502 MB / 0.739 GB, free: 6.582 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.44/0.7498, allocations: 18.41 MB / 0.757 GB, free: 17.34 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01042/0.7603, allocations: 7.236 MB / 0.764 GB, free: 16.41 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01312/0.7734, allocations: 5.958 MB / 0.7699 GB, free: 15.93 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01374/0.7872, allocations: 5.12 MB / 0.7749 GB, free: 15.13 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.003893/0.7911, allocations: 0.5541 MB / 0.7754 GB, free: 15.13 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01071/0.8019, allocations: 1.978 MB / 0.7773 GB, free: 15.13 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.005453/0.8074, allocations: 1.762 MB / 0.7791 GB, free: 14.9 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.01371/0.8211, allocations: 3.483 MB / 0.7825 GB, free: 13.98 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02098/0.8421, allocations: 9.683 MB / 0.7919 GB, free: 12.8 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 9.278e-06/0.8422, allocations: 0 / 0.7919 GB, free: 12.8 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.305e-06/0.8422, allocations: 0.6562 kB / 0.7919 GB, free: 12.8 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 0.000316/0.8425, allocations: 0 / 0.7919 GB, free: 12.8 MB / 0.5762 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.03106/0.8736, allocations: 6.908 MB / 0.7987 GB, free: 9.203 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 5.449e-05/0.8737, allocations: 9.719 kB / 0.7987 GB, free: 9.203 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009843/0.8835, allocations: 0.9491 MB / 0.7996 GB, free: 8.754 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01478/0.8984, allocations: 6.422 MB / 0.8059 GB, free: 4.758 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002537/0.8986, allocations: 255.8 kB / 0.8061 GB, free: 4.613 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001814/0.9005, allocations: 342.2 kB / 0.8064 GB, free: 4.387 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01499/0.9155, allocations: 5.731 MB / 0.812 GB, free: 14.99 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000145/0.9157, allocations: 10.56 kB / 0.812 GB, free: 14.99 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00142/0.9171, allocations: 151.9 kB / 0.8122 GB, free: 14.84 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000136/0.9172, allocations: 114 kB / 0.8123 GB, free: 14.73 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01295/0.9302, allocations: 5.567 MB / 0.8177 GB, free: 9.207 MB / 0.5919 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.04884/0.9791, allocations: 24.09 MB / 0.8413 GB, free: 0.5859 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005709/0.9848, allocations: 2.759 MB / 0.844 GB, free: 13.84 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003677/0.9885, allocations: 1.91 MB / 0.8458 GB, free: 11.93 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01482/1.003, allocations: 7.17 MB / 0.8528 GB, free: 4.508 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004495/1.008, allocations: 1.918 MB / 0.8547 GB, free: 2.578 MB / 0.6231 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.004626/1.013, allocations: 0.7126 MB / 0.8554 GB, free: 1.883 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=154): time 1.284e-05/1.013, allocations: 4 kB / 0.8554 GB, free: 1.879 MB / 0.6231 GB Notification: Performance of matching and sorting (n=154): time 0.0273/1.04, allocations: 8.016 MB / 0.8632 GB, free: 9.816 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.593e-05/1.04, allocations: 72.72 kB / 0.8633 GB, free: 9.734 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01314/1.053, allocations: 5.602 MB / 0.8688 GB, free: 4.16 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.001099/1.054, allocations: 69.7 kB / 0.8688 GB, free: 4.086 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.003729/1.058, allocations: 2.594 MB / 0.8714 GB, free: 1.484 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.001552/1.06, allocations: 0.5533 MB / 0.8719 GB, free: 0.9414 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003034/1.063, allocations: 0.7752 MB / 0.8727 GB, free: 160 kB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001311/1.063, allocations: 307.2 kB / 0.873 GB, free: 15.86 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003979/1.067, allocations: 1.904 MB / 0.8748 GB, free: 13.94 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004964/1.072, allocations: 3.147 MB / 0.8779 GB, free: 10.25 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008251/1.08, allocations: 5.026 MB / 0.8828 GB, free: 4.883 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.713e-05/1.08, allocations: 12 kB / 0.8828 GB, free: 4.871 MB / 0.6544 GB Notification: Performance of matching and sorting (n=402) (initialization): time 0.01555/1.096, allocations: 6.802 MB / 0.8894 GB, free: 14.27 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001085/1.096, allocations: 49.69 kB / 0.8895 GB, free: 14.21 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.815e-05/1.096, allocations: 32 kB / 0.8895 GB, free: 14.18 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0827/1.179, allocations: 13.54 MB / 0.9027 GB, free: 0.7227 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003499/1.182, allocations: 0.6998 MB / 0.9034 GB, free: 68 kB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01113/1.193, allocations: 5.491 MB / 0.9088 GB, free: 10.52 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006481/1.2, allocations: 231.8 kB / 0.909 GB, free: 10.29 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001067/1.201, allocations: 203.8 kB / 0.9092 GB, free: 10.09 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00771/1.209, allocations: 3.269 MB / 0.9124 GB, free: 6.816 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.004967/1.214, allocations: 3.112 MB / 0.9154 GB, free: 3.164 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.008323/1.222, allocations: 4.926 MB / 0.9203 GB, free: 13.9 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.264e-05/1.222, allocations: 8 kB / 0.9203 GB, free: 13.89 MB / 0.7012 GB Notification: Performance of matching and sorting (n=402) (initialization_lambda0): time 0.01501/1.237, allocations: 6.52 MB / 0.9266 GB, free: 7.559 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 7.749e-05/1.237, allocations: 49.69 kB / 0.9267 GB, free: 7.504 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.376e-05/1.237, allocations: 35.94 kB / 0.9267 GB, free: 7.469 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0801/1.318, allocations: 13.3 MB / 0.9397 GB, free: 10.25 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003602/1.321, allocations: 0.6988 MB / 0.9404 GB, free: 9.594 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01557/1.337, allocations: 8.901 MB / 0.9491 GB, free: 424 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006582/1.343, allocations: 248 kB / 0.9493 GB, free: 176 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001063/1.345, allocations: 199.9 kB / 0.9495 GB, free: 15.97 MB / 0.7325 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.001748/1.346, allocations: 388.3 kB / 0.9499 GB, free: 15.63 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002545/1.349, allocations: 0.49 MB / 0.9503 GB, free: 15.14 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01068/1.36, allocations: 4.573 MB / 0.9548 GB, free: 10.58 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.005e-05/1.36, allocations: 27.97 kB / 0.9548 GB, free: 10.55 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/1.36, allocations: 3.938 kB / 0.9548 GB, free: 10.55 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01147/1.371, allocations: 5.662 MB / 0.9604 GB, free: 4.656 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0365/1.408, allocations: 10.91 MB / 0.971 GB, free: 9.746 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.141e-05/1.408, allocations: 0 / 0.971 GB, free: 9.746 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002619/1.41, allocations: 379.3 kB / 0.9714 GB, free: 9.387 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.07243/1.483, allocations: 11.71 MB / 0.9828 GB, free: 13.77 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006925/1.484, allocations: 47.97 kB / 0.9829 GB, free: 13.72 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006785/1.49, allocations: 3.554 MB / 0.9863 GB, free: 10.09 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/1.49, allocations: 0 / 0.9863 GB, free: 10.09 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02458/1.515, allocations: 8.109 MB / 0.9943 GB, free: 1.988 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004382/1.519, allocations: 0.9829 MB / 0.9952 GB, free: 0.9805 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002244/1.522, allocations: 35.92 kB / 0.9953 GB, free: 0.9453 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004836/1.527, allocations: 139.8 kB / 0.9954 GB, free: 0.8086 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006493/1.527, allocations: 116.6 kB / 0.9955 GB, free: 0.6953 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005581/1.528, allocations: 83.92 kB / 0.9956 GB, free: 0.6133 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.009585/1.537, allocations: 3.831 MB / 0.9993 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of sort global known variables: time 6.72e-07/1.537, allocations: 0 / 0.9993 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.01437/1.552, allocations: 2.796 MB / 1.002 GB, free: 10.01 MB / 0.7794 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.00265/1.554, allocations: 0.6618 MB / 1.003 GB, free: 9.398 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.02448/1.579, allocations: 7.949 MB / 1.01 GB, free: 1.617 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.189e-05/1.579, allocations: 1.812 kB / 1.01 GB, free: 1.617 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.007082/1.586, allocations: 2.301 MB / 1.013 GB, free: 15.34 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01913/1.605, allocations: 2.915 MB / 1.016 GB, free: 12.51 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02743/1.633, allocations: 10.75 MB / 1.026 GB, free: 1.734 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004715/1.638, allocations: 3.416 MB / 1.029 GB, free: 14.29 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.006757/1.644, allocations: 1.757 MB / 1.031 GB, free: 12.53 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001539/1.646, allocations: 381.9 kB / 1.031 GB, free: 12.16 MB / 0.8106 GB Notification: Performance of SimCode: time 1.262e-06/1.646, allocations: 0 / 1.031 GB, free: 12.16 MB / 0.8106 GB Notification: Performance of Templates: time 0.5915/2.237, allocations: 121.8 MB / 1.15 GB, free: 239.5 MB / 0.8106 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)