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.007959/0.007959, allocations: 173.6 kB / 15.12 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.497/1.497, allocations: 223.2 MB / 239 MB, free: 1.777 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.001033/0.001033, allocations: 98.94 kB / 290.2 MB, free: 13.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObsoleteModelica4 4.0.0+maint.om/package.mo): time 0.01055/0.01055, allocations: 1.551 MB / 342.9 MB, free: 9.258 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo): time 0.777/0.777, allocations: 90.3 MB / 484.7 MB, free: 21.86 MB / 330.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0004775/0.0004776, allocations: 20.28 kB / 0.5527 GB, free: 30.18 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1517/0.1522, allocations: 69.37 MB / 0.6204 GB, free: 5.488 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.214/1.366, allocations: 442.5 MB / 1.053 GB, free: 96.36 MB / 0.6042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002414/1.366, allocations: 85.52 kB / 1.053 GB, free: 96.31 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 2.835/4.201, allocations: 0.6337 GB / 1.686 GB, free: 49.12 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.615e-06/4.202, allocations: 0 / 1.686 GB, free: 49.12 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 0.0004384/4.202, allocations: 104.4 kB / 1.686 GB, free: 49.1 MB / 0.6198 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.01555/4.218, allocations: 4.555 MB / 1.691 GB, free: 47.01 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.973e-05/4.218, allocations: 11.77 kB / 1.691 GB, free: 47 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00169/4.219, allocations: 440.8 kB / 1.691 GB, free: 46.95 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002148/4.221, allocations: 447.7 kB / 1.692 GB, free: 46.73 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003975/4.225, allocations: 1.669 MB / 1.693 GB, free: 46.25 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000204/4.226, allocations: 248.5 kB / 1.694 GB, free: 46.24 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000514/4.226, allocations: 347 kB / 1.694 GB, free: 46.23 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00629/4.233, allocations: 4.005 MB / 1.698 GB, free: 45.72 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.061e-05/4.233, allocations: 8.344 kB / 1.698 GB, free: 45.72 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002848/4.233, allocations: 133.9 kB / 1.698 GB, free: 45.72 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.861e-05/4.233, allocations: 95.41 kB / 1.698 GB, free: 45.72 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006431/4.239, allocations: 4.005 MB / 1.702 GB, free: 45.69 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01943/4.259, allocations: 18.03 MB / 1.72 GB, free: 34.62 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00763/4.267, allocations: 4.835 MB / 1.724 GB, free: 34.35 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01214/4.279, allocations: 9.341 MB / 1.733 GB, free: 28.71 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00403/4.283, allocations: 2.539 MB / 1.736 GB, free: 28.5 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=479): time 7.114e-06/4.283, allocations: 0 / 1.736 GB, free: 28.5 MB / 0.6198 GB Notification: Performance of matching and sorting (n=479): time 0.01507/4.298, allocations: 8.96 MB / 1.745 GB, free: 25.25 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001322/4.298, allocations: 346.5 kB / 1.745 GB, free: 24.91 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002212/4.3, allocations: 1.458 MB / 1.746 GB, free: 24.7 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 0.0004373/4.301, allocations: 109.5 kB / 1.747 GB, free: 24.67 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008669/4.302, allocations: 1.142 MB / 1.748 GB, free: 24.28 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.001324/4.303, allocations: 1.58 MB / 1.749 GB, free: 23.25 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002404/4.303, allocations: 86.75 kB / 1.749 GB, free: 23.25 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.000227/4.303, allocations: 469 kB / 1.75 GB, free: 22.93 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003062/4.307, allocations: 1.645 MB / 1.751 GB, free: 22.92 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003241/4.31, allocations: 2.185 MB / 1.753 GB, free: 22.45 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00326/4.313, allocations: 2.022 MB / 1.755 GB, free: 22.21 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.269e-05/4.313, allocations: 3.562 kB / 1.755 GB, free: 22.21 MB / 0.6198 GB Notification: Performance of matching and sorting (n=555) (initialization): time 0.009813/4.323, allocations: 5.236 MB / 1.761 GB, free: 21.61 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 9.626e-05/4.323, allocations: 182.7 kB / 1.761 GB, free: 21.42 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.646e-05/4.323, allocations: 12.72 kB / 1.761 GB, free: 21.42 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001117/4.324, allocations: 387.1 kB / 1.761 GB, free: 21.34 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003272/4.327, allocations: 0.907 MB / 1.762 GB, free: 21.34 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01001/4.337, allocations: 14.06 MB / 1.776 GB, free: 24.76 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004671/4.342, allocations: 471.6 kB / 1.776 GB, free: 24.56 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008326/4.343, allocations: 188.6 kB / 1.776 GB, free: 24.56 MB / 0.6355 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 () * Number of clocked 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.001901/4.345, allocations: 0.5649 MB / 1.777 GB, free: 24.43 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001144/4.346, allocations: 351 kB / 1.777 GB, free: 24.26 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01245/4.359, allocations: 6.145 MB / 1.783 GB, free: 23.75 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.645e-05/4.359, allocations: 66.39 kB / 1.783 GB, free: 23.75 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.729e-05/4.359, allocations: 12.31 kB / 1.783 GB, free: 23.75 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.01e-05/4.359, allocations: 24.42 kB / 1.783 GB, free: 23.75 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01859/4.377, allocations: 10.45 MB / 1.794 GB, free: 20.28 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.968e-05/4.377, allocations: 2.594 kB / 1.794 GB, free: 20.28 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003456/4.381, allocations: 0.9074 MB / 1.794 GB, free: 20.25 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001157/4.382, allocations: 391.2 kB / 1.795 GB, free: 20.11 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004005/4.382, allocations: 155.5 kB / 1.795 GB, free: 20.04 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01176/4.394, allocations: 14.06 MB / 1.809 GB, free: 22.34 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.03e-06/4.394, allocations: 3.781 kB / 1.809 GB, free: 22.34 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01736/4.412, allocations: 8.728 MB / 1.817 GB, free: 17.77 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002421/4.414, allocations: 479.6 kB / 1.818 GB, free: 17.4 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006229/4.415, allocations: 104.4 kB / 1.818 GB, free: 17.33 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003041/4.418, allocations: 246.3 kB / 1.818 GB, free: 17.24 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009184/4.419, allocations: 431 kB / 1.818 GB, free: 17.17 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004346/4.419, allocations: 186.9 kB / 1.819 GB, free: 17.14 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.001738/4.421, allocations: 1.097 MB / 1.82 GB, free: 16.71 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.4e-07/4.421, allocations: 6.594 kB / 1.82 GB, free: 16.71 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.007306/4.428, allocations: 1.686 MB / 1.821 GB, free: 16.24 MB / 0.6511 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) * Number of clocked states: 0 () * 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.02139/4.45, allocations: 12.61 MB / 1.834 GB, free: 9.008 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.01162/4.461, allocations: 6.022 MB / 1.84 GB, free: 5.926 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.23e-05/4.461, allocations: 3.875 kB / 1.84 GB, free: 5.926 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.008228/4.47, allocations: 3.915 MB / 1.843 GB, free: 3.812 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006763/4.476, allocations: 0.9618 MB / 1.844 GB, free: 3.52 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5538/5.03, allocations: 32.45 MB / 1.876 GB, free: 87.65 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003184/5.034, allocations: 2.061 MB / 1.878 GB, free: 86.9 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.005303/5.039, allocations: 0.7562 MB / 1.879 GB, free: 86.82 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00354/5.042, allocations: 1.626 MB / 1.88 GB, free: 86.82 MB / 0.6667 GB Notification: Performance of SimCode: time 2.465e-06/5.042, allocations: 0 / 1.88 GB, free: 86.82 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2226/5.265, allocations: 109 MB / 1.987 GB, free: 80.98 MB / 0.6667 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000153/5.265, allocations: 207.8 kB / 1.987 GB, free: 80.74 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.951/12.22, allocations: 0 / 1.987 GB, free: 80.74 MB / 0.6667 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