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.006153/0.006153, allocations: 169 kB / 15.13 MB, free: 6.023 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.473/1.473, allocations: 205.4 MB / 221.3 MB, free: 13.81 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.0006997/0.0006996, allocations: 90.3 kB / 269.6 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.7015/0.7015, allocations: 90.6 MB / 408.5 MB, free: 14.95 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.000294/0.0002941, allocations: 11.98 kB / 485.2 MB, free: 2.039 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3132/0.3135, allocations: 66.27 MB / 0.5386 GB, free: 45.62 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.2036/0.5171, allocations: 207.1 MB / 0.7409 GB, free: 12.32 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.3245/0.8417, allocations: 23.09 MB / 0.7634 GB, free: 5.949 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003646/0.8454, allocations: 38.25 kB / 0.7635 GB, free: 5.949 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.004836/0.8502, allocations: 1.392 MB / 0.7648 GB, free: 5.906 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.008762/0.8591, allocations: 2.316 MB / 0.7671 GB, free: 5.809 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.005412/0.8645, allocations: 1.253 MB / 0.7683 GB, free: 5.766 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.006364/0.8709, allocations: 3.895 MB / 0.7721 GB, free: 5.766 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002302/0.8732, allocations: 0.8604 MB / 0.773 GB, free: 21.63 MB / 0.573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003179/0.8764, allocations: 1.112 MB / 0.774 GB, free: 21.63 MB / 0.573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00419/0.8807, allocations: 1.716 MB / 0.7757 GB, free: 21.62 MB / 0.573 GB Notification: Performance of NFPackage.collectConstants: time 0.0007243/0.8814, allocations: 98.44 kB / 0.7758 GB, free: 21.62 MB / 0.573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008448/0.8899, allocations: 2.797 MB / 0.7786 GB, free: 21.56 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 0.001221/0.8911, allocations: 376.6 kB / 0.7789 GB, free: 21.56 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 0.001799/0.893, allocations: 484.8 kB / 0.7794 GB, free: 21.53 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.006715/0.8997, allocations: 3.102 MB / 0.7824 GB, free: 21.28 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 6.743e-06/0.8997, allocations: 0 / 0.7824 GB, free: 21.28 MB / 0.573 GB Notification: Performance of FrontEnd: time 3.887e-06/0.8997, allocations: 1.734 kB / 0.7824 GB, free: 21.28 MB / 0.573 GB Notification: Performance of Transformations before backend: time 0.0001173/0.8999, allocations: 3.844 kB / 0.7824 GB, free: 21.28 MB / 0.573 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.007472/0.9073, allocations: 2.523 MB / 0.7849 GB, free: 20.01 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 5.215e-05/0.9074, allocations: 8.688 kB / 0.7849 GB, free: 20.01 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009506/0.9084, allocations: 245.5 kB / 0.7851 GB, free: 19.89 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002182/0.9106, allocations: 1.076 MB / 0.7862 GB, free: 19.53 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001297/0.9107, allocations: 148.2 kB / 0.7863 GB, free: 19.53 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003512/0.9111, allocations: 201.2 kB / 0.7865 GB, free: 19.52 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004656/0.9157, allocations: 2.327 MB / 0.7888 GB, free: 19.41 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.438e-05/0.9158, allocations: 0 / 0.7888 GB, free: 19.41 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001727/0.916, allocations: 76.84 kB / 0.7888 GB, free: 19.41 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001064/0.9161, allocations: 73.77 kB / 0.7889 GB, free: 19.41 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004205/0.9203, allocations: 2.256 MB / 0.7911 GB, free: 19.39 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01308/0.9334, allocations: 10.2 MB / 0.8011 GB, free: 13.91 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003018/0.9365, allocations: 2.117 MB / 0.8031 GB, free: 13.82 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001624/0.9381, allocations: 1.095 MB / 0.8042 GB, free: 13.79 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007281/0.9454, allocations: 6.649 MB / 0.8107 GB, free: 9.246 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001705/0.9472, allocations: 1.104 MB / 0.8118 GB, free: 9.152 MB / 0.573 GB Notification: Performance of pre-optimization done (n=199): time 4.339e-06/0.9472, allocations: 0 / 0.8118 GB, free: 9.152 MB / 0.573 GB Notification: Performance of matching and sorting (n=204): time 0.0123/0.9595, allocations: 6.492 MB / 0.8181 GB, free: 7.457 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.164e-05/0.9596, allocations: 105.3 kB / 0.8182 GB, free: 7.363 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00105/0.9607, allocations: 0.84 MB / 0.819 GB, free: 7.215 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001878/0.9609, allocations: 59.73 kB / 0.8191 GB, free: 7.184 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005732/0.9614, allocations: 0.7129 MB / 0.8198 GB, free: 6.867 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005444/0.962, allocations: 0.68 MB / 0.8205 GB, free: 6.398 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001109/0.9621, allocations: 35.03 kB / 0.8205 GB, free: 6.398 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001703/0.9623, allocations: 370.1 kB / 0.8208 GB, free: 6.074 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001258/0.9636, allocations: 0.7199 MB / 0.8215 GB, free: 5.992 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001262/0.9648, allocations: 0.88 MB / 0.8224 GB, free: 5.801 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0014/0.9662, allocations: 0.8912 MB / 0.8233 GB, free: 5.688 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/0.9663, allocations: 4 kB / 0.8233 GB, free: 5.684 MB / 0.573 GB Notification: Performance of matching and sorting (n=223) (initialization): time 0.004077/0.9703, allocations: 2.464 MB / 0.8257 GB, free: 5.207 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 5.625e-05/0.9704, allocations: 64.92 kB / 0.8258 GB, free: 5.141 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.217e-05/0.9704, allocations: 2.562 kB / 0.8258 GB, free: 5.141 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001294/0.9717, allocations: 454.2 kB / 0.8262 GB, free: 5.031 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001268/0.973, allocations: 322.2 kB / 0.8265 GB, free: 4.98 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006711/0.9797, allocations: 5.949 MB / 0.8323 GB, free: 1.895 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001787/0.9816, allocations: 133.6 kB / 0.8324 GB, free: 1.855 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001942/0.9818, allocations: 72.67 kB / 0.8325 GB, free: 1.844 MB / 0.573 GB Warning: Assuming fixed start value for the following 1 variables: flowResistance2.inlet.m_flow:VARIABLE(flow=true unit = "kg/s" fixed = true ) "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 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 10,(4,93.8%) 28} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009959/0.9828, allocations: 461.2 kB / 0.8329 GB, free: 1.707 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002701/0.9831, allocations: 148.5 kB / 0.8331 GB, free: 1.629 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005504/0.9886, allocations: 2.879 MB / 0.8359 GB, free: 1.043 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.985e-05/0.9886, allocations: 25.69 kB / 0.8359 GB, free: 1.043 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.086e-05/0.9886, allocations: 6.656 kB / 0.8359 GB, free: 1.043 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.457e-05/0.9887, allocations: 11.95 kB / 0.8359 GB, free: 1.031 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0083/0.997, allocations: 5.262 MB / 0.8411 GB, free: 15.56 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-05/0.997, allocations: 2.031 kB / 0.8411 GB, free: 15.56 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001253/0.9983, allocations: 338 kB / 0.8414 GB, free: 15.51 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001337/0.9996, allocations: 478.7 kB / 0.8419 GB, free: 15.36 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000158/0.9998, allocations: 74.83 kB / 0.8419 GB, free: 15.35 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006818/1.007, allocations: 5.96 MB / 0.8477 GB, free: 11.46 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/1.007, allocations: 1.562 kB / 0.8477 GB, free: 11.46 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006416/1.013, allocations: 3.823 MB / 0.8515 GB, free: 8.984 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009587/1.014, allocations: 469.1 kB / 0.8519 GB, free: 8.652 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002143/1.014, allocations: 46.88 kB / 0.852 GB, free: 8.641 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001163/1.015, allocations: 139.1 kB / 0.8521 GB, free: 8.531 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003508/1.016, allocations: 185.1 kB / 0.8523 GB, free: 8.375 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001644/1.016, allocations: 78.33 kB / 0.8524 GB, free: 8.316 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0007578/1.017, allocations: 0.5773 MB / 0.8529 GB, free: 7.875 MB / 0.5886 GB Notification: Performance of sort global known variables: time 2.21e-07/1.017, allocations: 0 / 0.8529 GB, free: 7.875 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.002877/1.02, allocations: 0.8728 MB / 0.8538 GB, free: 7.125 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (switch.tanValve.outlet.m_flow,flowResistance2.inlet.m_flow,fourWaySwitch.switch.tanValve.outlet.m_flow,fourWaySwitch.switch1.tanValve.outlet.m_flow,flowResistance3.inlet.m_flow,flowResistance6.inlet.m_flow) * Number of discrete variables: 6 ($whenCondition1,pulse.T_start,pulse.count,$whenCondition2,pulse1.T_start,pulse1.count) * Number of discrete states: 2 (pulse1.count,pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (185): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 10,(4,93.8%) 28} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001763/1.021, allocations: 0.9684 MB / 0.8547 GB, free: 6.301 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.004359/1.026, allocations: 2.539 MB / 0.8572 GB, free: 4.5 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/1.026, allocations: 0 / 0.8572 GB, free: 4.5 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.002721/1.029, allocations: 1.616 MB / 0.8588 GB, free: 3.355 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002638/1.031, allocations: 0.5104 MB / 0.8593 GB, free: 2.992 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006407/1.038, allocations: 4.584 MB / 0.8638 GB, free: 14.93 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001036/1.039, allocations: 1.443 MB / 0.8652 GB, free: 13.48 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.001557/1.04, allocations: 380.5 kB / 0.8655 GB, free: 13.13 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000417/1.041, allocations: 163.7 kB / 0.8657 GB, free: 13 MB / 0.6042 GB Notification: Performance of SimCode: time 1.332e-06/1.041, allocations: 0 / 0.8657 GB, free: 13 MB / 0.6042 GB Notification: Performance of Templates: time 0.06275/1.103, allocations: 39.17 MB / 0.9039 GB, free: 6.328 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) diffSimulationResults("ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.Switch_res.mat","/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.Switch_ref.mat","../files/ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches