Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.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.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.Processes.Tests.TransportDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|sawTooth.T_start|sawTooth.count|sawTooth1.T_start|sawTooth1.count|transportDelay.inlet.m_flow|transportDelay.x|transportDelay1.inlet.m_flow|transportDelay1.x",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.TransportDelay") translateModel(ThermofluidStream.Processes.Tests.TransportDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|sawTooth.T_start|sawTooth.count|sawTooth1.T_start|sawTooth1.count|transportDelay.inlet.m_flow|transportDelay.x|transportDelay1.inlet.m_flow|transportDelay1.x",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.TransportDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.005527/0.005527, allocations: 168.3 kB / 15.13 MB, free: 6.027 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.503/1.503, 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.0007479/0.0007481, allocations: 82.25 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.6844/0.6844, allocations: 90.6 MB / 408.5 MB, free: 14.94 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003984/0.0003985, allocations: 12 kB / 485.3 MB, free: 2.02 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3337/0.3341, allocations: 66.27 MB / 0.5386 GB, free: 45.46 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.TransportDelay): time 0.179/0.5131, allocations: 179.7 MB / 0.7141 GB, free: 7.805 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.0113/0.5245, allocations: 9.741 MB / 0.7236 GB, free: 14.05 MB / 0.5417 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006773/0.5252, allocations: 11.94 kB / 0.7236 GB, free: 14.04 MB / 0.5417 GB Notification: Performance of NFTyping.typeComponents: time 0.0009973/0.5262, allocations: 306.2 kB / 0.7239 GB, free: 13.73 MB / 0.5417 GB Notification: Performance of NFTyping.typeBindings: time 0.003958/0.5302, allocations: 1.209 MB / 0.7251 GB, free: 12.52 MB / 0.5417 GB Notification: Performance of NFTyping.typeClassSections: time 0.00335/0.5336, allocations: 1.062 MB / 0.7262 GB, free: 11.47 MB / 0.5417 GB Notification: Performance of NFFlatten.flatten: time 0.003482/0.5371, allocations: 2.302 MB / 0.7284 GB, free: 9.168 MB / 0.5417 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000316/0.5374, allocations: 129.4 kB / 0.7285 GB, free: 9.039 MB / 0.5417 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002597/0.54, allocations: 1.458 MB / 0.7299 GB, free: 7.578 MB / 0.5417 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008429/0.5409, allocations: 0.5099 MB / 0.7304 GB, free: 7.066 MB / 0.5417 GB Notification: Performance of NFPackage.collectConstants: time 0.0001482/0.541, allocations: 24 kB / 0.7305 GB, free: 7.043 MB / 0.5417 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003834/0.5449, allocations: 1.63 MB / 0.7321 GB, free: 5.41 MB / 0.5417 GB Notification: Performance of NFScalarize.scalarize: time 0.0001775/0.5451, allocations: 99.47 kB / 0.7322 GB, free: 5.312 MB / 0.5417 GB Notification: Performance of NFVerifyModel.verify: time 0.0002484/0.5453, allocations: 137.4 kB / 0.7323 GB, free: 5.172 MB / 0.5417 GB Notification: Performance of NFConvertDAE.convert: time 0.002144/0.5475, allocations: 1.259 MB / 0.7335 GB, free: 3.91 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.5475, allocations: 0 / 0.7335 GB, free: 3.91 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.183e-06/0.5475, allocations: 0 / 0.7335 GB, free: 3.91 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 2.599e-05/0.5475, allocations: 0 / 0.7335 GB, free: 3.91 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.002969/0.5505, allocations: 1.231 MB / 0.7347 GB, free: 2.617 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.606e-05/0.5505, allocations: 8.031 kB / 0.7347 GB, free: 2.609 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001013/0.5516, allocations: 143.9 kB / 0.7349 GB, free: 2.469 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006626/0.5522, allocations: 416.8 kB / 0.7353 GB, free: 2.02 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.18e-05/0.5523, allocations: 37 kB / 0.7353 GB, free: 1.984 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001166/0.5524, allocations: 51.91 kB / 0.7353 GB, free: 1.934 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001206/0.5536, allocations: 0.5997 MB / 0.7359 GB, free: 1.32 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.31e-05/0.5537, allocations: 11.92 kB / 0.7359 GB, free: 1.309 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.482e-05/0.5537, allocations: 16 kB / 0.736 GB, free: 1.293 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.648e-05/0.5537, allocations: 12 kB / 0.736 GB, free: 1.281 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001151/0.5549, allocations: 496.2 kB / 0.7364 GB, free: 0.7969 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00366/0.5586, allocations: 2.556 MB / 0.7389 GB, free: 14 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001106/0.5597, allocations: 0.4969 MB / 0.7394 GB, free: 13.48 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005595/0.5603, allocations: 278.5 kB / 0.7397 GB, free: 13.21 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001321/0.5616, allocations: 1.418 MB / 0.7411 GB, free: 11.57 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007796/0.5624, allocations: 432 kB / 0.7415 GB, free: 11.12 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=58): time 2.996e-06/0.5624, allocations: 0 / 0.7415 GB, free: 11.12 MB / 0.5573 GB Notification: Performance of matching and sorting (n=58): time 0.002602/0.565, allocations: 1.131 MB / 0.7426 GB, free: 9.949 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.199e-05/0.5651, allocations: 89.11 kB / 0.7427 GB, free: 9.844 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003939/0.5655, allocations: 378 kB / 0.743 GB, free: 9.469 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 6.37e-05/0.5656, allocations: 37.7 kB / 0.7431 GB, free: 9.426 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001668/0.5657, allocations: 257 kB / 0.7433 GB, free: 9.168 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001624/0.5659, allocations: 201.1 kB / 0.7435 GB, free: 8.969 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.372e-05/0.566, allocations: 12 kB / 0.7435 GB, free: 8.957 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001195/0.5661, allocations: 358.8 kB / 0.7439 GB, free: 8.598 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005369/0.5666, allocations: 225.1 kB / 0.7441 GB, free: 8.379 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005664/0.5672, allocations: 299.2 kB / 0.7444 GB, free: 8.059 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006112/0.5678, allocations: 304.7 kB / 0.7447 GB, free: 7.75 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.5678, allocations: 3.938 kB / 0.7447 GB, free: 7.746 MB / 0.5573 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001628/0.5695, allocations: 0.8217 MB / 0.7455 GB, free: 6.898 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 4.996e-05/0.5695, allocations: 67.39 kB / 0.7455 GB, free: 6.82 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.89e-05/0.5696, allocations: 11.98 kB / 0.7455 GB, free: 6.809 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000325/0.5699, allocations: 87.92 kB / 0.7456 GB, free: 6.719 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004593/0.5704, allocations: 123.9 kB / 0.7457 GB, free: 6.598 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002113/0.5725, allocations: 2.841 MB / 0.7485 GB, free: 3.492 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005221/0.573, allocations: 67.56 kB / 0.7486 GB, free: 3.426 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001125/0.5732, allocations: 75.97 kB / 0.7486 GB, free: 3.352 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$PRE.sawTooth.T_start,sawTooth.T_start,$PRE.sawTooth.count,sawTooth.count,$whenCondition1,$PRE.sawTooth1.T_start,sawTooth1.T_start,$PRE.sawTooth1.count,sawTooth1.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (62): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 6 * 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.000271/0.5734, allocations: 189.5 kB / 0.7488 GB, free: 3.156 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.798e-05/0.5735, allocations: 55.3 kB / 0.7489 GB, free: 3.102 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002498/0.576, allocations: 0.9863 MB / 0.7498 GB, free: 2.113 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.19e-05/0.5761, allocations: 11.95 kB / 0.7499 GB, free: 2.102 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.605e-06/0.5761, allocations: 4 kB / 0.7499 GB, free: 2.098 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.226e-06/0.5761, allocations: 0 / 0.7499 GB, free: 2.098 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002713/0.5788, allocations: 1.648 MB / 0.7515 GB, free: 388 kB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.693e-05/0.5789, allocations: 15.98 kB / 0.7515 GB, free: 372 kB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004581/0.5793, allocations: 127.9 kB / 0.7516 GB, free: 244 kB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002604/0.5796, allocations: 83.47 kB / 0.7517 GB, free: 156 kB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.204e-05/0.5797, allocations: 39.97 kB / 0.7517 GB, free: 116 kB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2138/0.7935, allocations: 2.822 MB / 0.7545 GB, free: 179.9 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.995e-06/0.7935, allocations: 2.969 kB / 0.7545 GB, free: 179.9 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002291/0.7958, allocations: 1.224 MB / 0.7557 GB, free: 179.6 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002512/0.7961, allocations: 206.5 kB / 0.7559 GB, free: 179.5 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.221e-05/0.7962, allocations: 15.95 kB / 0.7559 GB, free: 179.5 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004713/0.7966, allocations: 44.92 kB / 0.7559 GB, free: 179.5 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001665/0.7968, allocations: 102.4 kB / 0.756 GB, free: 179.5 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.924e-05/0.7969, allocations: 68.75 kB / 0.7561 GB, free: 179.5 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0002376/0.7972, allocations: 265.8 kB / 0.7564 GB, free: 179.4 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7972, allocations: 2.719 kB / 0.7564 GB, free: 179.4 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.001369/0.7985, allocations: 481.1 kB / 0.7568 GB, free: 179.4 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (transportDelay1.x,flowResistance1.inlet.m_flow,transportDelay.x,flowResistance.inlet.m_flow) * Number of discrete variables: 6 ($whenCondition1,sawTooth1.T_start,sawTooth1.count,$whenCondition2,sawTooth.T_start,sawTooth.count) * Number of discrete states: 2 (sawTooth.count,sawTooth1.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.001444/0.8, allocations: 0.7421 MB / 0.7575 GB, free: 179.3 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.002353/0.8024, allocations: 1.104 MB / 0.7586 GB, free: 178.8 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.8024, allocations: 0 / 0.7586 GB, free: 178.8 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001331/0.8037, allocations: 0.76 MB / 0.7594 GB, free: 178.4 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001434/0.8052, allocations: 178.6 kB / 0.7595 GB, free: 178.4 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003221/0.8084, allocations: 1.616 MB / 0.7611 GB, free: 177.7 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003759/0.8088, allocations: 0.8766 MB / 0.762 GB, free: 177 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.001396/0.8102, allocations: 193.8 kB / 0.7621 GB, free: 176.9 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004677/0.8107, allocations: 96.2 kB / 0.7622 GB, free: 176.9 MB / 0.5573 GB Notification: Performance of SimCode: time 5.31e-07/0.8107, allocations: 4 kB / 0.7622 GB, free: 176.9 MB / 0.5573 GB Notification: Performance of Templates: time 0.04698/0.8577, allocations: 18.04 MB / 0.7799 GB, free: 174.4 MB / 0.5573 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.TransportDelay.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.TransportDelay.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.TransportDelay.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.TransportDelay.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.TransportDelay.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.TransportDelay -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.TransportDelay.pipe 2>&1) diffSimulationResults("ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.TransportDelay_res.mat","/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData/ThermofluidStream.Processes.Tests.TransportDelay_ref.mat","../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.TransportDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches