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.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: translateModel(ThermofluidStream.FlowControl.Tests.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|pulse.T_start|pulse.count|source.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve") translateModel(ThermofluidStream.FlowControl.Tests.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|pulse.T_start|pulse.count|source.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009795/0.000984, allocations: 99.86 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.001067/0.001067, 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.413/1.413, allocations: 223.2 MB / 239.9 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7727/0.7727, allocations: 89.61 MB / 380.6 MB, free: 11.48 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004233/0.0004233, allocations: 13.19 kB / 459.9 MB, free: 24.36 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1574/0.1578, allocations: 68.83 MB / 0.5163 GB, free: 11.81 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.CheckValve): time 0.5333/0.6912, allocations: 122 MB / 0.6354 GB, free: 8.09 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.004431/0.6957, allocations: 2.99 MB / 0.6383 GB, free: 5.715 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003893/0.6961, allocations: 3.219 kB / 0.6383 GB, free: 5.715 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007093/0.6968, allocations: 149.8 kB / 0.6385 GB, free: 5.59 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001049/0.6979, allocations: 347.7 kB / 0.6388 GB, free: 5.301 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008349/0.6987, allocations: 205.3 kB / 0.639 GB, free: 5.145 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004903/0.6992, allocations: 307.2 kB / 0.6393 GB, free: 4.957 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002271/0.6995, allocations: 73.14 kB / 0.6394 GB, free: 4.91 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004127/0.6999, allocations: 165.4 kB / 0.6395 GB, free: 4.816 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002789/0.7002, allocations: 169 kB / 0.6397 GB, free: 4.719 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 3.662e-05/0.7002, allocations: 10.72 kB / 0.6397 GB, free: 4.719 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009487/0.7012, allocations: 450.2 kB / 0.6401 GB, free: 4.539 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 6.747e-05/0.7013, allocations: 39.39 kB / 0.6402 GB, free: 4.508 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 9.639e-05/0.7014, allocations: 90.25 kB / 0.6403 GB, free: 4.441 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004329/0.7018, allocations: 324 kB / 0.6406 GB, free: 4.25 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.495e-06/0.7018, allocations: 0 / 0.6406 GB, free: 4.25 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.7018, allocations: 0 / 0.6406 GB, free: 4.25 MB / 462.1 MB Notification: Performance of Transformations before backend: time 9.057e-06/0.7019, allocations: 0 / 0.6406 GB, free: 4.25 MB / 462.1 MB 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.00123/0.7031, allocations: 0.6338 MB / 0.6412 GB, free: 3.668 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.964e-05/0.7031, allocations: 10 kB / 0.6412 GB, free: 3.668 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.768e-05/0.7032, allocations: 38.72 kB / 0.6412 GB, free: 3.645 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003628/0.7036, allocations: 279 kB / 0.6415 GB, free: 3.371 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.761e-05/0.7036, allocations: 14.69 kB / 0.6415 GB, free: 3.367 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.378e-05/0.7037, allocations: 25.03 kB / 0.6415 GB, free: 3.355 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004887/0.7042, allocations: 266.5 kB / 0.6418 GB, free: 3.18 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.919e-06/0.7042, allocations: 0 / 0.6418 GB, free: 3.18 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.121e-05/0.7042, allocations: 10.84 kB / 0.6418 GB, free: 3.172 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.538e-06/0.7042, allocations: 5.781 kB / 0.6418 GB, free: 3.172 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005276/0.7048, allocations: 234.6 kB / 0.642 GB, free: 3.059 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001717/0.7065, allocations: 1.094 MB / 0.6431 GB, free: 2.027 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000594/0.7071, allocations: 241.8 kB / 0.6433 GB, free: 1.898 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001115/0.7082, allocations: 0.9929 MB / 0.6443 GB, free: 0.8516 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004236/0.7087, allocations: 159.5 kB / 0.6445 GB, free: 0.7383 MB / 462.1 MB Notification: Performance of pre-optimization done (n=23): time 1.553e-06/0.7087, allocations: 3.938 kB / 0.6445 GB, free: 0.7344 MB / 462.1 MB Notification: Performance of matching and sorting (n=23): time 0.001167/0.7099, allocations: 466.4 kB / 0.6449 GB, free: 452 kB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.387e-05/0.7099, allocations: 64.28 kB / 0.645 GB, free: 380 kB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003276/0.7103, allocations: 271.7 kB / 0.6452 GB, free: 188 kB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 3.42e-05/0.7103, allocations: 31.36 kB / 0.6453 GB, free: 152 kB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001549/0.7105, allocations: 173.6 kB / 0.6454 GB, free: 15.98 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.524e-05/0.7105, allocations: 72.92 kB / 0.6455 GB, free: 15.92 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.488e-05/0.7106, allocations: 7.062 kB / 0.6455 GB, free: 15.92 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000141/0.7107, allocations: 340 kB / 0.6458 GB, free: 15.58 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001994/0.7109, allocations: 85.16 kB / 0.6459 GB, free: 15.54 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002094/0.7111, allocations: 114.3 kB / 0.646 GB, free: 15.47 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002212/0.7114, allocations: 112.3 kB / 0.6461 GB, free: 15.41 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.7114, allocations: 4 kB / 0.6461 GB, free: 15.4 MB / 478.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006507/0.712, allocations: 344 kB / 0.6464 GB, free: 15.2 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.422e-05/0.7121, allocations: 37.39 kB / 0.6465 GB, free: 15.17 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.102e-06/0.7121, allocations: 4.062 kB / 0.6465 GB, free: 15.16 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000231/0.7123, allocations: 37.42 kB / 0.6465 GB, free: 15.14 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002054/0.7125, allocations: 49.28 kB / 0.6466 GB, free: 15.13 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001278/0.7138, allocations: 1.437 MB / 0.648 GB, free: 13.69 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002066/0.7141, allocations: 32.16 kB / 0.648 GB, free: 13.67 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.573e-05/0.7141, allocations: 11.8 kB / 0.648 GB, free: 13.66 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001551/0.7143, allocations: 142.3 kB / 0.6482 GB, free: 13.53 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.871e-05/0.7143, allocations: 28.72 kB / 0.6482 GB, free: 13.51 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007444/0.7151, allocations: 341.5 kB / 0.6485 GB, free: 13.31 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.7151, allocations: 2.562 kB / 0.6485 GB, free: 13.31 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.7151, allocations: 3.953 kB / 0.6485 GB, free: 13.31 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.042e-06/0.7151, allocations: 0 / 0.6485 GB, free: 13.31 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001334/0.7164, allocations: 0.7568 MB / 0.6493 GB, free: 12.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.7164, allocations: 2.438 kB / 0.6493 GB, free: 12.7 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001631/0.7166, allocations: 42.88 kB / 0.6493 GB, free: 12.68 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000154/0.7168, allocations: 42.56 kB / 0.6493 GB, free: 12.66 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.294e-05/0.7168, allocations: 14.75 kB / 0.6493 GB, free: 12.64 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001201/0.718, allocations: 1.43 MB / 0.6507 GB, free: 11.21 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.718, allocations: 3.938 kB / 0.6507 GB, free: 11.21 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000956/0.719, allocations: 0.5162 MB / 0.6513 GB, free: 10.86 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.561e-05/0.7191, allocations: 100.5 kB / 0.6513 GB, free: 10.75 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.336e-05/0.7191, allocations: 14.56 kB / 0.6514 GB, free: 10.73 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002036/0.7194, allocations: 14.53 kB / 0.6514 GB, free: 10.73 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.048e-05/0.7195, allocations: 35.73 kB / 0.6514 GB, free: 10.71 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.176e-05/0.7195, allocations: 12.83 kB / 0.6514 GB, free: 10.7 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0002278/0.7197, allocations: 197.7 kB / 0.6516 GB, free: 10.57 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.7197, allocations: 0 / 0.6516 GB, free: 10.57 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0005837/0.7203, allocations: 120 kB / 0.6517 GB, free: 10.54 MB / 478.1 MB 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003903/0.7207, allocations: 221.5 kB / 0.6519 GB, free: 10.39 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0007826/0.7215, allocations: 404.5 kB / 0.6523 GB, free: 10.11 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.7215, allocations: 0 / 0.6523 GB, free: 10.11 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004064/0.7219, allocations: 247 kB / 0.6526 GB, free: 9.93 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005577/0.7225, allocations: 89.06 kB / 0.6526 GB, free: 9.883 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001288/0.7238, allocations: 0.7285 MB / 0.6534 GB, free: 9.348 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003608/0.7242, allocations: 0.7778 MB / 0.6541 GB, free: 8.605 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0001849/0.7244, allocations: 46.22 kB / 0.6542 GB, free: 8.578 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.435e-05/0.7245, allocations: 29.23 kB / 0.6542 GB, free: 8.566 MB / 478.1 MB Notification: Performance of SimCode: time 2.465e-06/0.7245, allocations: 0 / 0.6542 GB, free: 8.566 MB / 478.1 MB Notification: Performance of Templates: time 0.01035/0.7348, allocations: 5.775 MB / 0.6598 GB, free: 5.637 MB / 478.1 MB make -j1 -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.makefile (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 & ./ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.CheckValve_ref.mat","../files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches