Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.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: "" <> buildModelFMU(ThermofluidStream.Boundaries.Tests.TerminalSourceSink,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_Boundaries_Tests_TerminalSourceSink",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Boundaries.Tests.TerminalSourceSink,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_Boundaries_Tests_TerminalSourceSink",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.01094/0.01094, allocations: 171.2 kB / 15.12 MB, free: 5.555 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.869/1.869, 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.001032/0.001031, allocations: 90.88 kB / 269.6 MB, free: 13.36 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.9172/0.9172, allocations: 90.59 MB / 408.5 MB, free: 14.95 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003638/0.000364, allocations: 11.98 kB / 485.3 MB, free: 1.961 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4962/0.4966, allocations: 66.28 MB / 0.5387 GB, free: 45.64 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.TerminalSourceSink): time 0.1626/0.6593, allocations: 119.1 MB / 0.655 GB, free: 4.582 MB / 474.7 MB Notification: Performance of NFInst.instExpressions: time 0.002191/0.6615, allocations: 1.76 MB / 0.6567 GB, free: 2.824 MB / 474.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001534/0.6617, allocations: 4 kB / 0.6567 GB, free: 2.82 MB / 474.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004737/0.6622, allocations: 87.62 kB / 0.6568 GB, free: 2.734 MB / 474.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003199/0.6625, allocations: 139.5 kB / 0.6569 GB, free: 2.598 MB / 474.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003844/0.6629, allocations: 131.6 kB / 0.657 GB, free: 2.469 MB / 474.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002273/0.6631, allocations: 167.6 kB / 0.6572 GB, free: 2.305 MB / 474.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001539/0.6633, allocations: 44.22 kB / 0.6572 GB, free: 2.266 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003774/0.6637, allocations: 139.5 kB / 0.6574 GB, free: 2.129 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001512/0.6639, allocations: 100.8 kB / 0.6574 GB, free: 2.031 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 1.862e-05/0.6639, allocations: 4 kB / 0.6575 GB, free: 2.027 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000345/0.6642, allocations: 195.7 kB / 0.6576 GB, free: 1.836 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 4.023e-05/0.6643, allocations: 27.91 kB / 0.6577 GB, free: 1.809 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 6.505e-05/0.6644, allocations: 53.64 kB / 0.6577 GB, free: 1.75 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002565/0.6646, allocations: 153.2 kB / 0.6579 GB, free: 1.609 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.645e-06/0.6646, allocations: 0 / 0.6579 GB, free: 1.609 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.923e-06/0.6646, allocations: 0 / 0.6579 GB, free: 1.609 MB / 474.7 MB Notification: Performance of Transformations before backend: time 6.653e-06/0.6647, allocations: 4 kB / 0.6579 GB, free: 1.605 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.000958/0.6656, allocations: 0.4932 MB / 0.6583 GB, free: 1.062 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.14e-05/0.6657, allocations: 8.031 kB / 0.6584 GB, free: 1.055 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.92e-05/0.6657, allocations: 46.55 kB / 0.6584 GB, free: 1 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.225e-05/0.6658, allocations: 19.81 kB / 0.6584 GB, free: 0.9805 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000262/0.6661, allocations: 212.4 kB / 0.6586 GB, free: 0.7344 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.538e-05/0.6661, allocations: 16.17 kB / 0.6586 GB, free: 0.7188 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.222e-05/0.6662, allocations: 15.98 kB / 0.6587 GB, free: 0.7031 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004592/0.6666, allocations: 162.3 kB / 0.6588 GB, free: 0.5352 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.121e-05/0.6666, allocations: 0 / 0.6588 GB, free: 0.5352 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.378e-05/0.6667, allocations: 7.984 kB / 0.6588 GB, free: 0.5273 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.242e-05/0.6667, allocations: 4 kB / 0.6588 GB, free: 0.5234 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003488/0.6671, allocations: 109.2 kB / 0.6589 GB, free: 428 kB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001385/0.6684, allocations: 0.793 MB / 0.6597 GB, free: 15.52 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003836/0.6688, allocations: 118.6 kB / 0.6598 GB, free: 15.4 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001472/0.669, allocations: 89.03 kB / 0.6599 GB, free: 15.29 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003373/0.6694, allocations: 117 kB / 0.66 GB, free: 15.16 MB / 490.7 MB Notification: Performance of pre-optimization done (n=9): time 1.683e-06/0.6694, allocations: 0 / 0.66 GB, free: 15.16 MB / 490.7 MB Notification: Performance of matching and sorting (n=9): time 0.0006492/0.67, allocations: 268.1 kB / 0.6603 GB, free: 14.88 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.088e-05/0.6701, allocations: 85.09 kB / 0.6603 GB, free: 14.77 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002084/0.6703, allocations: 186.6 kB / 0.6605 GB, free: 14.58 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 2.813e-05/0.6704, allocations: 31.48 kB / 0.6606 GB, free: 14.54 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001108/0.6705, allocations: 147.8 kB / 0.6607 GB, free: 14.39 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.463e-05/0.6705, allocations: 23.66 kB / 0.6607 GB, free: 14.37 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.054e-05/0.6705, allocations: 4 kB / 0.6607 GB, free: 14.36 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001694/0.6707, allocations: 330.8 kB / 0.661 GB, free: 14.03 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001585/0.6709, allocations: 51.97 kB / 0.6611 GB, free: 13.98 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001934/0.6711, allocations: 97.97 kB / 0.6612 GB, free: 13.86 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000199/0.6713, allocations: 94.94 kB / 0.6613 GB, free: 13.77 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.6713, allocations: 0 / 0.6613 GB, free: 13.77 MB / 490.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0004656/0.6718, allocations: 230.9 kB / 0.6615 GB, free: 13.53 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.014e-05/0.6718, allocations: 33.7 kB / 0.6615 GB, free: 13.49 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.269e-05/0.6718, allocations: 4 kB / 0.6615 GB, free: 13.48 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.019e-05/0.6719, allocations: 0 / 0.6615 GB, free: 13.48 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001902/0.6721, allocations: 44.09 kB / 0.6616 GB, free: 13.44 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.104e-05/0.6721, allocations: 1.25 kB / 0.6616 GB, free: 13.44 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001749/0.6723, allocations: 23.83 kB / 0.6616 GB, free: 13.42 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.598e-05/0.6723, allocations: 12 kB / 0.6616 GB, free: 13.41 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001668/0.6725, allocations: 136 kB / 0.6617 GB, free: 13.27 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.697e-05/0.6725, allocations: 15.81 kB / 0.6617 GB, free: 13.25 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004039/0.6729, allocations: 137.1 kB / 0.6619 GB, free: 13.12 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.813e-06/0.6729, allocations: 0 / 0.6619 GB, free: 13.12 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.03e-05/0.673, allocations: 4 kB / 0.6619 GB, free: 13.11 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.673, allocations: 0 / 0.6619 GB, free: 13.11 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002665/0.6732, allocations: 233.4 kB / 0.6621 GB, free: 12.84 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.61e-06/0.6733, allocations: 11.98 kB / 0.6621 GB, free: 12.82 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001148/0.6734, allocations: 17.67 kB / 0.6621 GB, free: 12.81 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.54e-06/0.6734, allocations: 4 kB / 0.6621 GB, free: 12.8 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.58e-05/0.6734, allocations: 0 / 0.6621 GB, free: 12.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.532e-06/0.6734, allocations: 3.938 kB / 0.6621 GB, free: 12.8 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.6734, allocations: 0 / 0.6621 GB, free: 12.8 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005501/0.674, allocations: 244.8 kB / 0.6624 GB, free: 12.54 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.789e-05/0.6741, allocations: 96.8 kB / 0.6625 GB, free: 12.42 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.238e-05/0.6741, allocations: 8.062 kB / 0.6625 GB, free: 12.41 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001305/0.6742, allocations: 11.98 kB / 0.6625 GB, free: 12.4 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.944e-05/0.6743, allocations: 15.97 kB / 0.6625 GB, free: 12.39 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.215e-05/0.6743, allocations: 8 kB / 0.6625 GB, free: 12.38 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0001126/0.6745, allocations: 132.5 kB / 0.6626 GB, free: 12.25 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6745, allocations: 0 / 0.6626 GB, free: 12.25 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0002579/0.6747, allocations: 40 kB / 0.6627 GB, free: 12.21 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (terminalSource.p) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009367/0.6757, allocations: 0.8832 MB / 0.6635 GB, free: 11.29 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.000422/0.6761, allocations: 188.3 kB / 0.6637 GB, free: 11.1 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.6761, allocations: 0 / 0.6637 GB, free: 11.1 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001626/0.6763, allocations: 56.28 kB / 0.6638 GB, free: 11.04 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002993/0.6766, allocations: 38.5 kB / 0.6638 GB, free: 11.01 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002251/0.6789, allocations: 2.014 MB / 0.6658 GB, free: 8.922 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003143/0.6792, allocations: 0.732 MB / 0.6665 GB, free: 8.164 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 7.768e-05/0.6793, allocations: 15.58 kB / 0.6665 GB, free: 8.152 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.591e-05/0.6794, allocations: 47.42 kB / 0.6665 GB, free: 8.105 MB / 490.7 MB Notification: Performance of SimCode: time 2.31e-07/0.6794, allocations: 0 / 0.6665 GB, free: 8.105 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01543/0.6948, allocations: 4.131 MB / 0.6706 GB, free: 4.211 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002022/0.6951, allocations: 201.1 kB / 0.6708 GB, free: 3.973 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.796/2.491, allocations: 0 / 0.6708 GB, free: 3.973 MB / 490.7 MB (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.mat --tempDir=temp_ThermofluidStream_OM_adaptions_ThermofluidStream_Boundaries_Tests_TerminalSourceSink_fmu --startTime=0 --stopTime=10 --timeout=1200 --tolerance=1e-06 ThermofluidStream_OM_adaptions_ThermofluidStream_Boundaries_Tests_TerminalSourceSink.fmu > ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.mat does not exist to compare? outputFormat=mat