Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001557/0.001557, allocations: 98.08 kB / 19.73 MB, free: 2.23 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001832/0.001832, allocations: 216.8 kB / 23.04 MB, free: 5.074 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.427/1.427, allocations: 230.6 MB / 256.8 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo): time 0.7854/0.7854, allocations: 100.3 MB / 413.5 MB, free: 3.652 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_CheckValve",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_CheckValve",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ThermofluidStream requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ThermofluidStream requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002433/0.002433, allocations: 80.23 kB / 0.564 GB, free: 35.88 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1318/0.1342, allocations: 74.47 MB / 0.6367 GB, free: 7.668 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve): time 0.6033/0.7376, allocations: 146 MB / 0.7793 GB, free: 232 kB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.005697/0.7433, allocations: 3.361 MB / 0.7826 GB, free: 0 / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001041/0.7443, allocations: 25.8 kB / 0.7826 GB, free: 0 / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001151/0.7455, allocations: 221.6 kB / 0.7828 GB, free: 15.92 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.002543/0.748, allocations: 0.4951 MB / 0.7833 GB, free: 15.76 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.00191/0.7499, allocations: 412.8 kB / 0.7837 GB, free: 15.7 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0018/0.7517, allocations: 0.7238 MB / 0.7844 GB, free: 15.54 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003335/0.7521, allocations: 76.47 kB / 0.7845 GB, free: 15.52 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001164/0.7532, allocations: 376.1 kB / 0.7848 GB, free: 15.48 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007001/0.7539, allocations: 363.1 kB / 0.7852 GB, free: 15.46 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001157/0.754, allocations: 34.16 kB / 0.7852 GB, free: 15.46 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002297/0.7563, allocations: 0.5913 MB / 0.7858 GB, free: 15.42 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002673/0.7566, allocations: 95.42 kB / 0.7859 GB, free: 15.41 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0005558/0.7572, allocations: 241 kB / 0.7861 GB, free: 15.41 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.00267/0.7598, allocations: 0.738 MB / 0.7868 GB, free: 15.34 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 9.057e-06/0.7598, allocations: 1.375 kB / 0.7868 GB, free: 15.34 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.104e-06/0.7598, allocations: 3.938 kB / 0.7868 GB, free: 15.34 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 2.793e-05/0.7599, allocations: 0 / 0.7868 GB, free: 15.34 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 83 * Number of variables: 83 Notification: Performance of Generate backend data structure: time 0.002277/0.7621, allocations: 0.7742 MB / 0.7876 GB, free: 14.84 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 5.89e-05/0.7622, allocations: 12.97 kB / 0.7876 GB, free: 14.84 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.232e-05/0.7622, allocations: 13.66 kB / 0.7876 GB, free: 14.84 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.809e-05/0.7623, allocations: 70.28 kB / 0.7877 GB, free: 14.8 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001655/0.7625, allocations: 58.45 kB / 0.7877 GB, free: 14.77 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009506/0.7634, allocations: 358.1 kB / 0.7881 GB, free: 14.57 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.7e-05/0.7635, allocations: 25.34 kB / 0.7881 GB, free: 14.57 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.528e-05/0.7636, allocations: 37.69 kB / 0.7881 GB, free: 14.57 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008801/0.7644, allocations: 432.5 kB / 0.7886 GB, free: 14.47 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.752e-05/0.7645, allocations: 0 / 0.7886 GB, free: 14.47 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.9e-05/0.7645, allocations: 13.84 kB / 0.7886 GB, free: 14.47 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.384e-05/0.7645, allocations: 7.781 kB / 0.7886 GB, free: 14.47 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007759/0.7653, allocations: 380.9 kB / 0.7889 GB, free: 14.46 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0029/0.7682, allocations: 1.814 MB / 0.7907 GB, free: 13.25 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008745/0.7691, allocations: 320.2 kB / 0.791 GB, free: 13.22 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000337/0.7694, allocations: 155.5 kB / 0.7912 GB, free: 13.21 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002029/0.7714, allocations: 0.7568 MB / 0.7919 GB, free: 12.95 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005074/0.7719, allocations: 206.4 kB / 0.7921 GB, free: 12.89 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=37): time 3.136e-06/0.7719, allocations: 0 / 0.7921 GB, free: 12.89 MB / 0.5919 GB Notification: Performance of matching and sorting (n=37): time 0.001549/0.7735, allocations: 0.5238 MB / 0.7926 GB, free: 12.82 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.852e-05/0.7735, allocations: 64.23 kB / 0.7927 GB, free: 12.75 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004211/0.774, allocations: 358.9 kB / 0.793 GB, free: 12.64 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 5.58e-05/0.774, allocations: 34.67 kB / 0.7931 GB, free: 12.61 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001806/0.7742, allocations: 227.9 kB / 0.7933 GB, free: 12.48 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.000121/0.7743, allocations: 129.6 kB / 0.7934 GB, free: 12.4 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000122/0.7744, allocations: 74.02 kB / 0.7935 GB, free: 12.38 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001998/0.7746, allocations: 359.9 kB / 0.7938 GB, free: 12.06 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002926/0.7749, allocations: 120.4 kB / 0.7939 GB, free: 12.05 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003676/0.7753, allocations: 181.4 kB / 0.7941 GB, free: 12 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006347/0.7759, allocations: 331.3 kB / 0.7944 GB, free: 11.91 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.7759, allocations: 0.9688 kB / 0.7944 GB, free: 11.91 MB / 0.5919 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001004/0.7769, allocations: 470.4 kB / 0.7949 GB, free: 11.8 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 4.988e-05/0.777, allocations: 33.67 kB / 0.7949 GB, free: 11.77 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.206e-05/0.777, allocations: 6.469 kB / 0.7949 GB, free: 11.76 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002726/0.7773, allocations: 43.69 kB / 0.7949 GB, free: 11.75 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003052/0.7776, allocations: 77.59 kB / 0.795 GB, free: 11.75 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001552/0.7791, allocations: 1.429 MB / 0.7964 GB, free: 10.51 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004013/0.7795, allocations: 45.22 kB / 0.7965 GB, free: 10.49 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.015e-05/0.7796, allocations: 14.97 kB / 0.7965 GB, free: 10.49 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002954/0.7799, allocations: 163.8 kB / 0.7966 GB, free: 10.37 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001068/0.78, allocations: 44.38 kB / 0.7967 GB, free: 10.34 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001141/0.7811, allocations: 0.5192 MB / 0.7972 GB, free: 10.24 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.171e-06/0.7811, allocations: 2.75 kB / 0.7972 GB, free: 10.24 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.7811, allocations: 2.25 kB / 0.7972 GB, free: 10.24 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.535e-06/0.7811, allocations: 2.484 kB / 0.7972 GB, free: 10.24 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001785/0.7829, allocations: 0.9419 MB / 0.7981 GB, free: 9.918 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.7829, allocations: 1.375 kB / 0.7981 GB, free: 9.918 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002464/0.7832, allocations: 61.81 kB / 0.7982 GB, free: 9.914 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001705/0.7834, allocations: 46.61 kB / 0.7982 GB, free: 9.902 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.09e-05/0.7834, allocations: 13.81 kB / 0.7982 GB, free: 9.902 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001358/0.7847, allocations: 1.435 MB / 0.7996 GB, free: 8.66 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.7847, allocations: 3.281 kB / 0.7996 GB, free: 8.66 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001255/0.786, allocations: 0.6412 MB / 0.8003 GB, free: 8.461 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001535/0.7862, allocations: 50.61 kB / 0.8003 GB, free: 8.43 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.27e-05/0.7862, allocations: 5.719 kB / 0.8003 GB, free: 8.43 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002378/0.7865, allocations: 22.89 kB / 0.8003 GB, free: 8.426 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001139/0.7866, allocations: 36.23 kB / 0.8004 GB, free: 8.422 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.594e-05/0.7866, allocations: 18.17 kB / 0.8004 GB, free: 8.422 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0003198/0.7869, allocations: 268 kB / 0.8006 GB, free: 8.344 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.11e-07/0.7869, allocations: 2.906 kB / 0.8006 GB, free: 8.344 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0007257/0.7877, allocations: 171 kB / 0.8008 GB, free: 8.316 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (flowResistance.rear.m_flow) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002009/0.7897, allocations: 1.319 MB / 0.8021 GB, free: 7.555 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001159/0.7908, allocations: 493.6 kB / 0.8026 GB, free: 7.352 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 4.569e-06/0.7908, allocations: 0 / 0.8026 GB, free: 7.352 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0005191/0.7914, allocations: 288.1 kB / 0.8028 GB, free: 7.227 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009367/0.7923, allocations: 143.2 kB / 0.803 GB, free: 7.195 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006358/0.7986, allocations: 3.857 MB / 0.8067 GB, free: 5.445 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005357/0.7992, allocations: 0.8188 MB / 0.8075 GB, free: 4.742 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0003982/0.7996, allocations: 89.95 kB / 0.8076 GB, free: 4.715 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002637/0.7998, allocations: 161.7 kB / 0.8078 GB, free: 4.707 MB / 0.5919 GB Notification: Performance of SimCode: time 1.522e-06/0.7998, allocations: 0 / 0.8078 GB, free: 4.707 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05918/0.859, allocations: 13.12 MB / 0.8206 GB, free: 14.8 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.62/13.48, allocations: 10.72 kB / 0.8206 GB, free: 14.79 MB / 0.6075 GB " [Timeout remaining time 646] (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_CheckValve_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_CheckValve.fmu > ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe 2>&1) [Timeout 1260.0] [Calling os._exit(0), Time elapsed: 17.0197856570594] Failed to read output from testmodel.py, exit status != 0: 13.646927229012363 13.664094195 12.899923577000001 Calling exit ...