Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObsoleteModelica4 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo) Using package ObsoleteModelica4 with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObsoleteModelica4 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance",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 4.0.0+maint.om/package.mo): time 0.004202/0.004202, allocations: 182.9 kB / 7.461 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.805/1.805, allocations: 221.4 MB / 229.3 MB, free: 3.07 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001287/0.001287, allocations: 107.6 kB / 280.1 MB, free: 1.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObsoleteModelica4 4.0.0+maint.om/package.mo): time 0.01294/0.01294, allocations: 1.582 MB / 332.5 MB, free: 12.89 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo): time 0.9813/0.9813, allocations: 90.04 MB / 473.6 MB, free: 7.273 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.5112/1.493, allocations: 76.21 MB / 0.537 GB, free: 14.25 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2993/1.792, allocations: 69.36 MB / 0.6047 GB, free: 8.789 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.728/3.52, allocations: 436.5 MB / 1.031 GB, free: 10.99 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002872/3.52, allocations: 87.55 kB / 1.031 GB, free: 10.95 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: 107 * Number of variables: 107 Notification: Performance of Generate backend data structure: time 0.6553/4.176, allocations: 104.4 MB / 1.133 GB, free: 180.8 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.836e-05/4.176, allocations: 8.5 kB / 1.133 GB, free: 180.8 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002263/4.176, allocations: 55.34 kB / 1.133 GB, free: 180.8 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006953/4.177, allocations: 386.8 kB / 1.133 GB, free: 180.4 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.011e-05/4.177, allocations: 15.91 kB / 1.133 GB, free: 180.4 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.89e-05/4.177, allocations: 24 kB / 1.133 GB, free: 180.3 MB / 0.6042 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006834/4.178, allocations: 453.8 kB / 1.134 GB, free: 179.9 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006053/4.178, allocations: 392.5 kB / 1.134 GB, free: 179.5 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.832e-05/4.178, allocations: 0 / 1.134 GB, free: 179.5 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.457e-05/4.178, allocations: 0 / 1.134 GB, free: 179.5 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.495e-05/4.178, allocations: 8 kB / 1.134 GB, free: 179.5 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002439/4.181, allocations: 2.127 MB / 1.136 GB, free: 177.1 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005186/4.181, allocations: 446.2 kB / 1.137 GB, free: 176.7 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002858/4.182, allocations: 242.8 kB / 1.137 GB, free: 176.5 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002136/4.184, allocations: 1.83 MB / 1.139 GB, free: 174.4 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.631e-05/4.184, allocations: 39 kB / 1.139 GB, free: 174.4 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=55): time 1.884e-06/4.184, allocations: 0 / 1.139 GB, free: 174.4 MB / 0.6042 GB Notification: Performance of matching and sorting (n=55): time 0.001799/4.186, allocations: 0.6312 MB / 1.139 GB, free: 173.8 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.731e-05/4.186, allocations: 55.84 kB / 1.14 GB, free: 173.7 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002439/4.186, allocations: 243.6 kB / 1.14 GB, free: 173.4 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 3.057e-05/4.186, allocations: 29.7 kB / 1.14 GB, free: 173.4 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 8.806e-05/4.186, allocations: 184.4 kB / 1.14 GB, free: 173.2 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001131/4.186, allocations: 177.2 kB / 1.14 GB, free: 173 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.992e-05/4.186, allocations: 0 / 1.14 GB, free: 173 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001049/4.186, allocations: 354.8 kB / 1.14 GB, free: 172.7 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002259/4.186, allocations: 153 kB / 1.141 GB, free: 172.5 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002384/4.187, allocations: 208.7 kB / 1.141 GB, free: 172.3 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009758/4.188, allocations: 321.1 kB / 1.141 GB, free: 172 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.656e-06/4.188, allocations: 0 / 1.141 GB, free: 172 MB / 0.6042 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001519/4.189, allocations: 0.6509 MB / 1.142 GB, free: 171.3 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.792e-05/4.189, allocations: 4 kB / 1.142 GB, free: 171.3 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.265e-06/4.189, allocations: 0 / 1.142 GB, free: 171.3 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002855/4.19, allocations: 73.78 kB / 1.142 GB, free: 171.3 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003291/4.19, allocations: 83.89 kB / 1.142 GB, free: 171.2 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001728/4.192, allocations: 2.587 MB / 1.144 GB, free: 168.4 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003554/4.192, allocations: 35.62 kB / 1.144 GB, free: 168.3 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.83e-05/4.192, allocations: 16 kB / 1.144 GB, free: 168.3 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001122/4.192, allocations: 116.9 kB / 1.145 GB, free: 168.2 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.128e-05/4.192, allocations: 47.42 kB / 1.145 GB, free: 168.1 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002009/4.194, allocations: 0.8288 MB / 1.145 GB, free: 167.3 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.667e-05/4.194, allocations: 12 kB / 1.145 GB, free: 167.3 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.082e-06/4.194, allocations: 0 / 1.145 GB, free: 167.3 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.328e-06/4.194, allocations: 3.984 kB / 1.145 GB, free: 167.3 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002692/4.197, allocations: 1.404 MB / 1.147 GB, free: 165.9 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.161e-06/4.197, allocations: 4 kB / 1.147 GB, free: 165.9 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003107/4.197, allocations: 91.94 kB / 1.147 GB, free: 165.8 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002229/4.198, allocations: 65.58 kB / 1.147 GB, free: 165.7 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.82e-05/4.198, allocations: 15.98 kB / 1.147 GB, free: 165.7 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001562/4.199, allocations: 2.579 MB / 1.15 GB, free: 162.9 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/4.199, allocations: 0 / 1.15 GB, free: 162.9 MB / 0.6042 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002006/4.201, allocations: 1.074 MB / 1.151 GB, free: 161.8 MB / 0.6042 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002371/4.204, allocations: 1.717 MB / 1.152 GB, free: 160 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001598/4.204, allocations: 124.5 kB / 1.152 GB, free: 159.9 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.484e-05/4.204, allocations: 7.906 kB / 1.152 GB, free: 159.8 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003091/4.204, allocations: 8.125 kB / 1.152 GB, free: 159.8 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.421e-05/4.204, allocations: 36.44 kB / 1.152 GB, free: 159.8 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.212e-05/4.204, allocations: 32.03 kB / 1.152 GB, free: 159.8 MB / 0.6042 GB Notification: Performance of sort global known variables: time 0.0002189/4.205, allocations: 203 kB / 1.153 GB, free: 159.6 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.001623/4.206, allocations: 251.6 kB / 1.153 GB, free: 159.3 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (flowResistance.rear.m_flow,flowResistance1.rear.m_flow) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007118/4.207, allocations: 407.7 kB / 1.153 GB, free: 158.9 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.001134/4.208, allocations: 0.6423 MB / 1.154 GB, free: 158.3 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/4.208, allocations: 0 / 1.154 GB, free: 158.3 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0006375/4.209, allocations: 485.7 kB / 1.154 GB, free: 157.8 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007494/4.21, allocations: 116.9 kB / 1.154 GB, free: 157.7 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001636/4.211, allocations: 0.73 MB / 1.155 GB, free: 156.9 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004958/4.212, allocations: 0.9146 MB / 1.156 GB, free: 156 MB / 0.6042 GB Notification: Performance of SimCode: time 8.71e-07/4.212, allocations: 4 kB / 1.156 GB, free: 156 MB / 0.6042 GB (rm -f ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance_fmu --startTime=0 --stopTime=10 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance.fmu > ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_res.mat does not exist to compare? outputFormat=mat