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.001288/0.001288, allocations: 113.1 kB / 17.08 MB, free: 6.008 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.001246/0.001246, allocations: 197.8 kB / 18.02 MB, free: 5.086 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.242/1.242, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.684/0.684, allocations: 115.3 MB / 407.2 MB, free: 6.266 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001269/0.001269, allocations: 63.28 kB / 0.5583 GB, free: 32.42 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1353/0.1366, allocations: 76.18 MB / 0.6327 GB, free: 4.566 MB / 478.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal): time 0.07122/0.2078, allocations: 80.96 MB / 0.7118 GB, free: 3.32 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0281/0.236, allocations: 21.06 MB / 0.7323 GB, free: 14.21 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003807/0.2398, allocations: 107.4 kB / 0.7324 GB, free: 14.1 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.005259/0.2451, allocations: 1.951 MB / 0.7343 GB, free: 12.14 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.008/0.2531, allocations: 2.949 MB / 0.7372 GB, free: 9.18 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0064/0.2596, allocations: 2.496 MB / 0.7397 GB, free: 6.699 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.348/0.6076, allocations: 18.41 MB / 0.7576 GB, free: 17.3 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01005/0.6176, allocations: 7.233 MB / 0.7647 GB, free: 16.37 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01264/0.6303, allocations: 5.958 MB / 0.7705 GB, free: 15.9 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.009032/0.6394, allocations: 5.126 MB / 0.7755 GB, free: 15.1 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.002222/0.6416, allocations: 0.5482 MB / 0.7761 GB, free: 15.1 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006781/0.6484, allocations: 1.975 MB / 0.778 GB, free: 15.1 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.002933/0.6514, allocations: 1.768 MB / 0.7797 GB, free: 14.87 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.007456/0.6589, allocations: 3.479 MB / 0.7831 GB, free: 13.95 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01349/0.6724, allocations: 9.673 MB / 0.7926 GB, free: 12.77 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 7.043e-06/0.6725, allocations: 2.625 kB / 0.7926 GB, free: 12.77 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.673e-06/0.6725, allocations: 0.6562 kB / 0.7926 GB, free: 12.77 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 0.0003715/0.6728, allocations: 0 / 0.7926 GB, free: 12.77 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.01793/0.6908, allocations: 6.918 MB / 0.7993 GB, free: 9.18 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.6909, allocations: 7.656 kB / 0.7993 GB, free: 9.18 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005173/0.696, allocations: 0.9493 MB / 0.8003 GB, free: 8.73 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01382/0.7099, allocations: 6.422 MB / 0.8065 GB, free: 4.832 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002574/0.7102, allocations: 260.7 kB / 0.8068 GB, free: 4.684 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001517/0.7117, allocations: 338.6 kB / 0.8071 GB, free: 4.461 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01233/0.724, allocations: 5.729 MB / 0.8127 GB, free: 15.01 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.302e-05/0.7242, allocations: 15.22 kB / 0.8127 GB, free: 15 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006088/0.7248, allocations: 147.9 kB / 0.8128 GB, free: 14.86 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001035/0.7249, allocations: 122 kB / 0.813 GB, free: 14.73 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009439/0.7343, allocations: 5.561 MB / 0.8184 GB, free: 9.219 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.0376/0.772, allocations: 24.09 MB / 0.8419 GB, free: 0.6016 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00519/0.7772, allocations: 2.757 MB / 0.8446 GB, free: 13.86 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003062/0.7803, allocations: 1.906 MB / 0.8465 GB, free: 11.95 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01431/0.7946, allocations: 7.172 MB / 0.8535 GB, free: 4.527 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003352/0.798, allocations: 1.922 MB / 0.8554 GB, free: 2.594 MB / 0.6231 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00378/0.8018, allocations: 0.7122 MB / 0.856 GB, free: 1.898 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=154): time 1.028e-05/0.8019, allocations: 0 / 0.856 GB, free: 1.898 MB / 0.6231 GB Notification: Performance of matching and sorting (n=154): time 0.02641/0.8283, allocations: 8.015 MB / 0.8639 GB, free: 9.836 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.54e-05/0.8284, allocations: 72.7 kB / 0.8639 GB, free: 9.754 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01079/0.8392, allocations: 5.598 MB / 0.8694 GB, free: 4.184 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.0007702/0.84, allocations: 65.7 kB / 0.8695 GB, free: 4.113 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.003117/0.8431, allocations: 2.605 MB / 0.872 GB, free: 1.508 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.001219/0.8444, allocations: 0.5517 MB / 0.8726 GB, free: 0.9609 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002384/0.8468, allocations: 0.7713 MB / 0.8733 GB, free: 184 kB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001185/0.8469, allocations: 305.1 kB / 0.8736 GB, free: 15.88 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003457/0.8504, allocations: 1.9 MB / 0.8755 GB, free: 13.97 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004305/0.8547, allocations: 3.155 MB / 0.8785 GB, free: 10.27 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00782/0.8626, allocations: 5.027 MB / 0.8834 GB, free: 4.902 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.237e-05/0.8626, allocations: 8 kB / 0.8835 GB, free: 4.895 MB / 0.6544 GB Notification: Performance of matching and sorting (n=402) (initialization): time 0.01355/0.8762, allocations: 6.807 MB / 0.8901 GB, free: 14.29 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 7.943e-05/0.8763, allocations: 49.7 kB / 0.8901 GB, free: 14.23 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-05/0.8764, allocations: 32 kB / 0.8902 GB, free: 14.2 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07787/0.9542, allocations: 13.54 MB / 0.9034 GB, free: 0.75 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00317/0.9575, allocations: 0.7018 MB / 0.9041 GB, free: 92 kB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01079/0.9683, allocations: 5.487 MB / 0.9094 GB, free: 10.54 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005538/0.9739, allocations: 239.4 kB / 0.9097 GB, free: 10.31 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008846/0.9748, allocations: 203.8 kB / 0.9099 GB, free: 10.11 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.006689/0.9815, allocations: 3.273 MB / 0.9131 GB, free: 6.832 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.004339/0.9859, allocations: 3.105 MB / 0.9161 GB, free: 3.188 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.007283/0.9932, allocations: 4.931 MB / 0.9209 GB, free: 13.92 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.581e-05/0.9932, allocations: 12 kB / 0.9209 GB, free: 13.91 MB / 0.7012 GB Notification: Performance of matching and sorting (n=402) (initialization_lambda0): time 0.01328/1.007, allocations: 6.518 MB / 0.9273 GB, free: 7.578 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 7.635e-05/1.007, allocations: 48.36 kB / 0.9273 GB, free: 7.527 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.977e-05/1.007, allocations: 36.02 kB / 0.9274 GB, free: 7.492 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07669/1.083, allocations: 13.3 MB / 0.9404 GB, free: 10.27 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003119/1.087, allocations: 0.7005 MB / 0.941 GB, free: 9.609 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01354/1.1, allocations: 8.907 MB / 0.9497 GB, free: 440 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005118/1.105, allocations: 244.1 kB / 0.95 GB, free: 196 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007231/1.106, allocations: 200 kB / 0.9502 GB, free: 15.99 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.001189/1.107, allocations: 396.2 kB / 0.9505 GB, free: 15.64 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001884/1.109, allocations: 0.4938 MB / 0.951 GB, free: 15.15 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009165/1.118, allocations: 4.568 MB / 0.9555 GB, free: 10.59 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.547e-05/1.118, allocations: 24 kB / 0.9555 GB, free: 10.57 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.674e-06/1.118, allocations: 3.938 kB / 0.9555 GB, free: 10.56 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01056/1.129, allocations: 5.652 MB / 0.961 GB, free: 4.68 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03027/1.159, allocations: 10.92 MB / 0.9717 GB, free: 9.758 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.448e-05/1.159, allocations: 0 / 0.9717 GB, free: 9.758 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002183/1.162, allocations: 371.6 kB / 0.972 GB, free: 9.406 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.069/1.231, allocations: 11.7 MB / 0.9835 GB, free: 13.79 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000523/1.231, allocations: 51.97 kB / 0.9835 GB, free: 13.74 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006191/1.237, allocations: 3.567 MB / 0.987 GB, free: 10.11 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.399e-06/1.237, allocations: 4 kB / 0.987 GB, free: 10.1 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02145/1.259, allocations: 8.103 MB / 0.9949 GB, free: 2.004 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003716/1.263, allocations: 0.9828 MB / 0.9959 GB, free: 0.9961 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001543/1.264, allocations: 32 kB / 0.9959 GB, free: 0.9648 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003855/1.268, allocations: 143.9 kB / 0.9961 GB, free: 0.8242 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004326/1.268, allocations: 114 kB / 0.9962 GB, free: 0.7109 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003533/1.269, allocations: 87.92 kB / 0.9962 GB, free: 0.625 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.006986/1.276, allocations: 3.827 MB / 1 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.7e-07/1.276, allocations: 0 / 1 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.01011/1.286, allocations: 2.792 MB / 1.003 GB, free: 10.03 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.001892/1.288, allocations: 0.6618 MB / 1.003 GB, free: 9.414 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.01939/1.307, allocations: 7.955 MB / 1.011 GB, free: 1.629 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 8.005e-06/1.307, allocations: 0 / 1.011 GB, free: 1.629 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.005986/1.313, allocations: 2.296 MB / 1.013 GB, free: 15.36 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01455/1.328, allocations: 2.916 MB / 1.016 GB, free: 12.52 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0214/1.349, allocations: 10.86 MB / 1.027 GB, free: 1.625 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003863/1.353, allocations: 3.395 MB / 1.03 GB, free: 14.2 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001865/1.355, allocations: 408.5 kB / 1.031 GB, free: 13.8 MB / 0.8106 GB Notification: Performance of SimCode: time 8.52e-07/1.355, allocations: 0 / 1.031 GB, free: 13.8 MB / 0.8106 GB Notification: Performance of Templates: time 0.4634/1.819, allocations: 174.9 MB / 1.201 GB, free: 183.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)