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.008048/0.008048, allocations: 171.4 kB / 15.12 MB, free: 5.559 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.741/1.741, allocations: 205.4 MB / 221.3 MB, free: 13.82 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.001083/0.001083, allocations: 102.8 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.8636/0.8636, allocations: 90.58 MB / 408.4 MB, free: 14.99 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003274/0.0003275, allocations: 12 kB / 485.2 MB, free: 2.086 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4557/0.4561, allocations: 66.28 MB / 0.5386 GB, free: 45.43 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.2425/0.6986, allocations: 191.2 MB / 0.7253 GB, free: 12.38 MB / 0.5417 GB Notification: Performance of NFInst.instExpressions: time 0.0285/0.7272, allocations: 20.76 MB / 0.7456 GB, free: 7.59 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003192/0.7304, allocations: 35.88 kB / 0.7456 GB, free: 7.555 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.005143/0.7356, allocations: 1.455 MB / 0.747 GB, free: 6.094 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.008706/0.7443, allocations: 2.36 MB / 0.7493 GB, free: 3.727 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.005252/0.7496, allocations: 1.296 MB / 0.7506 GB, free: 2.43 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.005314/0.755, allocations: 2.273 MB / 0.7528 GB, free: 160 kB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.3852/1.14, allocations: 0.855 MB / 0.7536 GB, free: 6.922 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002988/1.143, allocations: 1.013 MB / 0.7546 GB, free: 6.918 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002337/1.146, allocations: 1.436 MB / 0.756 GB, free: 6.914 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 0.0003181/1.146, allocations: 98.22 kB / 0.7561 GB, free: 6.914 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006952/1.153, allocations: 2.995 MB / 0.7591 GB, free: 6.902 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 0.0004683/1.153, allocations: 366.5 kB / 0.7594 GB, free: 6.902 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 0.001007/1.154, allocations: 492.4 kB / 0.7599 GB, free: 6.867 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.005685/1.16, allocations: 3.064 MB / 0.7629 GB, free: 6.625 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 3.828e-06/1.16, allocations: 0.875 kB / 0.7629 GB, free: 6.625 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.184e-06/1.16, allocations: 0 / 0.7629 GB, free: 6.625 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0001192/1.16, allocations: 0 / 0.7629 GB, free: 6.625 MB / 0.5573 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.009226/1.17, allocations: 2.522 MB / 0.7653 GB, free: 21.36 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 4.935e-05/1.17, allocations: 13.56 kB / 0.7653 GB, free: 21.36 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001126/1.171, allocations: 243.8 kB / 0.7656 GB, free: 21.23 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002782/1.174, allocations: 1.075 MB / 0.7666 GB, free: 20.88 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001872/1.174, allocations: 149.4 kB / 0.7668 GB, free: 20.87 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004656/1.174, allocations: 201.5 kB / 0.767 GB, free: 20.87 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005735/1.18, allocations: 2.311 MB / 0.7692 GB, free: 20.76 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.831e-05/1.18, allocations: 2.312 kB / 0.7692 GB, free: 20.76 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001754/1.18, allocations: 77.91 kB / 0.7693 GB, free: 20.76 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001358/1.18, allocations: 78.14 kB / 0.7694 GB, free: 20.75 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005008/1.185, allocations: 2.254 MB / 0.7716 GB, free: 20.73 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01706/1.202, allocations: 10.34 MB / 0.7817 GB, free: 15.27 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004001/1.206, allocations: 2.11 MB / 0.7837 GB, free: 15.18 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009443/1.216, allocations: 6.771 MB / 0.7903 GB, free: 10.64 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002164/1.218, allocations: 1.097 MB / 0.7914 GB, free: 10.55 MB / 0.573 GB Notification: Performance of pre-optimization done (n=199): time 5.079e-06/1.218, allocations: 0 / 0.7914 GB, free: 10.55 MB / 0.573 GB Notification: Performance of matching and sorting (n=204): time 0.01295/1.231, allocations: 6.717 MB / 0.798 GB, free: 8.57 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.328e-05/1.231, allocations: 105.2 kB / 0.7981 GB, free: 8.473 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001149/1.232, allocations: 0.8408 MB / 0.7989 GB, free: 8.32 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001571/1.233, allocations: 67.64 kB / 0.799 GB, free: 8.285 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005547/1.233, allocations: 0.7086 MB / 0.7996 GB, free: 7.969 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004801/1.234, allocations: 0.6704 MB / 0.8003 GB, free: 7.535 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.506e-05/1.234, allocations: 33.5 kB / 0.8003 GB, free: 7.535 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001694/1.234, allocations: 372.1 kB / 0.8007 GB, free: 7.23 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001175/1.235, allocations: 0.7208 MB / 0.8014 GB, free: 7.223 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001257/1.236, allocations: 0.8758 MB / 0.8022 GB, free: 7.129 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001336/1.238, allocations: 0.8847 MB / 0.8031 GB, free: 7.047 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.649e-06/1.238, allocations: 0 / 0.8031 GB, free: 7.047 MB / 0.573 GB Notification: Performance of matching and sorting (n=223) (initialization): time 0.004356/1.242, allocations: 2.453 MB / 0.8055 GB, free: 6.809 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 7.473e-05/1.242, allocations: 68.52 kB / 0.8056 GB, free: 6.742 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.278e-05/1.242, allocations: 0 / 0.8056 GB, free: 6.742 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001294/1.244, allocations: 456.9 kB / 0.806 GB, free: 6.715 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00131/1.245, allocations: 322.4 kB / 0.8063 GB, free: 6.715 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007378/1.252, allocations: 6.093 MB / 0.8123 GB, free: 4.023 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002111/1.254, allocations: 136.2 kB / 0.8124 GB, free: 4.004 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002102/1.255, allocations: 78.73 kB / 0.8125 GB, free: 4.004 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,87.5%) 28} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001167/1.256, allocations: 458.3 kB / 0.8129 GB, free: 3.879 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002801/1.256, allocations: 147.3 kB / 0.813 GB, free: 3.801 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005527/1.262, allocations: 2.885 MB / 0.8159 GB, free: 3.602 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.664e-05/1.262, allocations: 24.86 kB / 0.8159 GB, free: 3.598 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.684e-05/1.262, allocations: 12.14 kB / 0.8159 GB, free: 3.594 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.511e-05/1.262, allocations: 10.64 kB / 0.8159 GB, free: 3.594 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009156/1.271, allocations: 5.319 MB / 0.8211 GB, free: 3.07 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.006e-05/1.271, allocations: 0 / 0.8211 GB, free: 3.07 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001236/1.272, allocations: 333.7 kB / 0.8214 GB, free: 3.07 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001207/1.273, allocations: 471.8 kB / 0.8219 GB, free: 3.031 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001745/1.274, allocations: 81.48 kB / 0.822 GB, free: 3.027 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007464/1.281, allocations: 6.096 MB / 0.8279 GB, free: 16.18 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/1.281, allocations: 2.906 kB / 0.8279 GB, free: 16.18 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006531/1.288, allocations: 3.807 MB / 0.8316 GB, free: 15.35 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001281/1.289, allocations: 0.4958 MB / 0.8321 GB, free: 15.08 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002382/1.289, allocations: 52.61 kB / 0.8322 GB, free: 15.07 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001099/1.29, allocations: 139.1 kB / 0.8323 GB, free: 15.03 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003769/1.291, allocations: 184.7 kB / 0.8325 GB, free: 14.95 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001518/1.291, allocations: 77.88 kB / 0.8325 GB, free: 14.94 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0007546/1.292, allocations: 0.574 MB / 0.8331 GB, free: 14.75 MB / 0.5886 GB Notification: Performance of sort global known variables: time 2.41e-07/1.292, allocations: 0 / 0.8331 GB, free: 14.75 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.003189/1.295, allocations: 0.8727 MB / 0.834 GB, free: 14.66 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (switch.tanValve.outlet.m_flow,flowResistance2.inlet.m_flow,fourWaySwitch.switch.tanValve.outlet.m_flow,fourWaySwitch.switch.tanValve1.inlet.m_flow,fourWaySwitch.switch1.tanValve.outlet.m_flow,fourWaySwitch.switch1.tanValve1.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,87.5%) 28} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001932/1.297, allocations: 0.9865 MB / 0.8349 GB, free: 14.27 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.004619/1.301, allocations: 2.528 MB / 0.8374 GB, free: 13.61 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/1.301, allocations: 3.688 kB / 0.8374 GB, free: 13.61 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.002791/1.304, allocations: 1.603 MB / 0.839 GB, free: 12.74 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002717/1.307, allocations: 459.4 kB / 0.8394 GB, free: 12.39 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007475/1.314, allocations: 4.558 MB / 0.8438 GB, free: 8.371 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0013/1.316, allocations: 1.482 MB / 0.8453 GB, free: 6.887 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.001857/1.318, allocations: 370.7 kB / 0.8456 GB, free: 6.547 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004531/1.318, allocations: 166.2 kB / 0.8458 GB, free: 6.402 MB / 0.5886 GB Notification: Performance of SimCode: time 1.223e-06/1.318, allocations: 0 / 0.8458 GB, free: 6.402 MB / 0.5886 GB Notification: Performance of Templates: time 0.06684/1.385, allocations: 38.98 MB / 0.8839 GB, free: 15.97 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