Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.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.Undirected.FlowControl.Tests.TanValve,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_Undirected_FlowControl_Tests_TanValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.TanValve,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_Undirected_FlowControl_Tests_TanValve",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.00415/0.00415, allocations: 182.5 kB / 7.456 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 1.997/1.997, allocations: 205.2 MB / 213.1 MB, free: 13.84 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.0009012/0.0009012, allocations: 91.78 kB / 261.1 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 1.075/1.075, allocations: 90.35 MB / 399.4 MB, free: 12.28 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.1732/1.248, allocations: 72.4 MB / 471.8 MB, free: 3.719 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5414/1.789, allocations: 66.25 MB / 0.5254 GB, free: 28.88 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.527/3.316, allocations: 441.2 MB / 0.9563 GB, free: 160.4 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003218/3.317, allocations: 85.56 kB / 0.9563 GB, free: 160.4 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: 305 * Number of variables: 305 Notification: Performance of Generate backend data structure: time 1.008/4.325, allocations: 249.7 MB / 1.2 GB, free: 128.8 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 6.116e-05/4.325, allocations: 15.88 kB / 1.2 GB, free: 128.8 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000404/4.325, allocations: 149.5 kB / 1.2 GB, free: 128.7 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001478/4.327, allocations: 0.7351 MB / 1.201 GB, free: 128.4 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.959e-05/4.327, allocations: 39.22 kB / 1.201 GB, free: 128.4 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001737/4.327, allocations: 75.94 kB / 1.201 GB, free: 128.4 MB / 0.5886 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002561/4.33, allocations: 1.569 MB / 1.203 GB, free: 128.4 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00203/4.332, allocations: 1.212 MB / 1.204 GB, free: 128.3 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.958e-05/4.332, allocations: 0 / 1.204 GB, free: 128.3 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.602e-05/4.332, allocations: 7.047 kB / 1.204 GB, free: 128.3 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.2e-05/4.332, allocations: 30.34 kB / 1.204 GB, free: 128.3 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008414/4.34, allocations: 6.22 MB / 1.21 GB, free: 124.7 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001528/4.342, allocations: 0.8028 MB / 1.211 GB, free: 124.7 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001059/4.343, allocations: 0.7 MB / 1.211 GB, free: 124.7 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005676/4.349, allocations: 3.631 MB / 1.215 GB, free: 122.9 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001095/4.35, allocations: 0.7257 MB / 1.216 GB, free: 122.9 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=136): time 4.228e-06/4.35, allocations: 0 / 1.216 GB, free: 122.9 MB / 0.5886 GB Notification: Performance of matching and sorting (n=137): time 0.0144/4.364, allocations: 4.334 MB / 1.22 GB, free: 122.3 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.339e-05/4.364, allocations: 64 kB / 1.22 GB, free: 122.3 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008407/4.365, allocations: 420.3 kB / 1.22 GB, free: 122.1 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0001501/4.365, allocations: 25.7 kB / 1.22 GB, free: 122.1 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004049/4.366, allocations: 370.7 kB / 1.221 GB, free: 121.9 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004997/4.366, allocations: 437.5 kB / 1.221 GB, free: 121.6 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.244e-05/4.366, allocations: 3.219 kB / 1.221 GB, free: 121.6 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0002057/4.366, allocations: 398 kB / 1.222 GB, free: 121.3 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008763/4.367, allocations: 0.5283 MB / 1.222 GB, free: 121.3 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009558/4.368, allocations: 0.6217 MB / 1.223 GB, free: 121.2 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003813/4.372, allocations: 0.9948 MB / 1.224 GB, free: 121.2 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.777e-06/4.372, allocations: 0 / 1.224 GB, free: 121.2 MB / 0.5886 GB Notification: Performance of matching and sorting (n=146) (initialization): time 0.006026/4.378, allocations: 1.948 MB / 1.226 GB, free: 121.1 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 3.006e-05/4.378, allocations: 3.875 kB / 1.226 GB, free: 121.1 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.046e-05/4.378, allocations: 7.25 kB / 1.226 GB, free: 121.1 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006496/4.379, allocations: 162.5 kB / 1.226 GB, free: 121.1 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001108/4.38, allocations: 251.7 kB / 1.226 GB, free: 121.1 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004353/4.384, allocations: 2.584 MB / 1.229 GB, free: 119.8 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001352/4.386, allocations: 73.95 kB / 1.229 GB, free: 119.8 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003576/4.386, allocations: 56.33 kB / 1.229 GB, free: 119.8 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (129): * Single equations (assignments): 124 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004227/4.387, allocations: 121 kB / 1.229 GB, free: 119.7 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00034/4.387, allocations: 94.53 kB / 1.229 GB, free: 119.6 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00739/4.394, allocations: 2.503 MB / 1.231 GB, free: 119.4 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.969e-05/4.394, allocations: 25.19 kB / 1.231 GB, free: 119.4 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.531e-05/4.395, allocations: 7.125 kB / 1.231 GB, free: 119.4 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.357e-05/4.395, allocations: 7.547 kB / 1.231 GB, free: 119.4 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008793/4.403, allocations: 3.689 MB / 1.235 GB, free: 119 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.34e-05/4.403, allocations: 3.328 kB / 1.235 GB, free: 119 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001171/4.405, allocations: 287.8 kB / 1.235 GB, free: 119 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005465/4.405, allocations: 136.7 kB / 1.235 GB, free: 119 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001645/4.405, allocations: 38.22 kB / 1.235 GB, free: 119 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002596/4.408, allocations: 2.221 MB / 1.238 GB, free: 117.7 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.386e-06/4.408, allocations: 5.094 kB / 1.238 GB, free: 117.7 MB / 0.5886 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007754/4.416, allocations: 2.965 MB / 1.24 GB, free: 116.5 MB / 0.5886 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.009549/4.425, allocations: 4.342 MB / 1.245 GB, free: 114.5 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005273/4.426, allocations: 166.5 kB / 1.245 GB, free: 114.3 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003254/4.426, allocations: 13.69 kB / 1.245 GB, free: 114.3 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001133/4.427, allocations: 72.77 kB / 1.245 GB, free: 114.3 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002895/4.428, allocations: 105.2 kB / 1.245 GB, free: 114.3 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002103/4.428, allocations: 57.34 kB / 1.245 GB, free: 114.3 MB / 0.5886 GB Notification: Performance of sort global known variables: time 0.0005724/4.429, allocations: 329.1 kB / 1.245 GB, free: 114.1 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.003615/4.432, allocations: 0.6683 MB / 1.246 GB, free: 113.8 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (junctionRFF2_1.junctionMN.rears[1].m_flow,junctionRFF2_1.junctionMN.fores[1].m_flow) * 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 (154): * Single equations (assignments): 148 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002011/4.434, allocations: 0.9097 MB / 1.247 GB, free: 113.6 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.00344/4.438, allocations: 1.62 MB / 1.249 GB, free: 112.9 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/4.438, allocations: 0 / 1.249 GB, free: 112.9 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.001972/4.44, allocations: 1.002 MB / 1.25 GB, free: 112.5 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001968/4.442, allocations: 253.9 kB / 1.25 GB, free: 112.4 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005271/4.447, allocations: 1.883 MB / 1.252 GB, free: 111.7 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001659/4.449, allocations: 1.32 MB / 1.253 GB, free: 111 MB / 0.5886 GB Notification: Performance of SimCode: time 1.493e-06/4.449, allocations: 2.906 kB / 1.253 GB, free: 111 MB / 0.5886 GB (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.mat --tempDir=temp_ThermofluidStream_OM_adaptions_ThermofluidStream_Undirected_FlowControl_Tests_TanValve_fmu --startTime=0 --stopTime=100 --timeout=1200 --tolerance=1e-06 ThermofluidStream_OM_adaptions_ThermofluidStream_Undirected_FlowControl_Tests_TanValve.fmu > ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe 2>&1)