Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.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.001509/0.001509, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001976/0.001976, allocations: 213.1 kB / 22.25 MB, free: 4.855 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.654/1.654, allocations: 230.6 MB / 256 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo): time 0.9364/0.9364, allocations: 94.64 MB / 407.1 MB, free: 8.914 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/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.FlowControl.Tests.CheckValve,fileNamePrefix="ThermofluidStream_ThermofluidStream_FlowControl_Tests_CheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.CheckValve,fileNamePrefix="ThermofluidStream_ThermofluidStream_FlowControl_Tests_CheckValve",fmuType="me",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.002807/0.002807, allocations: 86.75 kB / 0.5549 GB, free: 38.42 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.224/0.2268, allocations: 73.05 MB / 0.6263 GB, free: 224 kB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.CheckValve): time 0.2184/0.4452, allocations: 124 MB / 0.7474 GB, free: 3.715 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.006181/0.4514, allocations: 3.292 MB / 0.7506 GB, free: 424 kB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006156/0.452, allocations: 23.81 kB / 0.7506 GB, free: 400 kB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0009612/0.4529, allocations: 155 kB / 0.7508 GB, free: 244 kB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.6242/1.077, allocations: 384.9 kB / 0.7511 GB, free: 3.543 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001546/1.079, allocations: 289.2 kB / 0.7514 GB, free: 3.543 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001146/1.08, allocations: 0.5256 MB / 0.7519 GB, free: 3.543 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002826/1.08, allocations: 60.3 kB / 0.752 GB, free: 3.527 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007606/1.081, allocations: 267.2 kB / 0.7522 GB, free: 3.527 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004954/1.081, allocations: 222 kB / 0.7524 GB, free: 3.527 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 6.535e-05/1.081, allocations: 24 kB / 0.7525 GB, free: 3.527 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001383/1.083, allocations: 426.8 kB / 0.7529 GB, free: 3.527 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001456/1.083, allocations: 68.2 kB / 0.7529 GB, free: 3.527 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0002659/1.083, allocations: 142.6 kB / 0.7531 GB, free: 3.527 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.00126/1.085, allocations: 0.5503 MB / 0.7536 GB, free: 3.488 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 7.313e-06/1.085, allocations: 1.188 kB / 0.7536 GB, free: 3.488 MB / 0.5762 GB Notification: Performance of FrontEnd: time 3.136e-06/1.085, allocations: 0 / 0.7536 GB, free: 3.488 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.886e-05/1.085, allocations: 0 / 0.7536 GB, free: 3.488 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: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.001834/1.086, allocations: 0.6794 MB / 0.7543 GB, free: 19.03 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 6.352e-05/1.086, allocations: 11.89 kB / 0.7543 GB, free: 19.03 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.354e-05/1.087, allocations: 58.73 kB / 0.7543 GB, free: 18.99 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001234/1.087, allocations: 46.94 kB / 0.7544 GB, free: 18.96 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007898/1.087, allocations: 322.1 kB / 0.7547 GB, free: 18.79 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.937e-05/1.087, allocations: 16.56 kB / 0.7547 GB, free: 18.79 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.212e-05/1.088, allocations: 29.2 kB / 0.7547 GB, free: 18.79 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005958/1.088, allocations: 263.3 kB / 0.755 GB, free: 18.73 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.564e-05/1.088, allocations: 0.9375 kB / 0.755 GB, free: 18.73 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.075e-05/1.088, allocations: 11.28 kB / 0.755 GB, free: 18.73 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.389e-05/1.088, allocations: 10.31 kB / 0.755 GB, free: 18.73 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005671/1.089, allocations: 224.2 kB / 0.7552 GB, free: 18.73 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001566/1.09, allocations: 0.7553 MB / 0.756 GB, free: 18.38 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006165/1.091, allocations: 209.8 kB / 0.7562 GB, free: 18.36 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002773/1.091, allocations: 104.8 kB / 0.7563 GB, free: 18.35 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008551/1.092, allocations: 474.7 kB / 0.7567 GB, free: 18.09 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004078/1.092, allocations: 160.2 kB / 0.7569 GB, free: 18.04 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=23): time 1.663e-06/1.092, allocations: 0.9688 kB / 0.7569 GB, free: 18.04 MB / 0.5919 GB Notification: Performance of matching and sorting (n=23): time 0.001429/1.094, allocations: 381.3 kB / 0.7572 GB, free: 17.98 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.666e-05/1.094, allocations: 62.36 kB / 0.7573 GB, free: 17.91 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000623/1.095, allocations: 344.6 kB / 0.7576 GB, free: 17.81 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 4.459e-05/1.095, allocations: 30.31 kB / 0.7577 GB, free: 17.78 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002526/1.095, allocations: 202.6 kB / 0.7578 GB, free: 17.67 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 8.706e-05/1.095, allocations: 74.17 kB / 0.7579 GB, free: 17.62 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001319/1.095, allocations: 50.89 kB / 0.758 GB, free: 17.61 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0002525/1.095, allocations: 346.9 kB / 0.7583 GB, free: 17.29 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002813/1.096, allocations: 109.1 kB / 0.7584 GB, free: 17.26 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003025/1.096, allocations: 138.2 kB / 0.7585 GB, free: 17.21 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004664/1.096, allocations: 220.7 kB / 0.7587 GB, free: 17.15 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.564e-06/1.096, allocations: 0 / 0.7587 GB, free: 17.15 MB / 0.5919 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007643/1.097, allocations: 386.9 kB / 0.7591 GB, free: 17.02 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 4.724e-05/1.097, allocations: 34.09 kB / 0.7591 GB, free: 16.98 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.455e-06/1.097, allocations: 1.859 kB / 0.7591 GB, free: 16.98 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003081/1.098, allocations: 44.03 kB / 0.7592 GB, free: 16.98 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002263/1.098, allocations: 45.25 kB / 0.7592 GB, free: 16.98 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001593/1.099, allocations: 1.42 MB / 0.7606 GB, free: 15.75 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002367/1.1, allocations: 30.58 kB / 0.7606 GB, free: 15.74 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.587e-05/1.1, allocations: 11.2 kB / 0.7607 GB, free: 15.74 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (25): * Single equations (assignments): 23 * 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.0002151/1.1, allocations: 149 kB / 0.7608 GB, free: 15.63 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.782e-05/1.1, allocations: 36.33 kB / 0.7608 GB, free: 15.61 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008429/1.101, allocations: 335.8 kB / 0.7612 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/1.101, allocations: 3.219 kB / 0.7612 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/1.101, allocations: 3.25 kB / 0.7612 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/1.101, allocations: 3.875 kB / 0.7612 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00122/1.102, allocations: 0.6878 MB / 0.7618 GB, free: 15.26 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.49e-06/1.102, allocations: 3.438 kB / 0.7618 GB, free: 15.26 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001592/1.102, allocations: 39.83 kB / 0.7619 GB, free: 15.26 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001506/1.102, allocations: 45.73 kB / 0.7619 GB, free: 15.25 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.58e-05/1.102, allocations: 9.172 kB / 0.7619 GB, free: 15.25 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001222/1.104, allocations: 1.418 MB / 0.7633 GB, free: 14.02 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/1.104, allocations: 2.625 kB / 0.7633 GB, free: 14.02 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000924/1.105, allocations: 0.5087 MB / 0.7638 GB, free: 13.84 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 7.732e-05/1.105, allocations: 49.67 kB / 0.7639 GB, free: 13.81 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.53e-05/1.105, allocations: 8.469 kB / 0.7639 GB, free: 13.81 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001972/1.105, allocations: 15.41 kB / 0.7639 GB, free: 13.81 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001042/1.105, allocations: 27.05 kB / 0.7639 GB, free: 13.81 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.303e-05/1.105, allocations: 11.67 kB / 0.7639 GB, free: 13.81 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0003207/1.105, allocations: 243.7 kB / 0.7642 GB, free: 13.73 MB / 0.5919 GB Notification: Performance of sort global known variables: time 6e-08/1.105, allocations: 0 / 0.7642 GB, free: 13.73 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0006018/1.106, allocations: 123.6 kB / 0.7643 GB, free: 13.71 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (flowResistance.inlet.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 (22): * Single equations (assignments): 19 * 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.001749/1.108, allocations: 1.15 MB / 0.7654 GB, free: 13 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0009778/1.109, allocations: 415.2 kB / 0.7658 GB, free: 12.79 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 4.99e-06/1.109, allocations: 1.156 kB / 0.7658 GB, free: 12.79 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0004766/1.109, allocations: 231.5 kB / 0.766 GB, free: 12.67 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007369/1.11, allocations: 109.2 kB / 0.7661 GB, free: 12.67 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006665/1.116, allocations: 3.364 MB / 0.7694 GB, free: 11.01 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000306/1.117, allocations: 185.4 kB / 0.7696 GB, free: 10.93 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.000291/1.117, allocations: 57.77 kB / 0.7696 GB, free: 10.91 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002016/1.117, allocations: 126.7 kB / 0.7698 GB, free: 10.91 MB / 0.5919 GB Notification: Performance of SimCode: time 8.42e-07/1.117, allocations: 0.9062 kB / 0.7698 GB, free: 10.91 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05155/1.169, allocations: 11.42 MB / 0.7809 GB, free: 9.391 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.65/14.81, allocations: 3.984 kB / 0.7809 GB, free: 9.387 MB / 0.5919 GB " [Timeout remaining time 645] (rm -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_FlowControl_Tests_CheckValve_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_FlowControl_Tests_CheckValve.fmu > ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.CheckValve_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable pulse.T_start in file ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve_res.mat. Warning: Get data of variable pulse.T_start from file ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve_res.mat failed! Error: Could not read variable pulse.count in file ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve_res.mat. Warning: Get data of variable pulse.count from file ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve_res.mat failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 19.232530776411295]