Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.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.FlowControl.Tests.MCV,fileNamePrefix="ThermofluidStream_ThermofluidStream_FlowControl_Tests_MCV",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.MCV,fileNamePrefix="ThermofluidStream_ThermofluidStream_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.001151/0.001151, allocations: 99.08 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.001333/0.001333, allocations: 177.3 kB / 15.94 MB, free: 228 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.489/1.489, allocations: 223.2 MB / 239.9 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.8758/0.8758, allocations: 89.64 MB / 380.6 MB, free: 11.43 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_NumberOfIntervals = 1500 Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Warning: Ignoring unknown experiment annotation option: __Dymola_NumberOfIntervals = 1500 Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0004109/0.000411, allocations: 13.81 kB / 460 MB, free: 24.33 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1631/0.1635, allocations: 68.84 MB / 0.5165 GB, free: 11.65 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.MCV): time 0.6044/0.7679, allocations: 168.1 MB / 0.6806 GB, free: 1.953 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.02711/0.7951, allocations: 20.25 MB / 0.7004 GB, free: 13.66 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003215/0.7983, allocations: 35.75 kB / 0.7004 GB, free: 13.62 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.004119/0.8025, allocations: 0.9485 MB / 0.7013 GB, free: 12.67 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.01011/0.8126, allocations: 2.352 MB / 0.7036 GB, free: 10.31 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.006193/0.8189, allocations: 1.372 MB / 0.705 GB, free: 8.934 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.006043/0.8249, allocations: 2.168 MB / 0.7071 GB, free: 6.762 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001017/0.826, allocations: 453.6 kB / 0.7075 GB, free: 6.297 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003015/0.829, allocations: 1.129 MB / 0.7086 GB, free: 5.164 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002519/0.8315, allocations: 1.218 MB / 0.7098 GB, free: 3.941 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0004051/0.832, allocations: 88 kB / 0.7099 GB, free: 3.855 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008599/0.8406, allocations: 2.996 MB / 0.7128 GB, free: 0.8555 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0006666/0.8413, allocations: 342.4 kB / 0.7131 GB, free: 0.5195 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.001137/0.8424, allocations: 412.6 kB / 0.7135 GB, free: 112 kB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.006703/0.8491, allocations: 2.252 MB / 0.7157 GB, free: 13.85 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/0.8492, allocations: 0 / 0.7157 GB, free: 13.85 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.544e-06/0.8492, allocations: 0 / 0.7157 GB, free: 13.85 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 7.794e-05/0.8493, allocations: 4 kB / 0.7157 GB, free: 13.85 MB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 395 * Number of variables: 395 Notification: Performance of Generate backend data structure: time 0.007483/0.8568, allocations: 2.717 MB / 0.7184 GB, free: 11.02 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.973e-05/0.8569, allocations: 8.031 kB / 0.7184 GB, free: 11.01 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004137/0.8573, allocations: 223.9 kB / 0.7186 GB, free: 10.78 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004439/0.8577, allocations: 246 kB / 0.7188 GB, free: 10.54 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002129/0.8599, allocations: 1.069 MB / 0.7199 GB, free: 9.418 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.427e-05/0.86, allocations: 119.1 kB / 0.72 GB, free: 9.301 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002422/0.8602, allocations: 175.9 kB / 0.7202 GB, free: 9.129 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003328/0.8636, allocations: 1.898 MB / 0.722 GB, free: 7.137 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.165e-05/0.8636, allocations: 0 / 0.722 GB, free: 7.137 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001415/0.8638, allocations: 68 kB / 0.7221 GB, free: 7.07 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.113e-05/0.8638, allocations: 40 kB / 0.7221 GB, free: 7.031 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003745/0.8675, allocations: 1.844 MB / 0.7239 GB, free: 5.184 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01115/0.8787, allocations: 7.838 MB / 0.7316 GB, free: 12.82 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00581/0.8846, allocations: 2.177 MB / 0.7337 GB, free: 10.58 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01037/0.895, allocations: 6.921 MB / 0.7405 GB, free: 2.777 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002433/0.8975, allocations: 1.122 MB / 0.7416 GB, free: 1.621 MB / 0.545 GB Notification: Performance of pre-optimization done (n=191): time 5.1e-06/0.8975, allocations: 4 kB / 0.7416 GB, free: 1.617 MB / 0.545 GB Notification: Performance of matching and sorting (n=191): time 0.008019/0.9056, allocations: 3.442 MB / 0.7449 GB, free: 14.02 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001414/0.9058, allocations: 253.5 kB / 0.7452 GB, free: 13.72 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002083/0.9078, allocations: 1.343 MB / 0.7465 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0002034/0.9081, allocations: 69.7 kB / 0.7465 GB, free: 12.3 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006578/0.9087, allocations: 0.7543 MB / 0.7473 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005797/0.9093, allocations: 0.6315 MB / 0.7479 GB, free: 10.89 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.213e-05/0.9094, allocations: 36 kB / 0.7479 GB, free: 10.86 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001696/0.9096, allocations: 377.8 kB / 0.7483 GB, free: 10.48 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001645/0.9112, allocations: 0.6988 MB / 0.749 GB, free: 9.785 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001831/0.9131, allocations: 0.9391 MB / 0.7499 GB, free: 8.77 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001823/0.9149, allocations: 0.9298 MB / 0.7508 GB, free: 7.805 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.105e-05/0.9149, allocations: 4 kB / 0.7508 GB, free: 7.801 MB / 0.5606 GB Notification: Performance of matching and sorting (n=238) (initialization): time 0.005795/0.9207, allocations: 2.464 MB / 0.7532 GB, free: 5.27 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001466/0.9209, allocations: 188.6 kB / 0.7534 GB, free: 5.051 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.289e-05/0.921, allocations: 8 kB / 0.7534 GB, free: 5.043 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001039/0.922, allocations: 265.8 kB / 0.7536 GB, free: 4.762 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001702/0.9237, allocations: 443.3 kB / 0.7541 GB, free: 4.328 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007871/0.9316, allocations: 9.909 MB / 0.7637 GB, free: 9.492 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002968/0.9346, allocations: 266.1 kB / 0.764 GB, free: 9.23 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003118/0.935, allocations: 79.92 kB / 0.7641 GB, free: 9.152 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * 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 (212): * Single equations (assignments): 199 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(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.0009611/0.9359, allocations: 347.7 kB / 0.7644 GB, free: 8.805 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004381/0.9364, allocations: 193.6 kB / 0.7646 GB, free: 8.613 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006206/0.9426, allocations: 2.706 MB / 0.7672 GB, free: 5.848 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.138e-05/0.9426, allocations: 24 kB / 0.7673 GB, free: 5.824 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.373e-05/0.9427, allocations: 4 kB / 0.7673 GB, free: 5.82 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.06e-05/0.9427, allocations: 11.97 kB / 0.7673 GB, free: 5.809 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008932/0.9516, allocations: 4.846 MB / 0.772 GB, free: 0.8477 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-05/0.9517, allocations: 4 kB / 0.772 GB, free: 0.8438 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00161/0.9533, allocations: 419.7 kB / 0.7724 GB, free: 444 kB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008958/0.9542, allocations: 281.6 kB / 0.7727 GB, free: 140 kB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001456/0.9544, allocations: 67.95 kB / 0.7727 GB, free: 72 kB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007325/0.9617, allocations: 9.905 MB / 0.7824 GB, free: 5.234 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.934e-06/0.9618, allocations: 11.89 kB / 0.7824 GB, free: 5.223 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007452/0.9692, allocations: 4.018 MB / 0.7864 GB, free: 1.043 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001144/0.9704, allocations: 0.5016 MB / 0.7868 GB, free: 0.5195 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003066/0.9707, allocations: 51.98 kB / 0.7869 GB, free: 480 kB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001541/0.9723, allocations: 155.7 kB / 0.787 GB, free: 324 kB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004693/0.9727, allocations: 215.6 kB / 0.7872 GB, free: 108 kB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001384/0.9729, allocations: 75.95 kB / 0.7873 GB, free: 32 kB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.001262/0.9742, allocations: 0.9367 MB / 0.7882 GB, free: 15.1 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9742, allocations: 3.938 kB / 0.7882 GB, free: 15.1 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.003311/0.9775, allocations: 0.8856 MB / 0.7891 GB, free: 14.21 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 14 (mCV1.dp_int,flowResistance1.inlet.m_flow,mCV2.dp_int,flowResistance2.inlet.m_flow,mCV3.dp_int,flowResistance3.inlet.m_flow,mCV4.dp_int,flowResistance4.inlet.m_flow,mCV.dp_int,flowResistance.inlet.m_flow,mCV5.dp_int,flowResistance5.inlet.m_flow,mCV6.inlet.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 (195): * Single equations (assignments): 176 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(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} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01042/0.9879, allocations: 6.482 MB / 0.7954 GB, free: 7.582 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.00636/0.9944, allocations: 3.003 MB / 0.7984 GB, free: 4.414 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.329e-05/0.9944, allocations: 3.938 kB / 0.7984 GB, free: 4.41 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.004089/0.9985, allocations: 2.029 MB / 0.8003 GB, free: 2.289 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003801/1.002, allocations: 0.6082 MB / 0.8009 GB, free: 1.684 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.345/1.347, allocations: 16.93 MB / 0.8175 GB, free: 212.8 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00119/1.349, allocations: 1.44 MB / 0.8189 GB, free: 212.1 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.001958/1.351, allocations: 364.7 kB / 0.8192 GB, free: 212 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001135/1.352, allocations: 0.8312 MB / 0.82 GB, free: 211.6 MB / 0.6075 GB Notification: Performance of SimCode: time 1.142e-06/1.352, allocations: 0 / 0.82 GB, free: 211.6 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1004/1.452, allocations: 58.27 MB / 0.877 GB, free: 172.4 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001632/1.452, allocations: 186.4 kB / 0.8771 GB, free: 172.1 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.992/5.445, allocations: 0 / 0.8771 GB, free: 172.1 MB / 0.6075 GB (rm -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.MCV.pipe ; mkfifo ThermofluidStream_ThermofluidStream.FlowControl.Tests.MCV.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.FlowControl.Tests.MCV.pipe >> ../files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.MCV.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.FlowControl.Tests.MCV_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_FlowControl_Tests_MCV_fmu --startTime=0 --stopTime=10 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_FlowControl_Tests_MCV.fmu > ThermofluidStream_ThermofluidStream.FlowControl.Tests.MCV.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ThermofluidStream_ThermofluidStream.FlowControl.Tests.MCV_res.mat does not exist to compare? outputFormat=mat