Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.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.Undirected.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|boundary_fore.rear.m_flow|pulse.T_start|pulse.count|tanValve.rear.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve") translateModel(ThermofluidStream.Undirected.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|boundary_fore.rear.m_flow|pulse.T_start|pulse.count|tanValve.rear.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001616/0.001616, allocations: 183.2 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.206/1.206, allocations: 205.1 MB / 221.8 MB, free: 8.488 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.0009418/0.0009414, allocations: 94.3 kB / 269.2 MB, free: 8.441 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.1-main/package.mo): time 0.6056/0.6056, allocations: 91.22 MB / 407.8 MB, free: 2.547 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001002/0.001002, allocations: 51.92 kB / 483.5 MB, free: 6.598 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2396/0.2406, allocations: 64.97 MB / 0.5357 GB, free: 33.64 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.3867/0.6273, allocations: 171.6 MB / 0.7032 GB, free: 1.195 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.01122/0.6385, allocations: 11.09 MB / 0.7141 GB, free: 1.004 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001313/0.6399, allocations: 28.91 kB / 0.7141 GB, free: 1.004 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.0017/0.6416, allocations: 0.7 MB / 0.7148 GB, free: 0.9805 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.003476/0.6451, allocations: 1.539 MB / 0.7163 GB, free: 0.8984 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.00242/0.6476, allocations: 0.9612 MB / 0.7172 GB, free: 0.8711 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.003081/0.6507, allocations: 3.336 MB / 0.7205 GB, free: 0.8633 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005053/0.6512, allocations: 408 kB / 0.7209 GB, free: 0.7422 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001376/0.6526, allocations: 0.8991 MB / 0.7217 GB, free: 0.7344 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001392/0.654, allocations: 1.35 MB / 0.7231 GB, free: 0.7266 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 0.0001524/0.6541, allocations: 93.31 kB / 0.7232 GB, free: 0.7266 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003832/0.658, allocations: 2.005 MB / 0.7251 GB, free: 0.6875 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 0.0002382/0.6582, allocations: 309.1 kB / 0.7254 GB, free: 0.6602 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.0006712/0.6589, allocations: 0.7298 MB / 0.7261 GB, free: 468 kB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.003131/0.662, allocations: 2.457 MB / 0.7285 GB, free: 144 kB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.6621, allocations: 0 / 0.7285 GB, free: 144 kB / 0.4948 GB Notification: Performance of FrontEnd: time 9.72e-07/0.6621, allocations: 0 / 0.7285 GB, free: 144 kB / 0.4948 GB Notification: Performance of Transformations before backend: time 1.59e-05/0.6621, allocations: 0 / 0.7285 GB, free: 144 kB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 305 * Number of variables: 305 Notification: Performance of Generate backend data structure: time 0.003449/0.6655, allocations: 1.912 MB / 0.7304 GB, free: 15.21 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.33e-05/0.6656, allocations: 10.06 kB / 0.7304 GB, free: 15.21 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002628/0.6659, allocations: 153.4 kB / 0.7305 GB, free: 15.13 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008996/0.6668, allocations: 0.7213 MB / 0.7312 GB, free: 14.82 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.277e-05/0.6668, allocations: 93.25 kB / 0.7313 GB, free: 14.81 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001496/0.667, allocations: 126.1 kB / 0.7315 GB, free: 14.81 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001998/0.669, allocations: 1.394 MB / 0.7328 GB, free: 14.72 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.397e-05/0.669, allocations: 0 / 0.7328 GB, free: 14.72 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001001/0.6691, allocations: 56.86 kB / 0.7329 GB, free: 14.71 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.275e-05/0.6692, allocations: 27.09 kB / 0.7329 GB, free: 14.71 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002406/0.6716, allocations: 1.673 MB / 0.7345 GB, free: 14.7 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006402/0.678, allocations: 6.29 MB / 0.7407 GB, free: 11.04 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002227/0.6802, allocations: 1.452 MB / 0.7421 GB, free: 10.97 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001007/0.6813, allocations: 0.7389 MB / 0.7428 GB, free: 10.96 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004418/0.6857, allocations: 4.102 MB / 0.7468 GB, free: 7.363 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001249/0.6869, allocations: 0.7635 MB / 0.7476 GB, free: 6.906 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=134): time 3.196e-06/0.687, allocations: 4 kB / 0.7476 GB, free: 6.902 MB / 0.5105 GB Notification: Performance of matching and sorting (n=135): time 0.007529/0.6945, allocations: 4.071 MB / 0.7515 GB, free: 4.527 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.328e-05/0.6946, allocations: 66.09 kB / 0.7516 GB, free: 4.461 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005759/0.6951, allocations: 0.5446 MB / 0.7521 GB, free: 4.133 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 7.91e-05/0.6952, allocations: 52.45 kB / 0.7522 GB, free: 4.082 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003222/0.6956, allocations: 469.9 kB / 0.7526 GB, free: 3.672 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003044/0.6959, allocations: 454 kB / 0.7531 GB, free: 3.281 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003357/0.6962, allocations: 219.8 kB / 0.7533 GB, free: 3.156 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001499/0.6964, allocations: 401.2 kB / 0.7537 GB, free: 2.773 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009604/0.6973, allocations: 0.5432 MB / 0.7542 GB, free: 2.492 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001036/0.6984, allocations: 0.6553 MB / 0.7548 GB, free: 2.121 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002151/0.7006, allocations: 1.303 MB / 0.7561 GB, free: 1.039 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.377e-06/0.7006, allocations: 4 kB / 0.7561 GB, free: 1.035 MB / 0.5105 GB Notification: Performance of matching and sorting (n=146) (initialization): time 0.003025/0.7036, allocations: 1.634 MB / 0.7577 GB, free: 15.4 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 3.827e-05/0.7037, allocations: 33.7 kB / 0.7577 GB, free: 15.36 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.18e-05/0.7037, allocations: 4 kB / 0.7577 GB, free: 15.36 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004945/0.7042, allocations: 163.4 kB / 0.7579 GB, free: 15.2 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009095/0.7051, allocations: 243.7 kB / 0.7581 GB, free: 14.97 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003622/0.7087, allocations: 2.514 MB / 0.7606 GB, free: 12.34 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007912/0.7095, allocations: 83.78 kB / 0.7607 GB, free: 12.26 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001182/0.7097, allocations: 55.97 kB / 0.7607 GB, free: 12.21 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (129): * Single equations (assignments): 124 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,11,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000453/0.7101, allocations: 280.4 kB / 0.761 GB, free: 11.94 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001938/0.7103, allocations: 94.81 kB / 0.7611 GB, free: 11.84 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004087/0.7144, allocations: 2.151 MB / 0.7632 GB, free: 9.734 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.66e-05/0.7145, allocations: 19.94 kB / 0.7632 GB, free: 9.715 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.995e-06/0.7145, allocations: 4 kB / 0.7632 GB, free: 9.711 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.547e-05/0.7145, allocations: 7.969 kB / 0.7632 GB, free: 9.703 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005541/0.72, allocations: 3.551 MB / 0.7667 GB, free: 6.141 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.752e-06/0.7201, allocations: 3.938 kB / 0.7667 GB, free: 6.137 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009896/0.7211, allocations: 286.5 kB / 0.767 GB, free: 5.871 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004197/0.7215, allocations: 140.5 kB / 0.7671 GB, free: 5.734 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001134/0.7216, allocations: 51.97 kB / 0.7671 GB, free: 5.684 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002318/0.7239, allocations: 2.222 MB / 0.7693 GB, free: 3.332 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.724, allocations: 4 kB / 0.7693 GB, free: 3.328 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06049/0.7844, allocations: 22.87 MB / 0.7916 GB, free: 12.18 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002274/0.7847, allocations: 175.7 kB / 0.7918 GB, free: 11.99 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002121/0.7849, allocations: 28 kB / 0.7918 GB, free: 11.96 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007838/0.7857, allocations: 91.83 kB / 0.7919 GB, free: 11.87 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002919/0.786, allocations: 129.1 kB / 0.792 GB, free: 11.75 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001459/0.7862, allocations: 55.97 kB / 0.7921 GB, free: 11.69 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0004259/0.7866, allocations: 385.6 kB / 0.7925 GB, free: 11.32 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7866, allocations: 4 kB / 0.7925 GB, free: 11.31 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.002484/0.7891, allocations: 0.8903 MB / 0.7933 GB, free: 10.42 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (flowResistance1.rear.m_flow,flowResistance2.rear.m_flow) * 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 (152): * Single equations (assignments): 146 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,11,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00159/0.7907, allocations: 0.722 MB / 0.794 GB, free: 9.75 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.003093/0.7938, allocations: 1.764 MB / 0.7958 GB, free: 7.973 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.7938, allocations: 0 / 0.7958 GB, free: 7.973 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001798/0.7957, allocations: 1.089 MB / 0.7968 GB, free: 6.898 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001684/0.7973, allocations: 332.2 kB / 0.7972 GB, free: 6.574 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005776/0.8031, allocations: 4.126 MB / 0.8012 GB, free: 2.391 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000733/0.8039, allocations: 1.206 MB / 0.8024 GB, free: 1.156 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.001492/0.8054, allocations: 400 kB / 0.8027 GB, free: 0.8086 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006762/0.8061, allocations: 167.4 kB / 0.8029 GB, free: 0.6445 MB / 0.5573 GB Notification: Performance of SimCode: time 5.82e-07/0.8061, allocations: 0 / 0.8029 GB, free: 0.6445 MB / 0.5573 GB Notification: Performance of Templates: time 0.05563/0.8617, allocations: 39.4 MB / 0.8414 GB, free: 9.523 MB / 0.6042 GB make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.makefile (rm -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.sim & ./ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe 2>&1)