Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.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 (/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.Undirected.FlowControl.Tests.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|boundary_rear.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve") translateModel(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|boundary_rear.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001488/0.001488, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001813/0.001813, allocations: 195.6 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.363/1.363, allocations: 222.9 MB / 240.2 MB, free: 4.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6659/0.6659, allocations: 91.2 MB / 381.6 MB, free: 9.383 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001603/0.001603, allocations: 84.62 kB / 460.3 MB, free: 23.13 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1184/0.12, allocations: 67.7 MB / 0.5156 GB, free: 10.16 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve): time 0.4106/0.5306, allocations: 145.3 MB / 0.6575 GB, free: 5.645 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.004717/0.5354, allocations: 3.331 MB / 0.6608 GB, free: 2.934 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00057/0.536, allocations: 18.22 kB / 0.6608 GB, free: 2.926 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008331/0.5369, allocations: 216.8 kB / 0.661 GB, free: 2.746 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001457/0.5384, allocations: 498.1 kB / 0.6615 GB, free: 2.348 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001159/0.5396, allocations: 385.1 kB / 0.6619 GB, free: 2.066 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009714/0.5406, allocations: 0.722 MB / 0.6626 GB, free: 1.652 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002757/0.5409, allocations: 124.7 kB / 0.6627 GB, free: 1.59 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008044/0.5417, allocations: 349.8 kB / 0.663 GB, free: 1.387 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006175/0.5423, allocations: 363 kB / 0.6634 GB, free: 1.176 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 8.957e-05/0.5424, allocations: 32.66 kB / 0.6634 GB, free: 1.176 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001365/0.5438, allocations: 0.5738 MB / 0.664 GB, free: 0.9102 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001324/0.5439, allocations: 94.38 kB / 0.664 GB, free: 0.832 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003068/0.5443, allocations: 235.4 kB / 0.6643 GB, free: 0.6797 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001346/0.5456, allocations: 0.716 MB / 0.665 GB, free: 224 kB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.5456, allocations: 0 / 0.665 GB, free: 224 kB / 478.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.5457, allocations: 0 / 0.665 GB, free: 224 kB / 478.1 MB Notification: Performance of Transformations before backend: time 1.995e-05/0.5457, allocations: 2.906 kB / 0.665 GB, free: 224 kB / 478.1 MB 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.001742/0.5474, allocations: 0.84 MB / 0.6658 GB, free: 15.49 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.794e-05/0.5475, allocations: 9.562 kB / 0.6658 GB, free: 15.49 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001271/0.5476, allocations: 56.81 kB / 0.6659 GB, free: 15.46 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005345/0.5482, allocations: 397.7 kB / 0.6662 GB, free: 15.1 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.619e-05/0.5482, allocations: 29.52 kB / 0.6663 GB, free: 15.08 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.089e-05/0.5483, allocations: 31.41 kB / 0.6663 GB, free: 15.07 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006983/0.549, allocations: 420.4 kB / 0.6667 GB, free: 14.8 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.764e-05/0.549, allocations: 3.938 kB / 0.6667 GB, free: 14.79 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.229e-05/0.549, allocations: 14.62 kB / 0.6667 GB, free: 14.78 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.007e-06/0.5491, allocations: 10.38 kB / 0.6667 GB, free: 14.78 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006739/0.5497, allocations: 367.4 kB / 0.6671 GB, free: 14.61 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002245/0.552, allocations: 1.858 MB / 0.6689 GB, free: 12.85 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007736/0.5528, allocations: 340.2 kB / 0.6692 GB, free: 12.67 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003192/0.5531, allocations: 172.6 kB / 0.6694 GB, free: 12.58 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001929/0.5551, allocations: 1.532 MB / 0.6709 GB, free: 11.02 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004907/0.5556, allocations: 204.5 kB / 0.6711 GB, free: 10.88 MB / 494.1 MB Notification: Performance of pre-optimization done (n=37): time 2.805e-06/0.5556, allocations: 0 / 0.6711 GB, free: 10.88 MB / 494.1 MB Notification: Performance of matching and sorting (n=37): time 0.001377/0.557, allocations: 0.6103 MB / 0.6717 GB, free: 10.5 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.848e-05/0.557, allocations: 56.28 kB / 0.6717 GB, free: 10.44 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003737/0.5574, allocations: 359.8 kB / 0.6721 GB, free: 10.21 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.564e-05/0.5575, allocations: 33.7 kB / 0.6721 GB, free: 10.17 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001545/0.5576, allocations: 227.2 kB / 0.6723 GB, free: 9.969 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.664e-05/0.5577, allocations: 121.2 kB / 0.6724 GB, free: 9.863 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001097/0.5578, allocations: 77.91 kB / 0.6725 GB, free: 9.805 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.558, allocations: 356.8 kB / 0.6728 GB, free: 9.457 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002854/0.5583, allocations: 119.2 kB / 0.6729 GB, free: 9.402 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003126/0.5586, allocations: 179.6 kB / 0.6731 GB, free: 9.281 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005972/0.5592, allocations: 334.1 kB / 0.6734 GB, free: 9.066 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.5592, allocations: 0 / 0.6734 GB, free: 9.066 MB / 494.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009303/0.5601, allocations: 469.7 kB / 0.6739 GB, free: 8.805 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.58e-05/0.5602, allocations: 33.08 kB / 0.6739 GB, free: 8.773 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.016e-05/0.5602, allocations: 6.625 kB / 0.6739 GB, free: 8.77 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002397/0.5604, allocations: 48.52 kB / 0.674 GB, free: 8.738 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002948/0.5608, allocations: 82.02 kB / 0.674 GB, free: 8.715 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001277/0.562, allocations: 1.533 MB / 0.6755 GB, free: 7.176 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000301/0.5624, allocations: 40.33 kB / 0.6756 GB, free: 7.148 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.428e-05/0.5624, allocations: 20.92 kB / 0.6756 GB, free: 7.141 MB / 494.1 MB 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.0002008/0.5626, allocations: 165.1 kB / 0.6758 GB, free: 6.988 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.565e-05/0.5627, allocations: 39.72 kB / 0.6758 GB, free: 6.969 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001083/0.5638, allocations: 0.5246 MB / 0.6763 GB, free: 6.648 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.953e-06/0.5638, allocations: 6.406 kB / 0.6763 GB, free: 6.645 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.97e-06/0.5638, allocations: 1.938 kB / 0.6763 GB, free: 6.645 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.5638, allocations: 0 / 0.6763 GB, free: 6.645 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001569/0.5654, allocations: 0.9694 MB / 0.6773 GB, free: 5.895 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.5654, allocations: 2.531 kB / 0.6773 GB, free: 5.895 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000238/0.5657, allocations: 57.38 kB / 0.6773 GB, free: 5.883 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001661/0.5659, allocations: 46.66 kB / 0.6774 GB, free: 5.852 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.303e-05/0.5659, allocations: 20.34 kB / 0.6774 GB, free: 5.836 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00123/0.5671, allocations: 1.534 MB / 0.6789 GB, free: 4.289 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.5672, allocations: 6.375 kB / 0.6789 GB, free: 4.285 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001171/0.5683, allocations: 0.6432 MB / 0.6795 GB, free: 3.871 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001262/0.5685, allocations: 121 kB / 0.6796 GB, free: 3.746 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.763e-05/0.5686, allocations: 12.44 kB / 0.6796 GB, free: 3.738 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002549/0.5688, allocations: 20.17 kB / 0.6797 GB, free: 3.727 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001038/0.5689, allocations: 42.28 kB / 0.6797 GB, free: 3.699 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.645e-05/0.569, allocations: 14.81 kB / 0.6797 GB, free: 3.695 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0002886/0.5693, allocations: 269.8 kB / 0.68 GB, free: 3.531 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.5693, allocations: 0 / 0.68 GB, free: 3.531 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0006037/0.5699, allocations: 165.1 kB / 0.6801 GB, free: 3.488 MB / 494.1 MB 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.0004185/0.5703, allocations: 234.7 kB / 0.6804 GB, free: 3.34 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001126/0.5715, allocations: 0.4958 MB / 0.6808 GB, free: 3.012 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.5715, allocations: 0 / 0.6808 GB, free: 3.012 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005162/0.572, allocations: 311.4 kB / 0.6811 GB, free: 2.801 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008416/0.5728, allocations: 133.5 kB / 0.6813 GB, free: 2.73 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001881/0.5747, allocations: 0.8499 MB / 0.6821 GB, free: 2.164 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003866/0.5751, allocations: 0.8215 MB / 0.6829 GB, free: 1.406 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0003568/0.5755, allocations: 86.7 kB / 0.683 GB, free: 1.371 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001099/0.5756, allocations: 44.95 kB / 0.683 GB, free: 1.355 MB / 494.1 MB Notification: Performance of SimCode: time 6.11e-07/0.5756, allocations: 0 / 0.683 GB, free: 1.355 MB / 494.1 MB Notification: Performance of Templates: time 0.01513/0.5908, allocations: 8.115 MB / 0.6909 GB, free: 11.07 MB / 0.4981 GB make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.makefile (rm -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.sim & ./ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches