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.001081/0.001081, allocations: 91.12 kB / 15.06 MB, free: 1.078 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.001116/0.001116, allocations: 172.7 kB / 15.95 MB, free: 192 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.512/1.512, allocations: 223.3 MB / 240 MB, free: 5.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.8552/0.8552, allocations: 89.65 MB / 380.7 MB, free: 11.39 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.0004086/0.0004088, allocations: 15.23 kB / 460.1 MB, free: 24.29 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1636/0.164, allocations: 68.84 MB / 0.5166 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.MCV): time 0.6/0.7641, allocations: 181.5 MB / 0.6938 GB, free: 5.758 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.02772/0.7918, allocations: 22.53 MB / 0.7158 GB, free: 15.17 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003088/0.795, allocations: 35.75 kB / 0.7159 GB, free: 15.14 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.003479/0.7985, allocations: 0.9476 MB / 0.7168 GB, free: 14.18 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.008098/0.8066, allocations: 2.24 MB / 0.719 GB, free: 11.93 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.006105/0.8127, allocations: 1.332 MB / 0.7203 GB, free: 10.59 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.007802/0.8206, allocations: 3.509 MB / 0.7237 GB, free: 7.07 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001096/0.8217, allocations: 441.6 kB / 0.7241 GB, free: 6.617 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003284/0.825, allocations: 1.206 MB / 0.7253 GB, free: 5.406 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002436/0.8274, allocations: 1.408 MB / 0.7267 GB, free: 3.992 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0002816/0.8277, allocations: 88 kB / 0.7268 GB, free: 3.906 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008885/0.8366, allocations: 2.795 MB / 0.7295 GB, free: 1.102 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.001033/0.8377, allocations: 338.3 kB / 0.7298 GB, free: 0.7695 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.00194/0.8397, allocations: 424.5 kB / 0.7302 GB, free: 356 kB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.006602/0.8463, allocations: 2.268 MB / 0.7324 GB, free: 14.07 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 1.12e-05/0.8464, allocations: 0 / 0.7324 GB, free: 14.07 MB / 0.545 GB Notification: Performance of FrontEnd: time 3.888e-06/0.8464, allocations: 0 / 0.7324 GB, free: 14.07 MB / 0.545 GB Notification: Performance of Transformations before backend: time 0.000173/0.8466, allocations: 4 kB / 0.7324 GB, free: 14.07 MB / 0.545 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.009434/0.856, allocations: 2.725 MB / 0.7351 GB, free: 11.23 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 0.0001004/0.8561, allocations: 12.03 kB / 0.7351 GB, free: 11.22 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008893/0.857, allocations: 216 kB / 0.7353 GB, free: 11 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007162/0.8578, allocations: 245 kB / 0.7356 GB, free: 10.76 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002644/0.8604, allocations: 1.073 MB / 0.7366 GB, free: 9.633 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001369/0.8606, allocations: 119.1 kB / 0.7367 GB, free: 9.516 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003463/0.861, allocations: 175.9 kB / 0.7369 GB, free: 9.344 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003948/0.8649, allocations: 1.91 MB / 0.7388 GB, free: 7.34 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.471e-05/0.865, allocations: 3.938 kB / 0.7388 GB, free: 7.336 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001378/0.8652, allocations: 64 kB / 0.7388 GB, free: 7.273 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.486e-05/0.8652, allocations: 40 kB / 0.7389 GB, free: 7.234 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004003/0.8692, allocations: 1.852 MB / 0.7407 GB, free: 5.379 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01362/0.8829, allocations: 7.698 MB / 0.7482 GB, free: 13.16 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006152/0.8891, allocations: 2.182 MB / 0.7503 GB, free: 10.92 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002241/0.8914, allocations: 0.967 MB / 0.7513 GB, free: 9.934 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009122/0.9006, allocations: 6.818 MB / 0.7579 GB, free: 2.23 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00244/0.903, allocations: 1.131 MB / 0.759 GB, free: 1.066 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=191): time 9.718e-06/0.9031, allocations: 0 / 0.759 GB, free: 1.066 MB / 0.5606 GB Notification: Performance of matching and sorting (n=191): time 0.007905/0.911, allocations: 3.461 MB / 0.7624 GB, free: 13.45 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001535/0.9112, allocations: 237.6 kB / 0.7626 GB, free: 13.17 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002506/0.9137, allocations: 1.343 MB / 0.7639 GB, free: 11.82 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0001465/0.9139, allocations: 69.69 kB / 0.764 GB, free: 11.75 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007303/0.9146, allocations: 0.7543 MB / 0.7647 GB, free: 10.98 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006083/0.9152, allocations: 0.6315 MB / 0.7654 GB, free: 10.34 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001215/0.9154, allocations: 36 kB / 0.7654 GB, free: 10.3 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001887/0.9156, allocations: 373.9 kB / 0.7657 GB, free: 9.934 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001635/0.9172, allocations: 0.6949 MB / 0.7664 GB, free: 9.238 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001764/0.919, allocations: 0.947 MB / 0.7674 GB, free: 8.215 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001914/0.9209, allocations: 0.9415 MB / 0.7683 GB, free: 7.238 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-05/0.9209, allocations: 0 / 0.7683 GB, free: 7.238 MB / 0.5762 GB Notification: Performance of matching and sorting (n=238) (initialization): time 0.005365/0.9263, allocations: 2.472 MB / 0.7707 GB, free: 4.699 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001289/0.9265, allocations: 178.2 kB / 0.7709 GB, free: 4.488 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.765e-05/0.9265, allocations: 4 kB / 0.7709 GB, free: 4.484 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009594/0.9275, allocations: 282 kB / 0.7711 GB, free: 4.188 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001643/0.9291, allocations: 443.4 kB / 0.7715 GB, free: 3.754 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008453/0.9376, allocations: 9.818 MB / 0.7811 GB, free: 9.008 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00217/0.9398, allocations: 262.1 kB / 0.7814 GB, free: 8.75 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004321/0.9402, allocations: 83.91 kB / 0.7815 GB, free: 8.668 MB / 0.5919 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.001127/0.9414, allocations: 347.8 kB / 0.7818 GB, free: 8.32 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006035/0.942, allocations: 205.5 kB / 0.782 GB, free: 8.117 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006208/0.9482, allocations: 2.699 MB / 0.7846 GB, free: 5.359 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.338e-05/0.9483, allocations: 24 kB / 0.7847 GB, free: 5.336 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.11e-05/0.9483, allocations: 4 kB / 0.7847 GB, free: 5.332 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-05/0.9483, allocations: 11.97 kB / 0.7847 GB, free: 5.32 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009274/0.9576, allocations: 4.763 MB / 0.7893 GB, free: 452 kB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.817e-05/0.9576, allocations: 4 kB / 0.7893 GB, free: 448 kB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00165/0.9593, allocations: 427.7 kB / 0.7897 GB, free: 20 kB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009367/0.9603, allocations: 281.6 kB / 0.79 GB, free: 15.72 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001857/0.9605, allocations: 67.95 kB / 0.7901 GB, free: 15.66 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007949/0.9684, allocations: 9.83 MB / 0.7997 GB, free: 4.895 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.093e-06/0.9685, allocations: 4 kB / 0.7997 GB, free: 4.891 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008341/0.9768, allocations: 3.764 MB / 0.8033 GB, free: 1.059 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001383/0.9782, allocations: 469.8 kB / 0.8038 GB, free: 0.5781 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005635/0.9788, allocations: 59.92 kB / 0.8039 GB, free: 0.5195 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001822/0.9806, allocations: 155.7 kB / 0.804 GB, free: 376 kB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005625/0.9812, allocations: 215.6 kB / 0.8042 GB, free: 160 kB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001989/0.9814, allocations: 75.95 kB / 0.8043 GB, free: 84 kB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.366/1.347, allocations: 0.9318 MB / 0.8052 GB, free: 221.8 MB / 0.6075 GB Notification: Performance of sort global known variables: time 7.12e-07/1.348, allocations: 0.6875 kB / 0.8052 GB, free: 221.8 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.005286/1.353, allocations: 0.882 MB / 0.806 GB, free: 221.8 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.01113/1.364, allocations: 5.191 MB / 0.8111 GB, free: 220.4 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.005587/1.37, allocations: 3 MB / 0.814 GB, free: 219.2 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.188e-05/1.37, allocations: 6 kB / 0.8141 GB, free: 219.2 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.004238/1.374, allocations: 2.034 MB / 0.816 GB, free: 218.3 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004048/1.378, allocations: 0.644 MB / 0.8167 GB, free: 218.1 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03369/1.412, allocations: 13.39 MB / 0.8297 GB, free: 210.5 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001542/1.413, allocations: 1.407 MB / 0.8311 GB, free: 209.7 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.002032/1.415, allocations: 356.7 kB / 0.8315 GB, free: 209.6 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001171/1.417, allocations: 0.8362 MB / 0.8323 GB, free: 208.9 MB / 0.6075 GB Notification: Performance of SimCode: time 1.173e-06/1.417, allocations: 0 / 0.8323 GB, free: 208.9 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09715/1.514, allocations: 58.47 MB / 0.8894 GB, free: 161.2 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002067/1.514, allocations: 203.3 kB / 0.8896 GB, free: 161 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.112/5.626, allocations: 3.938 kB / 0.8896 GB, free: 161 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