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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/ThermofluidStream 1.1.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 dev (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001955/0.001955, allocations: 100.1 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002553/0.002553, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.45/1.45, allocations: 223.2 MB / 239.9 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7196/0.7196, allocations: 89.64 MB / 380.6 MB, free: 11.44 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.000365/0.0003652, allocations: 12.8 kB / 460 MB, free: 24.38 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1678/0.1681, allocations: 68.83 MB / 0.5165 GB, free: 11.63 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.MCV): time 0.5674/0.7355, allocations: 196.4 MB / 0.7083 GB, free: 5.359 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.03642/0.772, allocations: 23.93 MB / 0.7317 GB, free: 13.37 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006339/0.7784, allocations: 59.56 kB / 0.7317 GB, free: 13.31 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.005928/0.7844, allocations: 1.422 MB / 0.7331 GB, free: 11.88 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.01505/0.7995, allocations: 4.066 MB / 0.7371 GB, free: 7.805 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.00899/0.8085, allocations: 2.331 MB / 0.7393 GB, free: 5.469 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.01125/0.8198, allocations: 4.204 MB / 0.7434 GB, free: 1.25 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001801/0.8216, allocations: 0.7895 MB / 0.7442 GB, free: 452 kB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006451/0.8281, allocations: 2.308 MB / 0.7465 GB, free: 14.12 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005264/0.8334, allocations: 2.409 MB / 0.7488 GB, free: 11.71 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.001384/0.8348, allocations: 160 kB / 0.749 GB, free: 11.55 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01555/0.8504, allocations: 4.256 MB / 0.7531 GB, free: 7.289 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.002282/0.8528, allocations: 0.6105 MB / 0.7537 GB, free: 6.676 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.002472/0.8553, allocations: 0.7263 MB / 0.7544 GB, free: 5.941 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.008919/0.8642, allocations: 3.966 MB / 0.7583 GB, free: 1.965 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.8642, allocations: 0 / 0.7583 GB, free: 1.965 MB / 0.5606 GB Notification: Performance of FrontEnd: time 3.377e-06/0.8643, allocations: 0 / 0.7583 GB, free: 1.965 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 0.0001764/0.8644, allocations: 0 / 0.7583 GB, free: 1.965 MB / 0.5606 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.01066/0.8751, allocations: 4.122 MB / 0.7623 GB, free: 13.73 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 5.387e-05/0.8752, allocations: 8.031 kB / 0.7623 GB, free: 13.72 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001152/0.8763, allocations: 451.6 kB / 0.7628 GB, free: 13.27 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009414/0.8773, allocations: 426.9 kB / 0.7632 GB, free: 12.84 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003457/0.8808, allocations: 1.671 MB / 0.7648 GB, free: 11.1 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002012/0.881, allocations: 258.6 kB / 0.7651 GB, free: 10.84 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004845/0.8815, allocations: 343.8 kB / 0.7654 GB, free: 10.51 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007779/0.8892, allocations: 4.024 MB / 0.7693 GB, free: 6.254 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.025e-05/0.8894, allocations: 15.86 kB / 0.7693 GB, free: 6.238 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002928/0.8897, allocations: 136 kB / 0.7695 GB, free: 6.105 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.133e-05/0.8898, allocations: 84 kB / 0.7695 GB, free: 6.023 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007501/0.8973, allocations: 3.924 MB / 0.7734 GB, free: 2.094 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02476/0.922, allocations: 17.8 MB / 0.7908 GB, free: 15.13 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007782/0.9299, allocations: 3.784 MB / 0.7945 GB, free: 11.26 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3613/1.291, allocations: 12.29 MB / 0.8065 GB, free: 221 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004528/1.296, allocations: 2.151 MB / 0.8086 GB, free: 220.8 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=430): time 9.248e-06/1.296, allocations: 0 / 0.8086 GB, free: 220.8 MB / 0.6075 GB Notification: Performance of matching and sorting (n=430): time 0.01466/1.31, allocations: 6.308 MB / 0.8147 GB, free: 218.6 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001778/1.311, allocations: 345.9 kB / 0.815 GB, free: 218.2 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003408/1.314, allocations: 1.974 MB / 0.817 GB, free: 217.5 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.0006435/1.315, allocations: 105.2 kB / 0.8171 GB, free: 217.4 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.001141/1.316, allocations: 1.217 MB / 0.8183 GB, free: 216.5 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.001305/1.317, allocations: 1.423 MB / 0.8197 GB, free: 215.4 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001919/1.317, allocations: 81.53 kB / 0.8197 GB, free: 215.4 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0002046/1.318, allocations: 463.4 kB / 0.8202 GB, free: 215 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002805/1.32, allocations: 1.333 MB / 0.8215 GB, free: 214.5 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003456/1.324, allocations: 1.899 MB / 0.8233 GB, free: 213.5 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003249/1.327, allocations: 1.71 MB / 0.825 GB, free: 212.6 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.85e-05/1.327, allocations: 4.422 kB / 0.825 GB, free: 212.6 MB / 0.6075 GB Notification: Performance of matching and sorting (n=515) (initialization): time 0.01058/1.338, allocations: 4.581 MB / 0.8295 GB, free: 210.7 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 0.000103/1.338, allocations: 181.4 kB / 0.8297 GB, free: 210.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.35e-05/1.338, allocations: 13.59 kB / 0.8297 GB, free: 210.6 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001157/1.339, allocations: 379.2 kB / 0.83 GB, free: 210.4 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003767/1.343, allocations: 0.9142 MB / 0.8309 GB, free: 210.3 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009836/1.353, allocations: 13.99 MB / 0.8446 GB, free: 196.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003873/1.357, allocations: 466.7 kB / 0.845 GB, free: 196.4 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007138/1.357, allocations: 180.6 kB / 0.8452 GB, free: 196.3 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * 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 (483): * Single equations (assignments): 467 * Array equations: 0 * Algorithm blocks: 6 * Record equations: 0 * 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.001452/1.359, allocations: 0.553 MB / 0.8457 GB, free: 195.9 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006866/1.36, allocations: 353.9 kB / 0.8461 GB, free: 195.7 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01039/1.37, allocations: 6.022 MB / 0.852 GB, free: 193.1 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-05/1.37, allocations: 54.12 kB / 0.852 GB, free: 193.1 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.53e-05/1.37, allocations: 7.906 kB / 0.852 GB, free: 193.1 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.582e-05/1.37, allocations: 25.64 kB / 0.852 GB, free: 193.1 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01595/1.386, allocations: 9.079 MB / 0.8609 GB, free: 187.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.62e-05/1.386, allocations: 11.84 kB / 0.8609 GB, free: 187.5 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003276/1.39, allocations: 0.8056 MB / 0.8617 GB, free: 187.3 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001222/1.391, allocations: 381.6 kB / 0.8621 GB, free: 187.1 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00064/1.391, allocations: 133.8 kB / 0.8622 GB, free: 187 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008105/1.4, allocations: 13.99 MB / 0.8759 GB, free: 172.5 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.033e-06/1.4, allocations: 11.94 kB / 0.8759 GB, free: 172.5 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0111/1.411, allocations: 7.546 MB / 0.8832 GB, free: 164.5 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001877/1.413, allocations: 0.9947 MB / 0.8842 GB, free: 163.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005061/1.413, allocations: 96 kB / 0.8843 GB, free: 163.4 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002238/1.415, allocations: 219.4 kB / 0.8845 GB, free: 163.2 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006212/1.416, allocations: 382 kB / 0.8849 GB, free: 162.8 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002422/1.416, allocations: 159.9 kB / 0.885 GB, free: 162.6 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.00167/1.418, allocations: 1.448 MB / 0.8864 GB, free: 161.2 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/1.418, allocations: 7.328 kB / 0.8865 GB, free: 161.2 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.004885/1.423, allocations: 1.486 MB / 0.8879 GB, free: 159.7 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 20 (mCV1.dp_int,flowResistance1.rear.m_flow,mCV2.dp_int,flowResistance2.rear.m_flow,mCV3.dp_int,flowResistance3.rear.m_flow,mCV4.dp_int,flowResistance4.rear.m_flow,mCV.dp_int,flowResistance.rear.m_flow,mCV5.dp_int,flowResistance5.rear.m_flow,mCV9.rear.m_flow,mCV9.dp_int,mCV8.rear.m_flow,mCV8.dp_int,mCV7.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 (415): * Single equations (assignments): 393 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.012/1.435, allocations: 11.45 MB / 0.8991 GB, free: 148.1 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.008865/1.444, allocations: 5.132 MB / 0.9041 GB, free: 142.8 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.363e-05/1.444, allocations: 0 / 0.9041 GB, free: 142.8 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.005668/1.449, allocations: 3.514 MB / 0.9075 GB, free: 139.1 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005855/1.455, allocations: 1.067 MB / 0.9086 GB, free: 138.1 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0416/1.497, allocations: 33.69 MB / 0.9415 GB, free: 102.4 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001281/1.498, allocations: 2.037 MB / 0.9435 GB, free: 100.4 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.003645/1.502, allocations: 0.8 MB / 0.9442 GB, free: 99.57 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001977/1.504, allocations: 1.604 MB / 0.9458 GB, free: 97.97 MB / 0.6075 GB Notification: Performance of SimCode: time 1.112e-06/1.504, allocations: 0 / 0.9458 GB, free: 97.97 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1375/1.641, allocations: 97.65 MB / 1.041 GB, free: 0.8555 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001297/1.642, allocations: 210.4 kB / 1.041 GB, free: 0.6133 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.944/7.586, allocations: 0 / 1.041 GB, free: 0.6133 MB / 0.6075 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