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 (/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.007721/0.007721, allocations: 99.45 kB / 15.73 MB, free: 6.059 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.001856/0.001856, allocations: 194.2 kB / 16.67 MB, free: 5.969 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.437/1.437, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.8075/0.8075, allocations: 91.2 MB / 381.7 MB, free: 7.512 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00157/0.00157, allocations: 83.86 kB / 0.5168 GB, free: 4.137 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5377/0.5393, allocations: 67.68 MB / 0.5829 GB, free: 13.86 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.CheckValve): time 0.1763/0.7157, allocations: 143.8 MB / 0.7234 GB, free: 13.8 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.004533/0.7203, allocations: 3.583 MB / 0.7269 GB, free: 10.21 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003748/0.7207, allocations: 15.94 kB / 0.7269 GB, free: 10.2 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0006648/0.7213, allocations: 178.8 kB / 0.727 GB, free: 10.02 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0008366/0.7222, allocations: 369.8 kB / 0.7274 GB, free: 9.656 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007382/0.723, allocations: 291 kB / 0.7277 GB, free: 9.371 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0005298/0.7235, allocations: 0.4977 MB / 0.7282 GB, free: 8.871 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002/0.7237, allocations: 93.73 kB / 0.7283 GB, free: 8.777 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004496/0.7242, allocations: 235 kB / 0.7285 GB, free: 8.547 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002988/0.7245, allocations: 231 kB / 0.7287 GB, free: 8.32 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.467e-05/0.7246, allocations: 24 kB / 0.7287 GB, free: 8.297 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009182/0.7255, allocations: 499 kB / 0.7292 GB, free: 7.809 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 9.484e-05/0.7256, allocations: 63.7 kB / 0.7293 GB, free: 7.746 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0001738/0.7258, allocations: 175 kB / 0.7294 GB, free: 7.574 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0008237/0.7266, allocations: 0.5427 MB / 0.73 GB, free: 7.031 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.7266, allocations: 0 / 0.73 GB, free: 7.031 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.385e-06/0.7266, allocations: 4 kB / 0.73 GB, free: 7.027 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 7.684e-06/0.7266, allocations: 0 / 0.73 GB, free: 7.027 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.001282/0.7279, allocations: 0.7378 MB / 0.7307 GB, free: 6.234 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.43e-05/0.728, allocations: 8.031 kB / 0.7307 GB, free: 6.227 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.696e-05/0.7281, allocations: 48.66 kB / 0.7307 GB, free: 6.18 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006049/0.7287, allocations: 380.1 kB / 0.7311 GB, free: 5.766 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.492e-05/0.7287, allocations: 20.55 kB / 0.7311 GB, free: 5.746 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.927e-05/0.7288, allocations: 27.95 kB / 0.7311 GB, free: 5.719 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004964/0.7293, allocations: 257.8 kB / 0.7314 GB, free: 5.453 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/0.7293, allocations: 0 / 0.7314 GB, free: 5.453 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.591e-05/0.7293, allocations: 12 kB / 0.7314 GB, free: 5.441 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.326e-06/0.7293, allocations: 4 kB / 0.7314 GB, free: 5.438 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004671/0.7298, allocations: 221.5 kB / 0.7316 GB, free: 5.223 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001439/0.7313, allocations: 1.093 MB / 0.7327 GB, free: 4.012 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000504/0.7318, allocations: 234.3 kB / 0.7329 GB, free: 3.773 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002286/0.732, allocations: 116.8 kB / 0.733 GB, free: 3.656 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001002/0.733, allocations: 0.976 MB / 0.734 GB, free: 2.543 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003295/0.7334, allocations: 151.3 kB / 0.7341 GB, free: 2.383 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=23): time 1.663e-06/0.7334, allocations: 0 / 0.7341 GB, free: 2.383 MB / 0.5762 GB Notification: Performance of matching and sorting (n=23): time 0.001136/0.7345, allocations: 471 kB / 0.7346 GB, free: 1.898 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.114e-05/0.7346, allocations: 63.39 kB / 0.7346 GB, free: 1.824 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003409/0.7349, allocations: 329.7 kB / 0.7349 GB, free: 1.496 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.862e-05/0.735, allocations: 33.7 kB / 0.735 GB, free: 1.457 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001438/0.7351, allocations: 192.4 kB / 0.7352 GB, free: 1.266 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 6.631e-05/0.7352, allocations: 75.34 kB / 0.7352 GB, free: 1.191 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.067e-05/0.7353, allocations: 53.92 kB / 0.7353 GB, free: 1.133 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001384/0.7354, allocations: 342.8 kB / 0.7356 GB, free: 0.7891 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002198/0.7356, allocations: 84.12 kB / 0.7357 GB, free: 0.707 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002187/0.7359, allocations: 111 kB / 0.7358 GB, free: 0.5898 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004255/0.7363, allocations: 222.7 kB / 0.736 GB, free: 368 kB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.7363, allocations: 0 / 0.736 GB, free: 368 kB / 0.5762 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006583/0.737, allocations: 345.3 kB / 0.7363 GB, free: 8 kB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 0.4099/1.147, allocations: 31.59 kB / 0.7364 GB, free: 155 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.586e-05/1.147, allocations: 1.375 kB / 0.7364 GB, free: 155 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005011/1.147, allocations: 46.62 kB / 0.7364 GB, free: 155 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003504/1.148, allocations: 42.86 kB / 0.7364 GB, free: 155 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001783/1.15, allocations: 1.533 MB / 0.7379 GB, free: 153.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00037/1.15, allocations: 28.89 kB / 0.738 GB, free: 153.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.389e-05/1.15, allocations: 7.391 kB / 0.738 GB, free: 153.7 MB / 0.5762 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.0003092/1.15, allocations: 156.4 kB / 0.7381 GB, free: 153.6 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.614e-05/1.15, allocations: 35.67 kB / 0.7382 GB, free: 153.6 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009934/1.151, allocations: 337.8 kB / 0.7385 GB, free: 153.4 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.785e-06/1.152, allocations: 4.078 kB / 0.7385 GB, free: 153.4 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/1.152, allocations: 1.969 kB / 0.7385 GB, free: 153.4 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.586e-06/1.152, allocations: 4.812 kB / 0.7385 GB, free: 153.4 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001532/1.153, allocations: 0.7466 MB / 0.7392 GB, free: 153 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.155e-06/1.153, allocations: 3.938 kB / 0.7392 GB, free: 153 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002345/1.153, allocations: 35.36 kB / 0.7393 GB, free: 153 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002249/1.154, allocations: 52.75 kB / 0.7393 GB, free: 152.9 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.815e-05/1.154, allocations: 10.02 kB / 0.7393 GB, free: 152.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001289/1.155, allocations: 1.522 MB / 0.7408 GB, free: 151.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/1.155, allocations: 1.5 kB / 0.7408 GB, free: 151.5 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001095/1.156, allocations: 0.499 MB / 0.7413 GB, free: 151.2 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 8.573e-05/1.156, allocations: 121 kB / 0.7414 GB, free: 151.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.29e-05/1.156, allocations: 10.86 kB / 0.7414 GB, free: 151.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001953/1.156, allocations: 14.22 kB / 0.7414 GB, free: 151.1 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001058/1.156, allocations: 28.33 kB / 0.7415 GB, free: 151.1 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.479e-05/1.157, allocations: 8.047 kB / 0.7415 GB, free: 151.1 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003306/1.157, allocations: 238.1 kB / 0.7417 GB, free: 150.9 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.11e-07/1.157, allocations: 0 / 0.7417 GB, free: 150.9 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0006104/1.157, allocations: 125.9 kB / 0.7418 GB, free: 150.9 MB / 0.5762 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.0004053/1.158, allocations: 219.7 kB / 0.742 GB, free: 150.8 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0009224/1.159, allocations: 394.3 kB / 0.7424 GB, free: 150.6 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.646e-06/1.159, allocations: 0 / 0.7424 GB, free: 150.6 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0004604/1.159, allocations: 248.1 kB / 0.7426 GB, free: 150.4 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006718/1.16, allocations: 113.6 kB / 0.7427 GB, free: 150.4 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00143/1.161, allocations: 0.6895 MB / 0.7434 GB, free: 150 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002922/1.162, allocations: 0.7833 MB / 0.7442 GB, free: 149.3 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0002122/1.162, allocations: 61.39 kB / 0.7442 GB, free: 149.3 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.693e-05/1.162, allocations: 34.91 kB / 0.7443 GB, free: 149.3 MB / 0.5762 GB Notification: Performance of SimCode: time 3e-07/1.162, allocations: 3.938 kB / 0.7443 GB, free: 149.2 MB / 0.5762 GB Notification: Performance of Templates: time 0.01247/1.175, allocations: 6.378 MB / 0.7505 GB, free: 146.1 MB / 0.5762 GB 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches