Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.MCV.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.FlowControl.Tests.MCV,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_MCV",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.MCV,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_MCV",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001254/0.001254, allocations: 179.1 kB / 7.648 MB, free: 1.422 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.346/1.346, allocations: 221.5 MB / 229.6 MB, free: 3.191 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.0008856/0.0008854, allocations: 89.97 kB / 280.5 MB, free: 1.148 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.01204/0.01204, allocations: 1.573 MB / 332.8 MB, free: 12.77 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo): time 0.5861/0.5861, allocations: 90.06 MB / 474 MB, free: 7.066 MB / 314.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 4.01e-05/4.055e-05, allocations: 7.984 kB / 0.5376 GB, free: 13.82 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1732/0.1733, allocations: 69.37 MB / 0.6053 GB, free: 8.371 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.195/1.368, allocations: 441.8 MB / 1.037 GB, free: 5.805 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000328/1.369, allocations: 88.75 kB / 1.037 GB, free: 5.758 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 2.624/3.993, allocations: 0.6282 GB / 1.665 GB, free: 49.11 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.773e-06/3.993, allocations: 0 / 1.665 GB, free: 49.11 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 0.000502/3.993, allocations: 99 kB / 1.665 GB, free: 49.09 MB / 0.6042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 847 * Number of variables: 847 Notification: Performance of Generate backend data structure: time 0.01631/4.01, allocations: 4.234 MB / 1.669 GB, free: 47.04 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 5.4e-05/4.01, allocations: 7.344 kB / 1.669 GB, free: 47.04 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002744/4.012, allocations: 439.1 kB / 1.67 GB, free: 46.83 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005653/4.018, allocations: 1.656 MB / 1.671 GB, free: 46.27 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003003/4.018, allocations: 109.2 kB / 1.671 GB, free: 46.27 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001582/4.02, allocations: 215.2 kB / 1.672 GB, free: 46.26 MB / 0.6042 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008484/4.029, allocations: 3.339 MB / 1.675 GB, free: 46.24 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008753/4.037, allocations: 3.339 MB / 1.678 GB, free: 45.74 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.79e-05/4.037, allocations: 7.875 kB / 1.678 GB, free: 45.73 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002451/4.038, allocations: 7.891 kB / 1.678 GB, free: 45.73 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.285e-05/4.038, allocations: 98.16 kB / 1.678 GB, free: 45.73 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02363/4.061, allocations: 17.46 MB / 1.695 GB, free: 34.63 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008545/4.07, allocations: 4.262 MB / 1.699 GB, free: 34.21 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00386/4.074, allocations: 1.877 MB / 1.701 GB, free: 33.34 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02396/4.098, allocations: 9.138 MB / 1.71 GB, free: 26.11 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006326/4.104, allocations: 2.223 MB / 1.712 GB, free: 25.15 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=479): time 2.978e-05/4.104, allocations: 0 / 1.712 GB, free: 25.15 MB / 0.6042 GB Notification: Performance of matching and sorting (n=479): time 0.01635/4.121, allocations: 4.808 MB / 1.717 GB, free: 23.48 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001671/4.121, allocations: 347.9 kB / 1.717 GB, free: 23.12 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002845/4.124, allocations: 1.152 MB / 1.719 GB, free: 22.62 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0007372/4.125, allocations: 32.83 kB / 1.719 GB, free: 22.59 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.001275/4.126, allocations: 1.169 MB / 1.72 GB, free: 21.68 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.001885/4.128, allocations: 1.525 MB / 1.721 GB, free: 20.45 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006376/4.129, allocations: 0 / 1.721 GB, free: 20.45 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.000369/4.129, allocations: 478 kB / 1.722 GB, free: 20.07 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003083/4.132, allocations: 1.346 MB / 1.723 GB, free: 19.47 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003711/4.136, allocations: 1.863 MB / 1.725 GB, free: 18.34 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009449/4.145, allocations: 2.416 MB / 1.727 GB, free: 17.57 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.17e-05/4.145, allocations: 2.312 kB / 1.727 GB, free: 17.57 MB / 0.6042 GB Notification: Performance of matching and sorting (n=555) (initialization): time 0.01794/4.163, allocations: 5.145 MB / 1.732 GB, free: 15.32 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.000161/4.163, allocations: 176.1 kB / 1.732 GB, free: 15.11 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.02e-05/4.164, allocations: 15.05 kB / 1.732 GB, free: 15.1 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001261/4.165, allocations: 368.3 kB / 1.733 GB, free: 14.77 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004133/4.169, allocations: 0.914 MB / 1.734 GB, free: 14 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008429/4.177, allocations: 13.43 MB / 1.747 GB, free: 15.83 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004708/4.182, allocations: 355.1 kB / 1.747 GB, free: 15.52 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00148/4.184, allocations: 183.5 kB / 1.747 GB, free: 15.36 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 30 ($whenCondition6,$PRE.trapezoid2.T_start,trapezoid2.T_start,$PRE.trapezoid2.count,trapezoid2.count,$whenCondition4,$PRE.trapezoid1.T_start,trapezoid1.T_start,$PRE.trapezoid1.count,trapezoid1.count,$whenCondition2,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count,$whenCondition1,$PRE.pulse1.T_start,pulse1.T_start,$PRE.pulse1.count,pulse1.count,$whenCondition3,$PRE.pulse3.T_start,pulse3.T_start,$PRE.pulse3.count,pulse3.count,$whenCondition5,$PRE.pulse5.T_start,pulse5.T_start,$PRE.pulse5.count,pulse5.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (503): * Single equations (assignments): 467 * Array equations: 0 * Algorithm blocks: 6 * Record equations: 20 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00224/4.186, allocations: 203 kB / 1.747 GB, free: 15.16 MB / 0.6198 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01841/4.204, allocations: 4.814 MB / 1.752 GB, free: 10.99 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001609/4.206, allocations: 330.7 kB / 1.752 GB, free: 10.67 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01812/4.224, allocations: 6.175 MB / 1.759 GB, free: 5.602 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001099/4.224, allocations: 63.8 kB / 1.759 GB, free: 5.543 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.605e-05/4.224, allocations: 8 kB / 1.759 GB, free: 5.535 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001035/4.225, allocations: 24.84 kB / 1.759 GB, free: 5.535 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02666/4.251, allocations: 10.16 MB / 1.769 GB, free: 11.76 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.221e-05/4.251, allocations: 4 kB / 1.769 GB, free: 11.76 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00414/4.255, allocations: 0.9092 MB / 1.769 GB, free: 10.85 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001317/4.257, allocations: 383.6 kB / 1.77 GB, free: 10.45 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001129/4.258, allocations: 111.9 kB / 1.77 GB, free: 10.34 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5409/4.799, allocations: 13.41 MB / 1.783 GB, free: 70.05 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.146e-05/4.799, allocations: 9.125 kB / 1.783 GB, free: 70.05 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02291/4.822, allocations: 8.548 MB / 1.791 GB, free: 68.3 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001373/4.823, allocations: 454.8 kB / 1.792 GB, free: 68.21 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006767/4.824, allocations: 18.66 kB / 1.792 GB, free: 68.21 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002909/4.827, allocations: 172.5 kB / 1.792 GB, free: 68.21 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007847/4.828, allocations: 430.2 kB / 1.792 GB, free: 68.21 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000374/4.828, allocations: 180.9 kB / 1.793 GB, free: 68.21 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 0.001065/4.829, allocations: 0.847 MB / 1.793 GB, free: 68.07 MB / 0.6355 GB Notification: Performance of sort global known variables: time 5.61e-07/4.829, allocations: 0 / 1.793 GB, free: 68.07 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.007638/4.837, allocations: 1.539 MB / 1.795 GB, free: 68.02 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 20 (mCV1.rear.m_flow,mCV1.dp_int,mCV2.rear.m_flow,mCV2.dp_int,mCV3.rear.m_flow,mCV3.dp_int,mCV4.rear.m_flow,mCV4.dp_int,mCV.rear.m_flow,mCV.dp_int,mCV5.rear.m_flow,mCV5.dp_int,boundaryRear9.fore.m_flow,mCV9.dp_int,mCV8.rear.m_flow,mCV8.dp_int,boundaryFore4.rear.m_flow,mCV7.dp_int,mCV6.rear.m_flow,mCV6.dp_int) * Number of discrete variables: 18 ($whenCondition1,pulse1.T_start,pulse1.count,$whenCondition2,trapezoid.T_start,trapezoid.count,$whenCondition3,pulse3.T_start,pulse3.count,$whenCondition4,trapezoid1.T_start,trapezoid1.count,$whenCondition5,pulse5.T_start,pulse5.count,$whenCondition6,trapezoid2.T_start,trapezoid2.count) * Number of discrete states: 6 (trapezoid2.count,pulse5.count,trapezoid1.count,pulse3.count,trapezoid.count,pulse1.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (497): * Single equations (assignments): 455 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 20 * When equations: 12 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 2,(1,100.0%) 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.02464/4.862, allocations: 12.42 MB / 1.807 GB, free: 63.93 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.009664/4.871, allocations: 5.294 MB / 1.812 GB, free: 62.47 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 8.757e-06/4.871, allocations: 1.531 kB / 1.812 GB, free: 62.47 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.005855/4.877, allocations: 3.512 MB / 1.816 GB, free: 61.44 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006552/4.884, allocations: 0.841 MB / 1.816 GB, free: 61.41 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02014/4.904, allocations: 6.61 MB / 1.823 GB, free: 59.9 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002674/4.907, allocations: 2.052 MB / 1.825 GB, free: 59.14 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.004955/4.912, allocations: 0.7392 MB / 1.826 GB, free: 59.01 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003301/4.915, allocations: 1.574 MB / 1.827 GB, free: 59.01 MB / 0.6355 GB Notification: Performance of SimCode: time 1.302e-06/4.915, allocations: 0 / 1.827 GB, free: 59.01 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1701/5.085, allocations: 96 MB / 1.921 GB, free: 52.31 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002182/5.085, allocations: 141.8 kB / 1.921 GB, free: 52.12 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.367/11.45, allocations: 0 / 1.921 GB, free: 52.12 MB / 0.6355 GB (rm -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.MCV.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.MCV.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.MCV.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.MCV.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.MCV_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_MCV_fmu --startTime=0 --stopTime=10 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_MCV.fmu > ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.MCV.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.MCV_res.mat does not exist to compare? outputFormat=mat