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.001665/0.001664, allocations: 102.7 kB / 16.27 MB, free: 6.309 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.002486/0.002486, allocations: 191.6 kB / 17.19 MB, free: 5.93 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.405/1.405, allocations: 222.9 MB / 240.9 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.8277/0.8277, allocations: 122.9 MB / 413.9 MB, free: 15.85 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001485/0.001485, allocations: 63.91 kB / 0.4911 GB, free: 7.441 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4363/0.4378, allocations: 77.92 MB / 0.5672 GB, free: 32.7 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal): time 0.07458/0.5125, allocations: 80.96 MB / 0.6463 GB, free: 9.664 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0339/0.5464, allocations: 21.06 MB / 0.6668 GB, free: 4.551 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00572/0.5522, allocations: 107.4 kB / 0.6669 GB, free: 4.445 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.01074/0.563, allocations: 4.392 MB / 0.6712 GB, free: 44 kB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.01104/0.5741, allocations: 2.844 MB / 0.674 GB, free: 13.19 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.007745/0.5818, allocations: 2.428 MB / 0.6764 GB, free: 10.78 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.02263/0.6045, allocations: 18.3 MB / 0.6943 GB, free: 8.434 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01025/0.6148, allocations: 7.206 MB / 0.7013 GB, free: 1.133 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01306/0.6279, allocations: 5.786 MB / 0.7069 GB, free: 11.36 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01002/0.6379, allocations: 5.093 MB / 0.7119 GB, free: 6.246 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.002537/0.6405, allocations: 0.543 MB / 0.7124 GB, free: 5.703 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006998/0.6475, allocations: 1.97 MB / 0.7144 GB, free: 3.73 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.002967/0.6505, allocations: 1.752 MB / 0.7161 GB, free: 1.973 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.006705/0.6572, allocations: 3.464 MB / 0.7195 GB, free: 14.49 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.01279/0.67, allocations: 9.535 MB / 0.7288 GB, free: 4.93 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.982e-06/0.6701, allocations: 0 / 0.7288 GB, free: 4.93 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.964e-06/0.6701, allocations: 0 / 0.7288 GB, free: 4.93 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 0.0002819/0.6704, allocations: 0 / 0.7288 GB, free: 4.93 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.01714/0.6875, allocations: 6.889 MB / 0.7355 GB, free: 13.94 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.868e-05/0.6876, allocations: 12.62 kB / 0.7355 GB, free: 13.93 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004897/0.6925, allocations: 0.9489 MB / 0.7364 GB, free: 12.97 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01123/0.7037, allocations: 6.103 MB / 0.7424 GB, free: 6.797 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002346/0.704, allocations: 267 kB / 0.7427 GB, free: 6.535 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007694/0.7048, allocations: 347.9 kB / 0.743 GB, free: 6.195 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009546/0.7143, allocations: 5.735 MB / 0.7486 GB, free: 216 kB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.615e-05/0.7144, allocations: 15.88 kB / 0.7486 GB, free: 200 kB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004438/0.7149, allocations: 140 kB / 0.7487 GB, free: 60 kB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.3056/1.02, allocations: 112.9 kB / 0.7488 GB, free: 160.3 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01776/1.038, allocations: 5.571 MB / 0.7543 GB, free: 158.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.0374/1.076, allocations: 24.21 MB / 0.7779 GB, free: 142.3 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00503/1.081, allocations: 2.752 MB / 0.7806 GB, free: 140.8 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002979/1.084, allocations: 1.905 MB / 0.7825 GB, free: 139.8 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01202/1.096, allocations: 7.165 MB / 0.7895 GB, free: 134.5 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0028/1.099, allocations: 1.916 MB / 0.7913 GB, free: 133.3 MB / 0.5762 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.004062/1.103, allocations: 0.7226 MB / 0.792 GB, free: 133 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=154): time 1.218e-05/1.103, allocations: 0 / 0.792 GB, free: 133 MB / 0.5762 GB Notification: Performance of matching and sorting (n=154): time 0.0237/1.126, allocations: 8.024 MB / 0.7999 GB, free: 126.6 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.559e-05/1.127, allocations: 68.72 kB / 0.7999 GB, free: 126.6 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00824/1.135, allocations: 5.583 MB / 0.8054 GB, free: 121 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0008621/1.136, allocations: 65.7 kB / 0.8055 GB, free: 120.9 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.002144/1.138, allocations: 2.604 MB / 0.808 GB, free: 118.3 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.001136/1.139, allocations: 0.5567 MB / 0.8086 GB, free: 117.8 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001121/1.14, allocations: 0.7713 MB / 0.8093 GB, free: 117 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 5.687e-05/1.14, allocations: 301.1 kB / 0.8096 GB, free: 116.7 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002649/1.143, allocations: 1.904 MB / 0.8115 GB, free: 114.8 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00318/1.146, allocations: 3.166 MB / 0.8145 GB, free: 111.1 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005959/1.152, allocations: 5.024 MB / 0.8194 GB, free: 105.6 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.127e-05/1.152, allocations: 12 kB / 0.8195 GB, free: 105.6 MB / 0.5762 GB Notification: Performance of matching and sorting (n=402) (initialization): time 0.01421/1.166, allocations: 6.8 MB / 0.8261 GB, free: 98.8 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 6.742e-05/1.166, allocations: 49.88 kB / 0.8261 GB, free: 98.75 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.638e-05/1.166, allocations: 40 kB / 0.8262 GB, free: 98.71 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07395/1.24, allocations: 13.54 MB / 0.8394 GB, free: 85.21 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002984/1.243, allocations: 0.7098 MB / 0.8401 GB, free: 84.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008542/1.252, allocations: 5.482 MB / 0.8455 GB, free: 78.93 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005617/1.258, allocations: 244.2 kB / 0.8457 GB, free: 78.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005116/1.258, allocations: 207.3 kB / 0.8459 GB, free: 78.5 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.005259/1.263, allocations: 3.276 MB / 0.8491 GB, free: 75.21 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003091/1.267, allocations: 3.109 MB / 0.8521 GB, free: 71.55 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00616/1.273, allocations: 4.938 MB / 0.8569 GB, free: 66.13 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.647e-05/1.273, allocations: 8 kB / 0.857 GB, free: 66.12 MB / 0.5762 GB Notification: Performance of matching and sorting (n=402) (initialization_lambda0): time 0.01165/1.285, allocations: 6.518 MB / 0.8633 GB, free: 59.57 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 5.305e-05/1.285, allocations: 49.64 kB / 0.8634 GB, free: 59.52 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.006e-05/1.285, allocations: 32 kB / 0.8634 GB, free: 59.49 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07245/1.357, allocations: 13.3 MB / 0.8764 GB, free: 46.22 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002982/1.36, allocations: 0.7037 MB / 0.8771 GB, free: 45.52 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01149/1.372, allocations: 8.903 MB / 0.8858 GB, free: 36.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006097/1.378, allocations: 248.5 kB / 0.886 GB, free: 36.06 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008073/1.379, allocations: 203.8 kB / 0.8862 GB, free: 35.86 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.001092/1.38, allocations: 383.8 kB / 0.8866 GB, free: 35.48 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002026/1.382, allocations: 0.4899 MB / 0.887 GB, free: 34.98 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00806/1.39, allocations: 4.577 MB / 0.8915 GB, free: 30.39 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.269e-05/1.39, allocations: 23.94 kB / 0.8915 GB, free: 30.37 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/1.39, allocations: 4 kB / 0.8915 GB, free: 30.37 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00958/1.4, allocations: 5.664 MB / 0.8971 GB, free: 24.45 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02825/1.428, allocations: 10.92 MB / 0.9077 GB, free: 13.46 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.316e-05/1.428, allocations: 4 kB / 0.9077 GB, free: 13.46 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002297/1.43, allocations: 371.6 kB / 0.9081 GB, free: 13.09 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06622/1.496, allocations: 11.71 MB / 0.9195 GB, free: 1.367 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006025/1.497, allocations: 47.95 kB / 0.9196 GB, free: 1.32 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006009/1.503, allocations: 3.551 MB / 0.923 GB, free: 13.69 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/1.503, allocations: 8.031 kB / 0.923 GB, free: 13.68 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02418/1.527, allocations: 8.113 MB / 0.931 GB, free: 5.527 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00441/1.532, allocations: 0.9828 MB / 0.9319 GB, free: 4.52 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001912/1.534, allocations: 32 kB / 0.932 GB, free: 4.488 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004614/1.538, allocations: 147.8 kB / 0.9321 GB, free: 4.344 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004971/1.539, allocations: 105.8 kB / 0.9322 GB, free: 4.238 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003667/1.539, allocations: 87.92 kB / 0.9323 GB, free: 4.152 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.009905/1.549, allocations: 3.812 MB / 0.936 GB, free: 380 kB / 0.5919 GB Notification: Performance of sort global known variables: time 5.31e-07/1.549, allocations: 0 / 0.936 GB, free: 380 kB / 0.5919 GB Notification: Performance of remove unused functions: time 0.01584/1.565, allocations: 2.799 MB / 0.9387 GB, free: 13.6 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.003054/1.568, allocations: 0.6743 MB / 0.9394 GB, free: 12.95 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.02565/1.594, allocations: 8.965 MB / 0.9482 GB, free: 3.949 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 9.598e-06/1.594, allocations: 1.875 kB / 0.9482 GB, free: 3.949 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.006494/1.6, allocations: 2.316 MB / 0.9504 GB, free: 1.637 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01626/1.617, allocations: 2.909 MB / 0.9533 GB, free: 14.85 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02443/1.641, allocations: 10.88 MB / 0.9639 GB, free: 3.949 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003761/1.645, allocations: 3.416 MB / 0.9672 GB, free: 0.5 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.007672/1.653, allocations: 1.774 MB / 0.9689 GB, free: 14.72 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001867/1.655, allocations: 379.2 kB / 0.9693 GB, free: 14.35 MB / 0.6387 GB Notification: Performance of SimCode: time 2.014e-06/1.655, allocations: 8 kB / 0.9693 GB, free: 14.34 MB / 0.6387 GB Notification: Performance of Templates: time 0.4986/2.153, allocations: 122.6 MB / 1.089 GB, free: 157.6 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)