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.008074/0.008074, allocations: 104.7 kB / 15.74 MB, free: 6.484 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.002051/0.002051, allocations: 193.5 kB / 16.67 MB, free: 6.375 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.381/1.381, allocations: 222.9 MB / 240.4 MB, free: 4.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6514/0.6514, allocations: 91.2 MB / 381.7 MB, free: 9.328 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001471/0.001471, allocations: 83.88 kB / 0.5169 GB, free: 8.984 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1143/0.1158, allocations: 67.68 MB / 0.583 GB, free: 5.215 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve): time 0.3987/0.5146, allocations: 145.3 MB / 0.7249 GB, free: 6.758 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.004119/0.5188, allocations: 3.34 MB / 0.7281 GB, free: 3.418 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003557/0.5191, allocations: 15.94 kB / 0.7281 GB, free: 3.402 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.000653/0.5198, allocations: 210.6 kB / 0.7283 GB, free: 3.195 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001042/0.5209, allocations: 493.1 kB / 0.7288 GB, free: 2.711 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.000945/0.5219, allocations: 398.6 kB / 0.7292 GB, free: 2.32 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0007559/0.5226, allocations: 0.7194 MB / 0.7299 GB, free: 1.598 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002109/0.5229, allocations: 116.9 kB / 0.73 GB, free: 1.488 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006304/0.5235, allocations: 366.5 kB / 0.7304 GB, free: 1.129 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000438/0.5239, allocations: 354.6 kB / 0.7307 GB, free: 0.7812 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 5.107e-05/0.524, allocations: 36 kB / 0.7307 GB, free: 0.7461 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001046/0.5251, allocations: 0.5809 MB / 0.7313 GB, free: 168 kB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001091/0.5252, allocations: 91.61 kB / 0.7314 GB, free: 76 kB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.000218/0.5254, allocations: 238.7 kB / 0.7316 GB, free: 15.84 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0009415/0.5264, allocations: 0.7298 MB / 0.7323 GB, free: 15.11 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.5264, allocations: 0 / 0.7323 GB, free: 15.11 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.543e-06/0.5264, allocations: 0 / 0.7323 GB, free: 15.11 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.214e-05/0.5264, allocations: 0 / 0.7323 GB, free: 15.11 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.001437/0.5278, allocations: 0.8371 MB / 0.7331 GB, free: 14.22 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.666e-05/0.5279, allocations: 12.03 kB / 0.7332 GB, free: 14.21 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001029/0.528, allocations: 52.28 kB / 0.7332 GB, free: 14.16 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006177/0.5286, allocations: 422 kB / 0.7336 GB, free: 13.71 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.982e-05/0.5287, allocations: 25.38 kB / 0.7336 GB, free: 13.68 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.04e-05/0.5287, allocations: 32.38 kB / 0.7337 GB, free: 13.65 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007352/0.5295, allocations: 428.3 kB / 0.7341 GB, free: 13.21 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.341e-05/0.5295, allocations: 4 kB / 0.7341 GB, free: 13.21 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.645e-05/0.5295, allocations: 12.88 kB / 0.7341 GB, free: 13.2 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.25e-05/0.5296, allocations: 8 kB / 0.7341 GB, free: 13.19 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006964/0.5303, allocations: 370.4 kB / 0.7344 GB, free: 12.82 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002105/0.5324, allocations: 1.852 MB / 0.7363 GB, free: 10.8 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007649/0.5332, allocations: 345.8 kB / 0.7366 GB, free: 10.45 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003339/0.5335, allocations: 164.8 kB / 0.7367 GB, free: 10.29 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001956/0.5355, allocations: 1.535 MB / 0.7382 GB, free: 8.543 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004479/0.5359, allocations: 203.3 kB / 0.7384 GB, free: 8.332 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=37): time 2.275e-06/0.5359, allocations: 4 kB / 0.7384 GB, free: 8.328 MB / 0.5762 GB Notification: Performance of matching and sorting (n=37): time 0.001445/0.5374, allocations: 0.6035 MB / 0.739 GB, free: 7.695 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.121e-05/0.5375, allocations: 59.41 kB / 0.7391 GB, free: 7.625 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003809/0.5378, allocations: 361.6 kB / 0.7394 GB, free: 7.262 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.846e-05/0.5379, allocations: 33.7 kB / 0.7395 GB, free: 7.223 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001676/0.5381, allocations: 228.2 kB / 0.7397 GB, free: 6.996 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 9.282e-05/0.5382, allocations: 122.2 kB / 0.7398 GB, free: 6.875 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001209/0.5383, allocations: 70.06 kB / 0.7399 GB, free: 6.797 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001381/0.5384, allocations: 358.7 kB / 0.7402 GB, free: 6.438 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002942/0.5387, allocations: 116.7 kB / 0.7403 GB, free: 6.324 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003276/0.5391, allocations: 182.6 kB / 0.7405 GB, free: 6.129 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006166/0.5397, allocations: 327.2 kB / 0.7408 GB, free: 5.785 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.534e-06/0.5397, allocations: 0 / 0.7408 GB, free: 5.785 MB / 0.5762 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009194/0.5406, allocations: 480.5 kB / 0.7413 GB, free: 5.301 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 3.897e-05/0.5407, allocations: 33.7 kB / 0.7413 GB, free: 5.262 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.203e-06/0.5407, allocations: 0 / 0.7413 GB, free: 5.262 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002402/0.5409, allocations: 44.77 kB / 0.7413 GB, free: 5.215 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003015/0.5413, allocations: 75.89 kB / 0.7414 GB, free: 5.141 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001326/0.5426, allocations: 1.534 MB / 0.7429 GB, free: 3.461 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002722/0.5429, allocations: 43.61 kB / 0.7429 GB, free: 3.418 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.582e-05/0.5429, allocations: 19.98 kB / 0.743 GB, free: 3.398 MB / 0.5762 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.0001988/0.5431, allocations: 166.4 kB / 0.7431 GB, free: 3.227 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.936e-05/0.5432, allocations: 43.44 kB / 0.7432 GB, free: 3.184 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001118/0.5443, allocations: 0.5262 MB / 0.7437 GB, free: 2.656 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.517e-05/0.5444, allocations: 7.938 kB / 0.7437 GB, free: 2.648 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.5444, allocations: 4 kB / 0.7437 GB, free: 2.645 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.481e-06/0.5444, allocations: 0 / 0.7437 GB, free: 2.645 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001536/0.5459, allocations: 0.9699 MB / 0.7446 GB, free: 1.609 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.5459, allocations: 0 / 0.7446 GB, free: 1.609 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002421/0.5462, allocations: 59.91 kB / 0.7447 GB, free: 1.551 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001568/0.5463, allocations: 45.31 kB / 0.7447 GB, free: 1.504 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.65e-05/0.5464, allocations: 8 kB / 0.7447 GB, free: 1.496 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001227/0.5476, allocations: 1.545 MB / 0.7463 GB, free: 15.82 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.5476, allocations: 3.938 kB / 0.7463 GB, free: 15.81 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001156/0.5488, allocations: 0.6465 MB / 0.7469 GB, free: 15.14 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 8.728e-05/0.5489, allocations: 116.5 kB / 0.747 GB, free: 15.01 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.965e-05/0.549, allocations: 15.98 kB / 0.747 GB, free: 14.99 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002454/0.5492, allocations: 24.05 kB / 0.747 GB, free: 14.97 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001017/0.5493, allocations: 39.83 kB / 0.7471 GB, free: 14.93 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.478e-05/0.5494, allocations: 12 kB / 0.7471 GB, free: 14.92 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002764/0.5497, allocations: 267.2 kB / 0.7473 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.31e-07/0.5497, allocations: 0 / 0.7473 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0005576/0.5502, allocations: 163.8 kB / 0.7475 GB, free: 14.5 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.0003747/0.5506, allocations: 238.7 kB / 0.7477 GB, free: 14.26 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0009771/0.5516, allocations: 0.4903 MB / 0.7482 GB, free: 13.75 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.5516, allocations: 0 / 0.7482 GB, free: 13.75 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0004889/0.5521, allocations: 298.3 kB / 0.7485 GB, free: 13.44 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007866/0.5529, allocations: 146.8 kB / 0.7486 GB, free: 13.3 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001652/0.5546, allocations: 0.8431 MB / 0.7495 GB, free: 12.43 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003708/0.555, allocations: 0.8157 MB / 0.7502 GB, free: 11.59 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0002712/0.5552, allocations: 91.5 kB / 0.7503 GB, free: 11.5 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001086/0.5554, allocations: 47.42 kB / 0.7504 GB, free: 11.46 MB / 0.5919 GB Notification: Performance of SimCode: time 6.41e-07/0.5554, allocations: 0 / 0.7504 GB, free: 11.46 MB / 0.5919 GB Notification: Performance of Templates: time 0.01436/0.5697, allocations: 8.177 MB / 0.7584 GB, free: 3.352 MB / 0.5919 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