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.001889/0.001889, allocations: 175.2 kB / 15.77 MB, free: 6.328 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.682/1.682, allocations: 205.4 MB / 221.9 MB, free: 13.84 MB / 186.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008716/0.0008716, allocations: 94.3 kB / 270.3 MB, free: 13.38 MB / 234.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.7957/0.7957, allocations: 90.6 MB / 409.1 MB, free: 15.01 MB / 298.8 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003398/0.0003398, allocations: 12 kB / 485.9 MB, free: 2.098 MB / 362.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4019/0.4023, allocations: 66.27 MB / 0.5392 GB, free: 45.69 MB / 426.8 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.2332/0.6356, allocations: 207.1 MB / 0.7415 GB, free: 12.39 MB / 0.5574 GB Notification: Performance of NFInst.instExpressions: time 0.3742/1.01, allocations: 23.1 MB / 0.7641 GB, free: 6.145 MB / 0.5574 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003416/1.013, allocations: 34.34 kB / 0.7641 GB, free: 6.145 MB / 0.5574 GB Notification: Performance of NFTyping.typeComponents: time 0.004714/1.018, allocations: 1.399 MB / 0.7655 GB, free: 6.102 MB / 0.5574 GB Notification: Performance of NFTyping.typeBindings: time 0.008914/1.027, allocations: 2.313 MB / 0.7677 GB, free: 6.004 MB / 0.5574 GB Notification: Performance of NFTyping.typeClassSections: time 0.004192/1.031, allocations: 1.253 MB / 0.7689 GB, free: 5.965 MB / 0.5574 GB Notification: Performance of NFFlatten.flatten: time 0.006232/1.037, allocations: 3.898 MB / 0.7728 GB, free: 5.965 MB / 0.5574 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002314/1.04, allocations: 0.8651 MB / 0.7736 GB, free: 21.83 MB / 0.573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003344/1.043, allocations: 1.107 MB / 0.7747 GB, free: 21.82 MB / 0.573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004449/1.048, allocations: 1.717 MB / 0.7764 GB, free: 21.82 MB / 0.573 GB Notification: Performance of NFPackage.collectConstants: time 0.0005974/1.048, allocations: 98.88 kB / 0.7765 GB, free: 21.82 MB / 0.573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009654/1.058, allocations: 2.796 MB / 0.7792 GB, free: 21.75 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 0.001269/1.059, allocations: 375.4 kB / 0.7795 GB, free: 21.75 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 0.001847/1.061, allocations: 485.8 kB / 0.78 GB, free: 21.72 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.007273/1.068, allocations: 3.101 MB / 0.783 GB, free: 21.47 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 6.663e-06/1.068, allocations: 2.531 kB / 0.783 GB, free: 21.47 MB / 0.573 GB Notification: Performance of FrontEnd: time 2.715e-06/1.068, allocations: 1.969 kB / 0.783 GB, free: 21.47 MB / 0.573 GB Notification: Performance of Transformations before backend: time 0.0001113/1.068, allocations: 0.9062 kB / 0.783 GB, free: 21.47 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.007558/1.076, allocations: 2.523 MB / 0.7855 GB, free: 20.2 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 5.031e-05/1.076, allocations: 11.44 kB / 0.7855 GB, free: 20.2 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008075/1.077, allocations: 244.4 kB / 0.7857 GB, free: 20.08 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002112/1.079, allocations: 1.073 MB / 0.7868 GB, free: 19.73 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000142/1.079, allocations: 150.8 kB / 0.7869 GB, free: 19.72 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003757/1.08, allocations: 199.6 kB / 0.7871 GB, free: 19.72 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004566/1.084, allocations: 2.329 MB / 0.7894 GB, free: 19.61 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.635e-05/1.084, allocations: 0 / 0.7894 GB, free: 19.61 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001683/1.084, allocations: 75.5 kB / 0.7895 GB, free: 19.61 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001193/1.085, allocations: 76.47 kB / 0.7895 GB, free: 19.61 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004253/1.089, allocations: 2.257 MB / 0.7918 GB, free: 19.58 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01337/1.102, allocations: 10.19 MB / 0.8017 GB, free: 14.11 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003131/1.105, allocations: 2.11 MB / 0.8038 GB, free: 14.02 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001694/1.107, allocations: 1.099 MB / 0.8048 GB, free: 13.99 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007876/1.115, allocations: 6.638 MB / 0.8113 GB, free: 9.449 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001778/1.117, allocations: 1.108 MB / 0.8124 GB, free: 9.355 MB / 0.573 GB Notification: Performance of pre-optimization done (n=199): time 4.539e-06/1.117, allocations: 0 / 0.8124 GB, free: 9.355 MB / 0.573 GB Notification: Performance of matching and sorting (n=204): time 0.01224/1.129, allocations: 6.493 MB / 0.8187 GB, free: 7.66 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.34e-05/1.129, allocations: 103.7 kB / 0.8188 GB, free: 7.566 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001095/1.13, allocations: 0.8426 MB / 0.8197 GB, free: 7.418 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001376/1.13, allocations: 57.8 kB / 0.8197 GB, free: 7.387 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005863/1.131, allocations: 0.719 MB / 0.8204 GB, free: 7.066 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005198/1.132, allocations: 0.6736 MB / 0.8211 GB, free: 6.629 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001117/1.132, allocations: 36.03 kB / 0.8211 GB, free: 6.629 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001921/1.132, allocations: 373.4 kB / 0.8215 GB, free: 6.305 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001226/1.133, allocations: 0.7146 MB / 0.8222 GB, free: 6.227 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001245/1.134, allocations: 0.8866 MB / 0.823 GB, free: 6.031 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001451/1.136, allocations: 0.8923 MB / 0.8239 GB, free: 5.914 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.48e-06/1.136, allocations: 0 / 0.8239 GB, free: 5.914 MB / 0.573 GB Notification: Performance of matching and sorting (n=223) (initialization): time 0.004306/1.14, allocations: 2.465 MB / 0.8263 GB, free: 5.438 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 6.889e-05/1.14, allocations: 61 kB / 0.8264 GB, free: 5.375 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.293e-05/1.14, allocations: 4.422 kB / 0.8264 GB, free: 5.375 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001269/1.142, allocations: 449.4 kB / 0.8268 GB, free: 5.266 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001252/1.143, allocations: 327.6 kB / 0.8271 GB, free: 5.215 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006853/1.15, allocations: 5.952 MB / 0.8329 GB, free: 2.121 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001899/1.152, allocations: 130.3 kB / 0.8331 GB, free: 2.082 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002139/1.152, allocations: 74.03 kB / 0.8331 GB, free: 2.074 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.001018/1.153, allocations: 454.5 kB / 0.8336 GB, free: 1.938 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002585/1.153, allocations: 150.6 kB / 0.8337 GB, free: 1.859 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005519/1.159, allocations: 2.89 MB / 0.8365 GB, free: 1.273 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-05/1.159, allocations: 22.31 kB / 0.8365 GB, free: 1.273 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.159e-05/1.159, allocations: 6.594 kB / 0.8366 GB, free: 1.273 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-05/1.159, allocations: 11.95 kB / 0.8366 GB, free: 1.262 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008446/1.167, allocations: 5.268 MB / 0.8417 GB, free: 15.79 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.047e-05/1.167, allocations: 1.344 kB / 0.8417 GB, free: 15.79 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00129/1.169, allocations: 342.3 kB / 0.842 GB, free: 15.73 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001306/1.17, allocations: 478.2 kB / 0.8425 GB, free: 15.59 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001618/1.17, allocations: 76.78 kB / 0.8426 GB, free: 15.57 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007049/1.177, allocations: 5.953 MB / 0.8484 GB, free: 11.71 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.596e-06/1.177, allocations: 2.906 kB / 0.8484 GB, free: 11.71 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006736/1.184, allocations: 3.813 MB / 0.8521 GB, free: 9.234 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001103/1.185, allocations: 466.7 kB / 0.8526 GB, free: 8.906 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002294/1.185, allocations: 57.22 kB / 0.8526 GB, free: 8.887 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001219/1.187, allocations: 139.6 kB / 0.8527 GB, free: 8.777 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003894/1.187, allocations: 174 kB / 0.8529 GB, free: 8.629 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001675/1.187, allocations: 86.06 kB / 0.853 GB, free: 8.562 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0007731/1.188, allocations: 0.5735 MB / 0.8535 GB, free: 8.129 MB / 0.5886 GB Notification: Performance of sort global known variables: time 2.4e-07/1.188, allocations: 0 / 0.8535 GB, free: 8.129 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.003154/1.191, allocations: 0.8758 MB / 0.8544 GB, free: 7.375 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.001966/1.193, allocations: 0.9678 MB / 0.8553 GB, free: 6.555 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.004725/1.198, allocations: 2.54 MB / 0.8578 GB, free: 4.75 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 5.109e-06/1.198, allocations: 448 / 0.8578 GB, free: 4.75 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.00292/1.201, allocations: 1.61 MB / 0.8594 GB, free: 3.605 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003114/1.204, allocations: 0.495 MB / 0.8599 GB, free: 3.246 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007316/1.211, allocations: 4.637 MB / 0.8644 GB, free: 15.12 MB / 0.6043 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001211/1.212, allocations: 1.437 MB / 0.8658 GB, free: 13.68 MB / 0.6043 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007955/1.213, allocations: 194.2 kB / 0.866 GB, free: 13.52 MB / 0.6043 GB Notification: Performance of SimCode: time 7.71e-07/1.213, allocations: 0 / 0.866 GB, free: 13.52 MB / 0.6043 GB Notification: Performance of Templates: time 0.06615/1.279, allocations: 52.35 MB / 0.9171 GB, free: 9.812 MB / 0.6511 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