Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TransportDelay.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.3.1-OM_adaptions/package.mo", uses=false) Using package ThermofluidStream with version 0.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.3.1-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.Undirected.Processes.Tests.TransportDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|transportDelay.inlet.m_flow|transportDelay.x|transportDelay1.rear.m_flow|transportDelay1.x|trapezoid.T_start|trapezoid.count|trapezoid1.T_start|trapezoid1.count",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TransportDelay") translateModel(ThermofluidStream.Undirected.Processes.Tests.TransportDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|transportDelay.inlet.m_flow|transportDelay.x|transportDelay1.rear.m_flow|transportDelay1.x|trapezoid.T_start|trapezoid.count|trapezoid1.T_start|trapezoid1.count",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TransportDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001715/0.001715, allocations: 170.1 kB / 16.11 MB, free: 5.582 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.442/1.442, allocations: 205.4 MB / 222.3 MB, free: 9.016 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.0007605/0.0007605, allocations: 98.28 kB / 270.6 MB, free: 8.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.3.1-OM_adaptions/package.mo): time 0.7351/0.7351, allocations: 89.62 MB / 408.5 MB, free: 4.457 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003623/0.0003623, allocations: 16.22 kB / 485.2 MB, free: 7.598 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3633/0.3637, allocations: 66 MB / 0.5383 GB, free: 34.58 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.52/1.884, allocations: 0.7551 GB / 1.293 GB, free: 80.57 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002026/1.884, allocations: 95.78 kB / 1.294 GB, free: 80.48 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 0.8704/2.754, allocations: 299.2 MB / 1.586 GB, free: 21.36 MB / 0.5886 GB Notification: Performance of FrontEnd: time 2.495e-06/2.754, allocations: 0 / 1.586 GB, free: 21.36 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 8.392e-05/2.754, allocations: 23.92 kB / 1.586 GB, free: 21.34 MB / 0.5886 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.006279/2.761, allocations: 1.775 MB / 1.587 GB, free: 19.49 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.689e-05/2.761, allocations: 11.97 kB / 1.587 GB, free: 19.48 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001486/2.762, allocations: 179.8 kB / 1.588 GB, free: 19.3 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001091/2.763, allocations: 0.5129 MB / 1.588 GB, free: 18.75 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001022/2.763, allocations: 75.58 kB / 1.588 GB, free: 18.67 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002382/2.764, allocations: 64.75 kB / 1.588 GB, free: 18.61 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001637/2.765, allocations: 0.8364 MB / 1.589 GB, free: 17.75 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.552e-05/2.765, allocations: 0 / 1.589 GB, free: 17.75 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.293e-05/2.765, allocations: 24 kB / 1.589 GB, free: 17.73 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.683e-05/2.766, allocations: 16 kB / 1.589 GB, free: 17.71 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001694/2.767, allocations: 0.7594 MB / 1.59 GB, free: 16.96 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00427/2.771, allocations: 3.588 MB / 1.593 GB, free: 13.02 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001589/2.773, allocations: 0.8263 MB / 1.594 GB, free: 12.18 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007408/2.774, allocations: 406.3 kB / 1.595 GB, free: 11.77 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001656/2.776, allocations: 1.723 MB / 1.596 GB, free: 9.773 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00094/2.776, allocations: 0.5808 MB / 1.597 GB, free: 9.176 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=76): time 3.136e-06/2.776, allocations: 3.938 kB / 1.597 GB, free: 9.172 MB / 0.5886 GB Notification: Performance of matching and sorting (n=76): time 0.003132/2.78, allocations: 1.528 MB / 1.598 GB, free: 7.598 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.767e-05/2.78, allocations: 93.05 kB / 1.598 GB, free: 7.488 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004466/2.78, allocations: 466.8 kB / 1.599 GB, free: 7.02 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 7.296e-05/2.78, allocations: 41.7 kB / 1.599 GB, free: 6.973 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001699/2.78, allocations: 300.7 kB / 1.599 GB, free: 6.676 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001669/2.781, allocations: 252.2 kB / 1.599 GB, free: 6.426 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.996e-05/2.781, allocations: 12 kB / 1.599 GB, free: 6.414 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001017/2.781, allocations: 386.6 kB / 1.6 GB, free: 6.027 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007466/2.781, allocations: 353.8 kB / 1.6 GB, free: 5.684 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007575/2.782, allocations: 449.9 kB / 1.601 GB, free: 5.215 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00156/2.784, allocations: 0.8434 MB / 1.601 GB, free: 4.332 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.111e-06/2.784, allocations: 0 / 1.601 GB, free: 4.332 MB / 0.5886 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.002225/2.786, allocations: 1.127 MB / 1.602 GB, free: 3.18 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 4.361e-05/2.786, allocations: 63.39 kB / 1.603 GB, free: 3.105 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.68e-05/2.786, allocations: 11.98 kB / 1.603 GB, free: 3.094 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003187/2.786, allocations: 77.67 kB / 1.603 GB, free: 3.012 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006753/2.787, allocations: 203.8 kB / 1.603 GB, free: 2.812 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3245/3.112, allocations: 2.844 MB / 1.606 GB, free: 114.2 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001091/3.113, allocations: 123.6 kB / 1.606 GB, free: 114.2 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001478/3.113, allocations: 97.69 kB / 1.606 GB, free: 114.2 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count,$whenCondition1,$PRE.trapezoid1.T_start,trapezoid1.T_start,$PRE.trapezoid1.count,trapezoid1.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (80): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 7 * 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 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003976/3.113, allocations: 195.6 kB / 1.606 GB, free: 114.1 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001075/3.113, allocations: 66.94 kB / 1.606 GB, free: 114.1 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003347/3.117, allocations: 1.373 MB / 1.607 GB, free: 114 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.15e-05/3.117, allocations: 11 kB / 1.607 GB, free: 114 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.077e-06/3.117, allocations: 1.688 kB / 1.607 GB, free: 114 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.054e-05/3.117, allocations: 8.078 kB / 1.607 GB, free: 114 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003874/3.121, allocations: 2.074 MB / 1.609 GB, free: 113.6 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-05/3.121, allocations: 10.88 kB / 1.609 GB, free: 113.6 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007078/3.122, allocations: 184.5 kB / 1.61 GB, free: 113.6 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002441/3.122, allocations: 90.17 kB / 1.61 GB, free: 113.6 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.226e-05/3.122, allocations: 42.52 kB / 1.61 GB, free: 113.6 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001791/3.124, allocations: 2.844 MB / 1.613 GB, free: 111.1 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/3.124, allocations: 3.625 kB / 1.613 GB, free: 111.1 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003576/3.127, allocations: 1.65 MB / 1.614 GB, free: 110.8 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004626/3.128, allocations: 248.8 kB / 1.614 GB, free: 110.7 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001046/3.128, allocations: 20 kB / 1.614 GB, free: 110.7 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006324/3.128, allocations: 80.42 kB / 1.614 GB, free: 110.7 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003287/3.129, allocations: 121.3 kB / 1.615 GB, free: 110.7 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001812/3.129, allocations: 89.36 kB / 1.615 GB, free: 110.7 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0004217/3.129, allocations: 321.4 kB / 1.615 GB, free: 110.6 MB / 0.5886 GB Notification: Performance of sort global known variables: time 2.21e-07/3.129, allocations: 0 / 1.615 GB, free: 110.6 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.00261/3.132, allocations: 0.6997 MB / 1.616 GB, free: 110.6 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (transportDelay1.x,flowResistance1.rear.m_flow,transportDelay.x,flowResistance.inlet.m_flow) * Number of discrete variables: 6 ($whenCondition1,trapezoid1.T_start,trapezoid1.count,$whenCondition2,trapezoid.T_start,trapezoid.count) * Number of discrete states: 2 (trapezoid.count,trapezoid1.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (69): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * 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 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002553/3.135, allocations: 1.65 MB / 1.617 GB, free: 110.4 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.002382/3.137, allocations: 1.396 MB / 1.619 GB, free: 109.8 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/3.137, allocations: 0 / 1.619 GB, free: 109.8 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.001241/3.138, allocations: 0.9038 MB / 1.62 GB, free: 109.4 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001244/3.14, allocations: 202.2 kB / 1.62 GB, free: 109.4 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003539/3.143, allocations: 1.925 MB / 1.622 GB, free: 108.6 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003494/3.143, allocations: 0.9271 MB / 1.623 GB, free: 107.9 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.001249/3.145, allocations: 279 kB / 1.623 GB, free: 107.9 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000413/3.145, allocations: 127.1 kB / 1.623 GB, free: 107.9 MB / 0.5886 GB Notification: Performance of SimCode: time 8.22e-07/3.145, allocations: 0 / 1.623 GB, free: 107.9 MB / 0.5886 GB Notification: Performance of Templates: time 0.04715/3.192, allocations: 33.29 MB / 1.655 GB, free: 106.7 MB / 0.5886 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TransportDelay.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TransportDelay.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TransportDelay.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TransportDelay.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TransportDelay.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TransportDelay -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TransportDelay.pipe 2>&1) diffSimulationResults("ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TransportDelay_res.mat","/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData/ThermofluidStream.Undirected.Processes.Tests.TransportDelay_ref.mat","../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TransportDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches