Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.Switch.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.0-OM_adaptions/package.mo", uses=false) Using package ThermofluidStream with version 0.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/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.FlowControl.Tests.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|fourWaySwitch.switch.tanValve.outlet.m_flow|fourWaySwitch.switch1.tanValve.outlet.m_flow|pulse.T_start|pulse.count|pulse1.T_start|pulse1.count|source.outlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow|switch.tanValve.outlet.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.Switch") translateModel(ThermofluidStream.FlowControl.Tests.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|fourWaySwitch.switch.tanValve.outlet.m_flow|fourWaySwitch.switch1.tanValve.outlet.m_flow|pulse.T_start|pulse.count|pulse1.T_start|pulse1.count|source.outlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow|switch.tanValve.outlet.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.Switch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008296/0.0008296, allocations: 170.5 kB / 16.11 MB, free: 5.688 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.137/1.137, allocations: 205 MB / 221.9 MB, free: 9.141 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.0006987/0.000699, allocations: 91.92 kB / 269.9 MB, free: 8.668 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.6044/0.6044, allocations: 90.52 MB / 408.3 MB, free: 3.926 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0002749/0.000275, allocations: 8.219 kB / 484.9 MB, free: 7.195 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2261/0.2264, allocations: 65.8 MB / 0.5378 GB, free: 34.95 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.3815/0.6079, allocations: 221.7 MB / 0.7543 GB, free: 116 kB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.02167/0.6296, allocations: 24.82 MB / 0.7785 GB, free: 11.7 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002321/0.6319, allocations: 35.44 kB / 0.7786 GB, free: 11.7 MB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 0.003824/0.6358, allocations: 1.476 MB / 0.78 GB, free: 11.12 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.006052/0.6418, allocations: 2.265 MB / 0.7822 GB, free: 10.32 MB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.004128/0.646, allocations: 1.643 MB / 0.7838 GB, free: 9.391 MB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 0.003741/0.6497, allocations: 4.403 MB / 0.7881 GB, free: 7.922 MB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001092/0.6508, allocations: 0.9626 MB / 0.7891 GB, free: 7.301 MB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0016/0.6525, allocations: 1.153 MB / 0.7902 GB, free: 6.352 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001825/0.6543, allocations: 1.77 MB / 0.7919 GB, free: 4.758 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 0.0001888/0.6545, allocations: 104 kB / 0.792 GB, free: 4.656 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006025/0.6605, allocations: 3.261 MB / 0.7952 GB, free: 1.969 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.0003562/0.6609, allocations: 398.2 kB / 0.7956 GB, free: 1.605 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.001222/0.6621, allocations: 1.107 MB / 0.7967 GB, free: 0.5195 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.005724/0.6679, allocations: 4.192 MB / 0.8008 GB, free: 12.54 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.6679, allocations: 0 / 0.8008 GB, free: 12.54 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.655e-06/0.6679, allocations: 3.984 kB / 0.8008 GB, free: 12.54 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 3.498e-05/0.6679, allocations: 0 / 0.8008 GB, free: 12.54 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 496 * Number of variables: 496 Notification: Performance of Generate backend data structure: time 0.004661/0.6726, allocations: 2.503 MB / 0.8032 GB, free: 9.984 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.681e-05/0.6726, allocations: 8.031 kB / 0.8032 GB, free: 9.977 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004113/0.6731, allocations: 244.9 kB / 0.8035 GB, free: 9.738 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001332/0.6744, allocations: 1.113 MB / 0.8045 GB, free: 8.633 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9e-05/0.6745, allocations: 146.2 kB / 0.8047 GB, free: 8.492 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000263/0.6748, allocations: 204.2 kB / 0.8049 GB, free: 8.293 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003486/0.6783, allocations: 2.344 MB / 0.8072 GB, free: 5.938 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.591e-05/0.6783, allocations: 6.156 kB / 0.8072 GB, free: 5.934 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001536/0.6785, allocations: 75.75 kB / 0.8072 GB, free: 5.863 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.674e-05/0.6786, allocations: 78.69 kB / 0.8073 GB, free: 5.785 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003453/0.682, allocations: 2.267 MB / 0.8095 GB, free: 3.516 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01002/0.692, allocations: 10.19 MB / 0.8195 GB, free: 8.484 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0031/0.6952, allocations: 2.12 MB / 0.8216 GB, free: 6.352 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001637/0.6968, allocations: 1.104 MB / 0.8226 GB, free: 5.242 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006099/0.7029, allocations: 6.638 MB / 0.8291 GB, free: 13.85 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00173/0.7047, allocations: 1.115 MB / 0.8302 GB, free: 12.71 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=199): time 4.659e-06/0.7047, allocations: 0 / 0.8302 GB, free: 12.71 MB / 0.5573 GB Notification: Performance of matching and sorting (n=204): time 0.01124/0.7159, allocations: 6.527 MB / 0.8366 GB, free: 6.016 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.471e-05/0.716, allocations: 107 kB / 0.8367 GB, free: 5.891 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008978/0.7169, allocations: 0.8421 MB / 0.8375 GB, free: 5.027 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001134/0.7171, allocations: 64.89 kB / 0.8376 GB, free: 4.961 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004533/0.7175, allocations: 0.7117 MB / 0.8383 GB, free: 4.238 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004411/0.718, allocations: 0.6794 MB / 0.8389 GB, free: 3.566 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.17e-05/0.7181, allocations: 40 kB / 0.839 GB, free: 3.527 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001218/0.7182, allocations: 369.9 kB / 0.8393 GB, free: 3.16 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001219/0.7194, allocations: 0.7224 MB / 0.84 GB, free: 2.438 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001371/0.7208, allocations: 0.8879 MB / 0.8409 GB, free: 1.523 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006991/0.7278, allocations: 2.853 MB / 0.8437 GB, free: 14.63 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.7278, allocations: 0 / 0.8437 GB, free: 14.63 MB / 0.573 GB Notification: Performance of matching and sorting (n=223) (initialization): time 0.004239/0.7321, allocations: 2.483 MB / 0.8461 GB, free: 12.15 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 4.393e-05/0.7321, allocations: 63.41 kB / 0.8462 GB, free: 12.07 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.338e-06/0.7321, allocations: 0 / 0.8462 GB, free: 12.07 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001176/0.7333, allocations: 459.8 kB / 0.8466 GB, free: 11.62 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001226/0.7346, allocations: 327.3 kB / 0.8469 GB, free: 11.32 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006678/0.7413, allocations: 5.964 MB / 0.8527 GB, free: 5.113 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001199/0.7425, allocations: 135.8 kB / 0.8529 GB, free: 4.98 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000156/0.7426, allocations: 75.95 kB / 0.8529 GB, free: 4.906 MB / 0.573 GB Warning: Assuming fixed start value for the following 1 variables: switch.tanValve.outlet.m_flow:VARIABLE(flow=true unit = "kg/s" fixed = true stateSelect=StateSelect.prefer ) "Mass flow rate" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 10 ($PRE.pulse.T_start,$PRE.pulse.count,$whenCondition1,pulse.T_start,pulse.count,$whenCondition2,$PRE.pulse1.T_start,pulse1.T_start,$PRE.pulse1.count,pulse1.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (176): * Single equations (assignments): 169 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,10,100.0%), (4,28,93.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007486/0.7434, allocations: 450.8 kB / 0.8534 GB, free: 4.473 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000273/0.7437, allocations: 153.4 kB / 0.8535 GB, free: 4.324 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005252/0.7489, allocations: 2.875 MB / 0.8563 GB, free: 1.469 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.322e-05/0.749, allocations: 15.95 kB / 0.8563 GB, free: 1.453 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.17e-06/0.749, allocations: 0 / 0.8563 GB, free: 1.453 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006518/0.7496, allocations: 466.8 kB / 0.8568 GB, free: 0.9766 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001989/0.7498, allocations: 44 kB / 0.8568 GB, free: 0.9336 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009156/0.7508, allocations: 135.7 kB / 0.857 GB, free: 0.8008 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000299/0.7511, allocations: 193.5 kB / 0.8571 GB, free: 0.6094 MB / 0.573 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.005559/0.7566, allocations: 2.866 MB / 0.8599 GB, free: 13.77 MB / 0.5886 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.005262/0.7619, allocations: 3.61 MB / 0.8635 GB, free: 10.14 MB / 0.5886 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001497/0.7634, allocations: 1.03 MB / 0.8645 GB, free: 9.113 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0006636/0.7641, allocations: 0.5834 MB / 0.865 GB, free: 8.52 MB / 0.5886 GB Notification: Performance of Backend: time 4.31e-07/0.7641, allocations: 0 / 0.865 GB, free: 8.52 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.005055/0.7692, allocations: 2.927 MB / 0.8679 GB, free: 5.602 MB / 0.5886 GB Notification: Performance of SimCode: time 0.005613/0.7748, allocations: 4.926 MB / 0.8727 GB, free: 0.6406 MB / 0.5886 GB Notification: Performance of Templates: time 0.0578/0.8326, allocations: 43.27 MB / 0.915 GB, free: 5.59 MB / 0.6355 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.Switch.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.Switch.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.Switch.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.Switch.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.Switch.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.Switch -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.Switch.pipe 2>&1)