Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve.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.FlowControl.Tests.CheckValve,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_FlowControl_Tests_CheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.CheckValve,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_FlowControl_Tests_CheckValve",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.002517/0.002517, allocations: 178.2 kB / 7.455 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.056/1.056, allocations: 205.2 MB / 213.1 MB, free: 13.93 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.0008302/0.0008304, allocations: 81.48 kB / 261.1 MB, free: 13.55 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.533/0.533, allocations: 90.35 MB / 399.4 MB, free: 12.27 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1216/0.6547, allocations: 72.39 MB / 471.7 MB, free: 3.719 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.262/0.9167, allocations: 66.26 MB / 0.5254 GB, free: 28.83 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7419/1.659, allocations: 435.6 MB / 0.9508 GB, free: 163.6 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001999/1.659, allocations: 76.06 kB / 0.9509 GB, free: 163.6 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: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.1284/1.787, allocations: 70.45 MB / 1.02 GB, free: 132.6 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 3.293e-05/1.787, allocations: 8 kB / 1.02 GB, free: 132.6 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.32e-05/1.788, allocations: 31.62 kB / 1.02 GB, free: 132.6 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002759/1.788, allocations: 269.5 kB / 1.02 GB, free: 132.2 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.573e-05/1.788, allocations: 12 kB / 1.02 GB, free: 132.2 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.747e-05/1.788, allocations: 12 kB / 1.02 GB, free: 132.2 MB / 0.5886 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002542/1.788, allocations: 184.8 kB / 1.02 GB, free: 132 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002528/1.788, allocations: 178.4 kB / 1.02 GB, free: 131.9 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.696e-06/1.788, allocations: 4 kB / 1.02 GB, free: 131.9 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.945e-05/1.788, allocations: 0 / 1.02 GB, free: 131.9 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.877e-06/1.788, allocations: 11.98 kB / 1.02 GB, free: 131.9 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001009/1.789, allocations: 0.9902 MB / 1.021 GB, free: 130.7 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001533/1.79, allocations: 109.8 kB / 1.021 GB, free: 130.6 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001239/1.79, allocations: 104.7 kB / 1.022 GB, free: 130.5 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007505/1.791, allocations: 0.845 MB / 1.022 GB, free: 129.6 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001733/1.791, allocations: 135.4 kB / 1.022 GB, free: 129.4 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=25): time 1.813e-06/1.791, allocations: 0 / 1.022 GB, free: 129.4 MB / 0.5886 GB Notification: Performance of matching and sorting (n=25): time 0.0005896/1.791, allocations: 238.6 kB / 1.023 GB, free: 129.2 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.009e-05/1.791, allocations: 59.34 kB / 1.023 GB, free: 129.1 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001356/1.791, allocations: 188 kB / 1.023 GB, free: 128.9 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 2.036e-05/1.791, allocations: 37.64 kB / 1.023 GB, free: 128.9 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 4.459e-05/1.792, allocations: 132.3 kB / 1.023 GB, free: 128.8 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 4.062e-05/1.792, allocations: 78.84 kB / 1.023 GB, free: 128.7 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.182e-05/1.792, allocations: 0 / 1.023 GB, free: 128.7 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 4.929e-05/1.792, allocations: 338.7 kB / 1.024 GB, free: 128.3 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001012/1.792, allocations: 71.97 kB / 1.024 GB, free: 128.3 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001066/1.792, allocations: 95.3 kB / 1.024 GB, free: 128.2 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002185/1.792, allocations: 90.69 kB / 1.024 GB, free: 128.1 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/1.792, allocations: 0 / 1.024 GB, free: 128.1 MB / 0.5886 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004952/1.793, allocations: 262.8 kB / 1.024 GB, free: 127.8 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.431e-05/1.793, allocations: 11.89 kB / 1.024 GB, free: 127.8 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/1.793, allocations: 4 kB / 1.024 GB, free: 127.8 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00019/1.793, allocations: 40.91 kB / 1.024 GB, free: 127.8 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002097/1.793, allocations: 51.91 kB / 1.024 GB, free: 127.7 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008279/1.794, allocations: 1.334 MB / 1.025 GB, free: 126.3 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002032/1.794, allocations: 23.88 kB / 1.025 GB, free: 126.2 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.24e-05/1.794, allocations: 12 kB / 1.025 GB, free: 126.2 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (26): * Single equations (assignments): 23 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.924e-05/1.794, allocations: 116.9 kB / 1.026 GB, free: 126.1 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.923e-05/1.794, allocations: 23.66 kB / 1.026 GB, free: 126.1 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007091/1.795, allocations: 304.3 kB / 1.026 GB, free: 125.8 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.489e-06/1.795, allocations: 8 kB / 1.026 GB, free: 125.8 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/1.795, allocations: 0 / 1.026 GB, free: 125.8 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.199e-06/1.795, allocations: 7.922 kB / 1.026 GB, free: 125.8 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009232/1.796, allocations: 0.6606 MB / 1.027 GB, free: 125.1 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/1.796, allocations: 0 / 1.027 GB, free: 125.1 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001649/1.796, allocations: 47.94 kB / 1.027 GB, free: 125 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000134/1.796, allocations: 44.73 kB / 1.027 GB, free: 125 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.214e-05/1.796, allocations: 0 / 1.027 GB, free: 125 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006921/1.797, allocations: 1.346 MB / 1.028 GB, free: 123.5 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/1.797, allocations: 4 kB / 1.028 GB, free: 123.5 MB / 0.5886 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005915/1.798, allocations: 478.8 kB / 1.028 GB, free: 123 MB / 0.5886 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000759/1.798, allocations: 0.956 MB / 1.029 GB, free: 122 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 4.613e-05/1.798, allocations: 100.8 kB / 1.029 GB, free: 121.9 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.037e-05/1.798, allocations: 0 / 1.029 GB, free: 121.9 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002133/1.799, allocations: 19.92 kB / 1.029 GB, free: 121.9 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.213e-05/1.799, allocations: 23.95 kB / 1.029 GB, free: 121.8 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.843e-05/1.799, allocations: 8 kB / 1.029 GB, free: 121.8 MB / 0.5886 GB Notification: Performance of sort global known variables: time 9.105e-05/1.799, allocations: 156.5 kB / 1.03 GB, free: 121.7 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.001102/1.8, allocations: 155.8 kB / 1.03 GB, free: 121.5 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (checkValve.inlet.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 (23): * Single equations (assignments): 19 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004197/1.8, allocations: 326.5 kB / 1.03 GB, free: 121.2 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0004948/1.801, allocations: 361.4 kB / 1.03 GB, free: 120.8 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/1.801, allocations: 0 / 1.03 GB, free: 120.8 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.0002786/1.801, allocations: 247.6 kB / 1.031 GB, free: 120.6 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004439/1.802, allocations: 62.95 kB / 1.031 GB, free: 120.5 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008065/1.803, allocations: 394.2 kB / 1.031 GB, free: 120.1 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002453/1.803, allocations: 0.8021 MB / 1.032 GB, free: 119.3 MB / 0.5886 GB Notification: Performance of SimCode: time 3.4e-07/1.803, allocations: 0 / 1.032 GB, free: 119.3 MB / 0.5886 GB (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve_res.mat --tempDir=temp_ThermofluidStream_OM_adaptions_ThermofluidStream_FlowControl_Tests_CheckValve_fmu --startTime=0 --stopTime=1 --timeout=1200 --tolerance=1e-06 ThermofluidStream_OM_adaptions_ThermofluidStream_FlowControl_Tests_CheckValve.fmu > ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve_res.mat does not exist to compare? outputFormat=mat