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.001428/0.001428, allocations: 101.3 kB / 19.73 MB, free: 2.133 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.001806/0.001806, allocations: 218.8 kB / 23.03 MB, free: 4.949 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.449/1.449, allocations: 230.6 MB / 256.8 MB, free: 7.793 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.835/0.835, allocations: 100.3 MB / 413.6 MB, free: 3.398 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.002379/0.002379, allocations: 87.45 kB / 0.564 GB, free: 35.97 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1275/0.1299, allocations: 74.47 MB / 0.6367 GB, free: 7.383 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve): time 0.5026/0.6325, allocations: 125.3 MB / 0.759 GB, free: 3.703 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.004473/0.6369, allocations: 3.048 MB / 0.762 GB, free: 3.684 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000712/0.6377, allocations: 25.28 kB / 0.762 GB, free: 3.684 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0008986/0.6386, allocations: 195 kB / 0.7622 GB, free: 3.68 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.00174/0.6403, allocations: 497.5 kB / 0.7627 GB, free: 3.664 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001408/0.6417, allocations: 400.1 kB / 0.7631 GB, free: 3.656 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001301/0.643, allocations: 0.7268 MB / 0.7638 GB, free: 3.652 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002917/0.6433, allocations: 78.41 kB / 0.7639 GB, free: 3.637 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001165/0.6445, allocations: 378.4 kB / 0.7642 GB, free: 3.637 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008471/0.6453, allocations: 362.2 kB / 0.7646 GB, free: 3.637 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001622/0.6455, allocations: 33.72 kB / 0.7646 GB, free: 3.637 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001659/0.6471, allocations: 0.5058 MB / 0.7651 GB, free: 3.625 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002112/0.6473, allocations: 89.59 kB / 0.7652 GB, free: 3.625 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0005076/0.6478, allocations: 193.7 kB / 0.7654 GB, free: 3.625 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001887/0.6497, allocations: 0.7287 MB / 0.7661 GB, free: 3.57 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.6497, allocations: 0 / 0.7661 GB, free: 3.57 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.245e-06/0.6497, allocations: 0.6562 kB / 0.7661 GB, free: 3.57 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 2.483e-05/0.6498, allocations: 2.156 kB / 0.7661 GB, free: 3.57 MB / 0.5762 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.002105/0.6519, allocations: 0.7823 MB / 0.7669 GB, free: 19.07 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.588e-05/0.6519, allocations: 9.594 kB / 0.7669 GB, free: 19.07 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.713e-05/0.6519, allocations: 9.156 kB / 0.7669 GB, free: 19.07 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.8e-05/0.652, allocations: 70.5 kB / 0.7669 GB, free: 19.03 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002011/0.6522, allocations: 62.44 kB / 0.767 GB, free: 19 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008234/0.6531, allocations: 359.5 kB / 0.7673 GB, free: 18.81 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.725e-05/0.6531, allocations: 30.25 kB / 0.7674 GB, free: 18.81 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.338e-05/0.6532, allocations: 34.89 kB / 0.7674 GB, free: 18.81 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008812/0.6541, allocations: 430.2 kB / 0.7678 GB, free: 18.72 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.609e-05/0.6541, allocations: 2.312 kB / 0.7678 GB, free: 18.72 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.543e-05/0.6541, allocations: 14.38 kB / 0.7678 GB, free: 18.72 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.145e-05/0.6541, allocations: 8.438 kB / 0.7678 GB, free: 18.72 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008022/0.6549, allocations: 382.8 kB / 0.7682 GB, free: 18.72 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002376/0.6573, allocations: 1.291 MB / 0.7695 GB, free: 18.09 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007994/0.6581, allocations: 313.5 kB / 0.7698 GB, free: 18.06 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003182/0.6584, allocations: 155.1 kB / 0.7699 GB, free: 18.05 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001818/0.6602, allocations: 0.6969 MB / 0.7706 GB, free: 17.8 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005457/0.6608, allocations: 209.7 kB / 0.7708 GB, free: 17.75 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=37): time 3.106e-06/0.6608, allocations: 0.5938 kB / 0.7708 GB, free: 17.75 MB / 0.5919 GB Notification: Performance of matching and sorting (n=37): time 0.001763/0.6625, allocations: 0.5371 MB / 0.7713 GB, free: 17.67 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.979e-05/0.6626, allocations: 60.81 kB / 0.7714 GB, free: 17.6 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005718/0.6632, allocations: 358.4 kB / 0.7717 GB, free: 17.49 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 6.542e-05/0.6632, allocations: 38.47 kB / 0.7718 GB, free: 17.46 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.000191/0.6634, allocations: 225.9 kB / 0.772 GB, free: 17.34 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001157/0.6636, allocations: 129.8 kB / 0.7721 GB, free: 17.25 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001557/0.6637, allocations: 74.88 kB / 0.7722 GB, free: 17.23 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001955/0.6639, allocations: 356 kB / 0.7725 GB, free: 16.92 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003801/0.6643, allocations: 148.2 kB / 0.7726 GB, free: 16.89 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003652/0.6646, allocations: 210.7 kB / 0.7728 GB, free: 16.8 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006241/0.6653, allocations: 329 kB / 0.7732 GB, free: 16.72 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.528e-06/0.6653, allocations: 0 / 0.7732 GB, free: 16.72 MB / 0.5919 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001159/0.6664, allocations: 0.493 MB / 0.7736 GB, free: 16.59 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 4.966e-05/0.6665, allocations: 34.58 kB / 0.7737 GB, free: 16.56 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.155e-05/0.6665, allocations: 5.906 kB / 0.7737 GB, free: 16.55 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002661/0.6668, allocations: 47.05 kB / 0.7737 GB, free: 16.55 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003293/0.6671, allocations: 75.47 kB / 0.7738 GB, free: 16.55 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001431/0.6685, allocations: 1.422 MB / 0.7752 GB, free: 15.33 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003871/0.6689, allocations: 48.7 kB / 0.7752 GB, free: 15.3 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.578e-05/0.669, allocations: 17.44 kB / 0.7752 GB, free: 15.3 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.0002998/0.6693, allocations: 162.4 kB / 0.7754 GB, free: 15.19 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000182/0.6695, allocations: 50 kB / 0.7754 GB, free: 15.16 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001262/0.6707, allocations: 0.5163 MB / 0.776 GB, free: 15.07 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.044e-05/0.6707, allocations: 4.062 kB / 0.776 GB, free: 15.07 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.6707, allocations: 1.656 kB / 0.776 GB, free: 15.07 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.945e-06/0.6707, allocations: 3.172 kB / 0.776 GB, free: 15.07 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001907/0.6727, allocations: 0.8909 MB / 0.7768 GB, free: 14.76 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.593e-06/0.6727, allocations: 5.156 kB / 0.7768 GB, free: 14.76 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002895/0.6729, allocations: 61.8 kB / 0.7769 GB, free: 14.76 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001897/0.6731, allocations: 43.97 kB / 0.7769 GB, free: 14.75 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.487e-05/0.6732, allocations: 11.14 kB / 0.7769 GB, free: 14.75 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001362/0.6745, allocations: 1.427 MB / 0.7783 GB, free: 13.52 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.6745, allocations: 1.344 kB / 0.7783 GB, free: 13.52 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001309/0.6759, allocations: 0.6568 MB / 0.779 GB, free: 13.32 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001387/0.676, allocations: 41.53 kB / 0.779 GB, free: 13.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.94e-05/0.6761, allocations: 13.11 kB / 0.779 GB, free: 13.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002638/0.6763, allocations: 22.39 kB / 0.7791 GB, free: 13.29 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001226/0.6765, allocations: 38.52 kB / 0.7791 GB, free: 13.29 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.132e-05/0.6765, allocations: 14.61 kB / 0.7791 GB, free: 13.29 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0003591/0.6769, allocations: 266.8 kB / 0.7794 GB, free: 13.21 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6769, allocations: 0.8438 kB / 0.7794 GB, free: 13.21 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0007882/0.6777, allocations: 165.3 kB / 0.7795 GB, free: 13.19 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.002091/0.6797, allocations: 1.334 MB / 0.7808 GB, free: 12.45 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001169/0.6809, allocations: 0.5068 MB / 0.7813 GB, free: 12.23 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.878e-06/0.6809, allocations: 0 / 0.7813 GB, free: 12.23 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0005327/0.6815, allocations: 291.2 kB / 0.7816 GB, free: 12.11 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000904/0.6824, allocations: 137.7 kB / 0.7817 GB, free: 12.1 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006249/0.6886, allocations: 3.972 MB / 0.7856 GB, free: 10.29 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002354/0.6888, allocations: 214 kB / 0.7858 GB, free: 10.21 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0003771/0.6892, allocations: 87.75 kB / 0.7859 GB, free: 10.2 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002579/0.6895, allocations: 157.7 kB / 0.786 GB, free: 10.19 MB / 0.5919 GB Notification: Performance of SimCode: time 1.052e-06/0.6895, allocations: 0 / 0.786 GB, free: 10.19 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04691/0.7364, allocations: 13.6 MB / 0.7993 GB, free: 8.676 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.31/14.05, allocations: 4.906 kB / 0.7993 GB, free: 8.676 MB / 0.5919 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.699882371001877] Failed to read output from testmodel.py, exit status != 0: 14.219257954042405 14.231440531 13.578726278 Calling exit ...