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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001746/0.001746, allocations: 176.8 kB / 7.458 MB, free: 2.512 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9057/0.9057, allocations: 205.2 MB / 213.1 MB, free: 14 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.000754/0.000754, allocations: 95.42 kB / 261.1 MB, free: 13.64 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.4748/0.4748, allocations: 90.34 MB / 399.4 MB, free: 12.28 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09605/0.5709, allocations: 72.39 MB / 471.8 MB, free: 3.742 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2093/0.7802, allocations: 66.25 MB / 0.5254 GB, free: 29.06 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6047/1.385, allocations: 431 MB / 0.9463 GB, free: 165 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001841/1.385, allocations: 78.11 kB / 0.9464 GB, free: 165 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.077/1.462, allocations: 47.55 MB / 0.9928 GB, free: 156.4 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 3.565e-05/1.462, allocations: 9.344 kB / 0.9928 GB, free: 156.4 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.286e-05/1.462, allocations: 21.03 kB / 0.9928 GB, free: 156.4 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001919/1.462, allocations: 224.9 kB / 0.9931 GB, free: 156.1 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.51e-05/1.463, allocations: 3.438 kB / 0.9931 GB, free: 156.1 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.962e-05/1.463, allocations: 12.09 kB / 0.9931 GB, free: 156.1 MB / 0.5886 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001338/1.463, allocations: 56.48 kB / 0.9931 GB, free: 156.1 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001707/1.463, allocations: 134.1 kB / 0.9932 GB, free: 156.1 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.885e-06/1.463, allocations: 0 / 0.9932 GB, free: 156.1 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.537e-05/1.463, allocations: 4 kB / 0.9933 GB, free: 156 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.157e-06/1.463, allocations: 2.938 kB / 0.9933 GB, free: 156 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006455/1.464, allocations: 0.752 MB / 0.994 GB, free: 155.4 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 8.54e-05/1.464, allocations: 49.39 kB / 0.994 GB, free: 155.3 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.37e-05/1.464, allocations: 30.89 kB / 0.9941 GB, free: 155.3 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 7.024e-05/1.464, allocations: 83.81 kB / 0.9941 GB, free: 155.2 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.791e-05/1.464, allocations: 73.05 kB / 0.9942 GB, free: 155.2 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=9): time 1.333e-06/1.464, allocations: 0 / 0.9942 GB, free: 155.2 MB / 0.5886 GB Notification: Performance of matching and sorting (n=9): time 0.0001935/1.464, allocations: 99.67 kB / 0.9943 GB, free: 155.1 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.729e-05/1.464, allocations: 52.41 kB / 0.9944 GB, free: 155.1 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001039/1.464, allocations: 158.3 kB / 0.9945 GB, free: 155 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 1.245e-05/1.464, allocations: 25.7 kB / 0.9945 GB, free: 154.9 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 4.006e-05/1.464, allocations: 127.2 kB / 0.9947 GB, free: 154.8 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 1.881e-05/1.464, allocations: 30.17 kB / 0.9947 GB, free: 154.8 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.446e-06/1.464, allocations: 1.094 kB / 0.9947 GB, free: 154.8 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 4.058e-05/1.464, allocations: 325.1 kB / 0.995 GB, free: 154.5 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.387e-05/1.464, allocations: 34.72 kB / 0.995 GB, free: 154.5 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.385e-05/1.465, allocations: 75.02 kB / 0.9951 GB, free: 154.4 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.938e-05/1.465, allocations: 37.14 kB / 0.9951 GB, free: 154.4 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/1.465, allocations: 3.938 kB / 0.9951 GB, free: 154.4 MB / 0.5886 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002096/1.465, allocations: 145.2 kB / 0.9953 GB, free: 154.3 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.144e-05/1.465, allocations: 9.625 kB / 0.9953 GB, free: 154.3 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/1.465, allocations: 1.219 kB / 0.9953 GB, free: 154.3 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.071e-05/1.465, allocations: 5.672 kB / 0.9953 GB, free: 154.3 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001551/1.465, allocations: 38.23 kB / 0.9953 GB, free: 154.3 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.108e-06/1.465, allocations: 5.438 kB / 0.9953 GB, free: 154.3 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001565/1.465, allocations: 25.95 kB / 0.9954 GB, free: 154.3 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.282e-05/1.465, allocations: 6.562 kB / 0.9954 GB, free: 154.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 4.862e-05/1.465, allocations: 106.4 kB / 0.9955 GB, free: 154.2 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.09e-05/1.465, allocations: 18.72 kB / 0.9955 GB, free: 154.2 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001777/1.465, allocations: 102.8 kB / 0.9956 GB, free: 154.1 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.449e-06/1.466, allocations: 7.984 kB / 0.9956 GB, free: 154.1 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/1.466, allocations: 0 / 0.9956 GB, free: 154.1 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/1.466, allocations: 3.906 kB / 0.9956 GB, free: 154.1 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00011/1.466, allocations: 187.4 kB / 0.9958 GB, free: 153.9 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/1.466, allocations: 0 / 0.9958 GB, free: 153.9 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001108/1.466, allocations: 23.92 kB / 0.9958 GB, free: 153.9 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/1.466, allocations: 11.94 kB / 0.9958 GB, free: 153.9 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.063e-05/1.466, allocations: 0 / 0.9958 GB, free: 153.9 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.444e-06/1.466, allocations: 3.984 kB / 0.9958 GB, free: 153.9 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/1.466, allocations: 7.844 kB / 0.9958 GB, free: 153.9 MB / 0.5886 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001939/1.466, allocations: 151.7 kB / 0.996 GB, free: 153.7 MB / 0.5886 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002486/1.466, allocations: 0.5692 MB / 0.9965 GB, free: 153.2 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 2.868e-05/1.466, allocations: 96.59 kB / 0.9966 GB, free: 153.1 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.851e-05/1.466, allocations: 0 / 0.9966 GB, free: 153.1 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001234/1.466, allocations: 11.98 kB / 0.9966 GB, free: 153.1 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.981e-05/1.467, allocations: 15.89 kB / 0.9966 GB, free: 153.1 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.746e-06/1.467, allocations: 7.75 kB / 0.9966 GB, free: 153.1 MB / 0.5886 GB Notification: Performance of sort global known variables: time 5.711e-05/1.467, allocations: 134.5 kB / 0.9968 GB, free: 152.9 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0007733/1.467, allocations: 58 kB / 0.9968 GB, free: 152.9 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.0001909/1.468, allocations: 230.6 kB / 0.9971 GB, free: 152.7 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0001477/1.468, allocations: 111.8 kB / 0.9972 GB, free: 152.6 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.423e-06/1.468, allocations: 0 / 0.9972 GB, free: 152.6 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 5.236e-05/1.468, allocations: 35.44 kB / 0.9972 GB, free: 152.6 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002333/1.468, allocations: 23.98 kB / 0.9972 GB, free: 152.5 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005012/1.469, allocations: 250.4 kB / 0.9975 GB, free: 152.3 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001466/1.469, allocations: 0.739 MB / 0.9982 GB, free: 151.5 MB / 0.5886 GB Notification: Performance of SimCode: time 2.31e-07/1.469, allocations: 4 kB / 0.9982 GB, free: 151.5 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