Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Processes.Tests.Flow_Resistance.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.1-main/package.mo", uses=false) Using package ThermofluidStream with version 0.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.1-main/package.mo) 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) Running command: translateModel(ThermofluidStream.Processes.Tests.Flow_Resistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|flowResistance.m_flow|flowResistance1.m_flow|flowResistance2.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Processes.Tests.Flow_Resistance") translateModel(ThermofluidStream.Processes.Tests.Flow_Resistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|flowResistance.m_flow|flowResistance1.m_flow|flowResistance2.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Processes.Tests.Flow_Resistance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001132/0.001132, allocations: 182.5 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.282/1.282, allocations: 205.1 MB / 221.8 MB, free: 8.484 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009964/0.0009963, allocations: 108.2 kB / 269.2 MB, free: 8.434 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.1-main/package.mo): time 0.6293/0.6293, allocations: 91.21 MB / 407.8 MB, free: 2.539 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001016/0.001016, allocations: 59.86 kB / 483.5 MB, free: 6.586 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2483/0.2493, allocations: 64.97 MB / 0.5357 GB, free: 33.77 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Flow_Resistance): time 0.3859/0.6352, allocations: 157.3 MB / 0.6893 GB, free: 1.461 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.01056/0.6458, allocations: 10.97 MB / 0.7 GB, free: 1.285 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008797/0.6468, allocations: 11.5 kB / 0.7 GB, free: 1.285 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.001226/0.648, allocations: 397.7 kB / 0.7004 GB, free: 1.266 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.002461/0.6505, allocations: 0.8144 MB / 0.7012 GB, free: 1.23 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.00206/0.6526, allocations: 0.6712 MB / 0.7018 GB, free: 1.199 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.00185/0.6544, allocations: 1.38 MB / 0.7032 GB, free: 1.199 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000318/0.6548, allocations: 175.3 kB / 0.7033 GB, free: 1.156 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001136/0.6559, allocations: 497.8 kB / 0.7038 GB, free: 1.145 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007014/0.6566, allocations: 0.5048 MB / 0.7043 GB, free: 1.145 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 9.56e-05/0.6567, allocations: 36.56 kB / 0.7043 GB, free: 1.145 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003036/0.6598, allocations: 1.489 MB / 0.7058 GB, free: 1.117 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 0.0001066/0.6599, allocations: 122.5 kB / 0.7059 GB, free: 1.117 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.0003399/0.6602, allocations: 326.1 kB / 0.7062 GB, free: 1.117 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.002155/0.6624, allocations: 1.283 MB / 0.7075 GB, free: 1.02 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.6624, allocations: 0 / 0.7075 GB, free: 1.02 MB / 0.4948 GB Notification: Performance of FrontEnd: time 7.71e-07/0.6624, allocations: 0 / 0.7075 GB, free: 1.02 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 7.845e-06/0.6624, allocations: 0 / 0.7075 GB, free: 1.02 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 124 * Number of variables: 124 Notification: Performance of Generate backend data structure: time 0.001678/0.6641, allocations: 1.054 MB / 0.7085 GB, free: 16.37 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.843e-05/0.6642, allocations: 8.688 kB / 0.7085 GB, free: 16.37 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001311/0.6643, allocations: 71.81 kB / 0.7086 GB, free: 16.33 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005052/0.6648, allocations: 432.2 kB / 0.709 GB, free: 16.06 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.352e-05/0.6649, allocations: 35.72 kB / 0.709 GB, free: 16.06 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.458e-05/0.665, allocations: 53.86 kB / 0.7091 GB, free: 16.06 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000807/0.6658, allocations: 0.5527 MB / 0.7096 GB, free: 15.98 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.989e-05/0.6658, allocations: 0.6875 kB / 0.7096 GB, free: 15.98 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.109e-05/0.6659, allocations: 18.09 kB / 0.7096 GB, free: 15.98 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.26e-05/0.6659, allocations: 15.56 kB / 0.7097 GB, free: 15.98 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007184/0.6666, allocations: 0.5029 MB / 0.7102 GB, free: 15.97 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002564/0.6692, allocations: 2.474 MB / 0.7126 GB, free: 14.35 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006587/0.6699, allocations: 0.5347 MB / 0.7131 GB, free: 14.25 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003013/0.6702, allocations: 272.2 kB / 0.7133 GB, free: 14.22 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002071/0.6722, allocations: 2.572 MB / 0.7159 GB, free: 11.97 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.582e-05/0.6723, allocations: 49.31 kB / 0.7159 GB, free: 11.93 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=56): time 2.455e-06/0.6723, allocations: 0 / 0.7159 GB, free: 11.93 MB / 0.5105 GB Notification: Performance of matching and sorting (n=56): time 0.002025/0.6743, allocations: 1.143 MB / 0.717 GB, free: 11.44 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.112e-05/0.6744, allocations: 143.2 kB / 0.7172 GB, free: 11.28 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003669/0.6748, allocations: 420.3 kB / 0.7176 GB, free: 11.16 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 3.606e-05/0.6748, allocations: 34.92 kB / 0.7176 GB, free: 11.13 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001336/0.675, allocations: 265.3 kB / 0.7178 GB, free: 11 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001259/0.6751, allocations: 194.2 kB / 0.718 GB, free: 10.88 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000122/0.6752, allocations: 94.78 kB / 0.7181 GB, free: 10.86 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001195/0.6753, allocations: 363.7 kB / 0.7185 GB, free: 10.55 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002278/0.6756, allocations: 162 kB / 0.7186 GB, free: 10.55 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002783/0.6759, allocations: 241.5 kB / 0.7189 GB, free: 10.48 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005296/0.6764, allocations: 432.5 kB / 0.7193 GB, free: 10.4 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-06/0.6764, allocations: 3.938 kB / 0.7193 GB, free: 10.4 MB / 0.5105 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001174/0.6776, allocations: 0.6724 MB / 0.7199 GB, free: 10.29 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.788e-05/0.6776, allocations: 7.719 kB / 0.7199 GB, free: 10.29 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.6776, allocations: 0 / 0.7199 GB, free: 10.29 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007315/0.6784, allocations: 197.2 kB / 0.7201 GB, free: 10.25 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005708/0.679, allocations: 108.7 kB / 0.7202 GB, free: 10.25 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002733/0.6817, allocations: 4.45 MB / 0.7246 GB, free: 6.086 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004074/0.6821, allocations: 46.5 kB / 0.7246 GB, free: 6.062 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.685e-05/0.6822, allocations: 24.48 kB / 0.7246 GB, free: 6.062 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0002338/0.6824, allocations: 178.2 kB / 0.7248 GB, free: 5.941 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001461/0.6826, allocations: 54.5 kB / 0.7249 GB, free: 5.914 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001293/0.6839, allocations: 0.755 MB / 0.7256 GB, free: 5.797 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.398e-06/0.6839, allocations: 9.938 kB / 0.7256 GB, free: 5.797 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/0.6839, allocations: 10.12 kB / 0.7256 GB, free: 5.789 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.186e-06/0.6839, allocations: 4.984 kB / 0.7256 GB, free: 5.789 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002126/0.6861, allocations: 1.618 MB / 0.7272 GB, free: 5.195 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/0.6861, allocations: 0 / 0.7272 GB, free: 5.195 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002373/0.6863, allocations: 83.62 kB / 0.7273 GB, free: 5.195 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003518/0.6867, allocations: 124.5 kB / 0.7274 GB, free: 5.16 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.921e-05/0.6867, allocations: 25.34 kB / 0.7274 GB, free: 5.156 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003245/0.69, allocations: 5.382 MB / 0.7327 GB, free: 104 kB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.003e-06/0.69, allocations: 4.125 kB / 0.7327 GB, free: 100 kB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02314/0.7132, allocations: 12.68 MB / 0.7451 GB, free: 9.023 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001289/0.7133, allocations: 145.5 kB / 0.7452 GB, free: 8.887 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.172e-05/0.7134, allocations: 17.03 kB / 0.7452 GB, free: 8.883 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003531/0.7138, allocations: 18.25 kB / 0.7452 GB, free: 8.879 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001151/0.7139, allocations: 48.78 kB / 0.7453 GB, free: 8.879 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.031e-05/0.7139, allocations: 23.2 kB / 0.7453 GB, free: 8.879 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.000275/0.7142, allocations: 294.6 kB / 0.7456 GB, free: 8.793 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.6e-07/0.7142, allocations: 4 kB / 0.7456 GB, free: 8.789 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.00148/0.7157, allocations: 0.5176 MB / 0.7461 GB, free: 8.715 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (flowResistance1.m_flow,flowResistance3.m_flow,flowResistance.m_flow,flowResistance2.m_flow) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009443/0.7167, allocations: 0.5563 MB / 0.7466 GB, free: 8.5 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0014/0.7181, allocations: 0.7283 MB / 0.7474 GB, free: 8.262 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.7181, allocations: 0 / 0.7474 GB, free: 8.262 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0008092/0.7189, allocations: 0.7289 MB / 0.7481 GB, free: 7.816 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001261/0.7202, allocations: 184.1 kB / 0.7482 GB, free: 7.801 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002723/0.7229, allocations: 2.363 MB / 0.7506 GB, free: 6.285 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004418/0.7234, allocations: 0.9002 MB / 0.7514 GB, free: 5.574 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0004647/0.7239, allocations: 118 kB / 0.7515 GB, free: 5.531 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001487/0.724, allocations: 64.81 kB / 0.7516 GB, free: 5.523 MB / 0.5261 GB Notification: Performance of SimCode: time 6.71e-07/0.724, allocations: 4 kB / 0.7516 GB, free: 5.52 MB / 0.5261 GB Notification: Performance of Templates: time 0.02787/0.7519, allocations: 19.65 MB / 0.7708 GB, free: 7.492 MB / 0.5417 GB make -j1 -f ThermofluidStream_ThermofluidStream.Processes.Tests.Flow_Resistance.makefile (rm -f ThermofluidStream_ThermofluidStream.Processes.Tests.Flow_Resistance.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Processes.Tests.Flow_Resistance.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Processes.Tests.Flow_Resistance.pipe >> ../files/ThermofluidStream_ThermofluidStream.Processes.Tests.Flow_Resistance.sim & ./ThermofluidStream_ThermofluidStream.Processes.Tests.Flow_Resistance -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Processes.Tests.Flow_Resistance.pipe 2>&1)