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.001124/0.001124, allocations: 173.9 kB / 7.648 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.851/1.851, allocations: 205.3 MB / 213.4 MB, free: 13.76 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.0008326/0.0008325, allocations: 84.2 kB / 261.4 MB, free: 13.46 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.889/0.889, allocations: 90.37 MB / 399.7 MB, free: 12.12 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 1.676e-05/1.679e-05, allocations: 0 / 472.3 MB, free: 3.371 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4684/0.4684, allocations: 66.26 MB / 0.5259 GB, free: 28.95 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.297/1.766, allocations: 431.1 MB / 0.9469 GB, free: 224.3 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002725/1.766, allocations: 71.97 kB / 0.947 GB, free: 224.3 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 0.09191/1.858, allocations: 47 MB / 0.9929 GB, free: 176.8 MB / 0.5886 GB Notification: Performance of FrontEnd: time 2.104e-06/1.858, allocations: 8 kB / 0.9929 GB, free: 176.8 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 1.628e-05/1.858, allocations: 0 / 0.9929 GB, free: 176.8 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0008584/1.859, allocations: 0.5081 MB / 0.9934 GB, free: 176.2 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.518e-05/1.859, allocations: 8.031 kB / 0.9934 GB, free: 176.2 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.812e-05/1.859, allocations: 23.72 kB / 0.9934 GB, free: 176.2 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002526/1.859, allocations: 207.9 kB / 0.9936 GB, free: 176 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.985e-05/1.86, allocations: 11.98 kB / 0.9936 GB, free: 175.9 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.56e-05/1.86, allocations: 8 kB / 0.9936 GB, free: 175.9 MB / 0.5886 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001532/1.86, allocations: 68.17 kB / 0.9937 GB, free: 175.9 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001893/1.86, allocations: 128 kB / 0.9938 GB, free: 175.7 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.017e-05/1.86, allocations: 0 / 0.9938 GB, free: 175.7 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.725e-05/1.86, allocations: 7.922 kB / 0.9938 GB, free: 175.7 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.378e-06/1.86, allocations: 4 kB / 0.9938 GB, free: 175.7 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008066/1.861, allocations: 0.7497 MB / 0.9946 GB, free: 174.9 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001344/1.861, allocations: 70.56 kB / 0.9946 GB, free: 174.8 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.008e-05/1.861, allocations: 40.84 kB / 0.9947 GB, free: 174.8 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 9.846e-05/1.861, allocations: 85.25 kB / 0.9947 GB, free: 174.7 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001518/1.861, allocations: 83.33 kB / 0.9948 GB, free: 174.6 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=9): time 1.623e-06/1.861, allocations: 0 / 0.9948 GB, free: 174.6 MB / 0.5886 GB Notification: Performance of matching and sorting (n=9): time 0.0002645/1.862, allocations: 93.52 kB / 0.9949 GB, free: 174.5 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.857e-05/1.862, allocations: 55.41 kB / 0.995 GB, free: 174.4 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001248/1.862, allocations: 157.5 kB / 0.9951 GB, free: 174.2 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 1.598e-05/1.862, allocations: 29.7 kB / 0.9951 GB, free: 174.2 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 6.089e-05/1.862, allocations: 147.5 kB / 0.9953 GB, free: 174.1 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 2.029e-05/1.862, allocations: 23.7 kB / 0.9953 GB, free: 174 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.087e-06/1.862, allocations: 0 / 0.9953 GB, free: 174 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 6.941e-05/1.862, allocations: 322.8 kB / 0.9956 GB, free: 173.7 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.957e-05/1.862, allocations: 32 kB / 0.9956 GB, free: 173.7 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.635e-05/1.862, allocations: 86.11 kB / 0.9957 GB, free: 173.6 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.849e-05/1.862, allocations: 31.98 kB / 0.9958 GB, free: 173.5 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/1.862, allocations: 0 / 0.9958 GB, free: 173.5 MB / 0.5886 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002372/1.862, allocations: 149.4 kB / 0.9959 GB, free: 173.4 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 3.109e-05/1.862, allocations: 41.81 kB / 0.9959 GB, free: 173.3 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/1.862, allocations: 0 / 0.9959 GB, free: 173.3 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.65e-05/1.862, allocations: 7.938 kB / 0.9959 GB, free: 173.3 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001565/1.863, allocations: 31.98 kB / 0.996 GB, free: 173.3 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.833e-06/1.863, allocations: 11.92 kB / 0.996 GB, free: 173.3 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001589/1.863, allocations: 21.22 kB / 0.996 GB, free: 173.3 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.759e-05/1.863, allocations: 7.984 kB / 0.996 GB, free: 173.3 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 () * 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 7.317e-05/1.863, allocations: 117.5 kB / 0.9961 GB, free: 173.1 MB / 0.5886 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001433/1.863, allocations: 97.48 kB / 0.9962 GB, free: 173 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.659e-05/1.863, allocations: 19.7 kB / 0.9962 GB, free: 173 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001858/1.863, allocations: 103.5 kB / 0.9963 GB, free: 172.9 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/1.863, allocations: 0 / 0.9963 GB, free: 172.9 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/1.863, allocations: 0 / 0.9963 GB, free: 172.9 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/1.863, allocations: 0 / 0.9963 GB, free: 172.9 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001373/1.863, allocations: 206.1 kB / 0.9965 GB, free: 172.7 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/1.864, allocations: 0 / 0.9965 GB, free: 172.7 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001156/1.864, allocations: 27.92 kB / 0.9966 GB, free: 172.7 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.496e-06/1.864, allocations: 7.891 kB / 0.9966 GB, free: 172.6 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.227e-05/1.864, allocations: 0 / 0.9966 GB, free: 172.6 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/1.864, allocations: 0 / 0.9966 GB, free: 172.6 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/1.864, allocations: 0 / 0.9966 GB, free: 172.6 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002339/1.864, allocations: 156.9 kB / 0.9967 GB, free: 172.5 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 3.987e-05/1.864, allocations: 96.88 kB / 0.9968 GB, free: 172.4 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.939e-05/1.864, allocations: 8.016 kB / 0.9968 GB, free: 172.4 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001209/1.864, allocations: 11.98 kB / 0.9968 GB, free: 172.3 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.617e-05/1.864, allocations: 15.98 kB / 0.9968 GB, free: 172.3 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.536e-06/1.864, allocations: 0 / 0.9968 GB, free: 172.3 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 7.666e-05/1.864, allocations: 132.3 kB / 0.997 GB, free: 172.2 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.6e-07/1.864, allocations: 0 / 0.997 GB, free: 172.2 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0002729/1.865, allocations: 43.94 kB / 0.997 GB, free: 172.2 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (terminalSource.p) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * 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.0005804/1.865, allocations: 0.8106 MB / 0.9978 GB, free: 171.3 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0002035/1.865, allocations: 139.6 kB / 0.9979 GB, free: 171.2 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/1.865, allocations: 8 kB / 0.9979 GB, free: 171.2 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 5.669e-05/1.865, allocations: 31.94 kB / 0.998 GB, free: 171.1 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002895/1.866, allocations: 32.11 kB / 0.998 GB, free: 171.1 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007523/1.867, allocations: 299.1 kB / 0.9983 GB, free: 170.8 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001702/1.867, allocations: 0.7239 MB / 0.999 GB, free: 170 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 7.705e-05/1.867, allocations: 17.2 kB / 0.999 GB, free: 170 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.891e-05/1.867, allocations: 47.42 kB / 0.9991 GB, free: 170 MB / 0.5886 GB Notification: Performance of SimCode: time 2.4e-07/1.867, allocations: 0 / 0.9991 GB, free: 170 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02327/1.89, allocations: 4.126 MB / 1.003 GB, free: 165.9 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001712/1.89, allocations: 168.5 kB / 1.003 GB, free: 165.7 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.849/3.739, allocations: 0 / 1.003 GB, free: 165.7 MB / 0.5886 GB (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