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.00757/0.00757, allocations: 101.7 kB / 15.73 MB, free: 5.59 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.001665/0.001665, allocations: 191.7 kB / 16.67 MB, free: 5.523 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.411/1.411, 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.8485/0.8485, allocations: 91.19 MB / 381.7 MB, free: 7.527 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001491/0.001491, allocations: 75.88 kB / 0.5168 GB, free: 4.137 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.421/0.4225, allocations: 67.69 MB / 0.5829 GB, free: 13.82 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.CheckValve): time 0.186/0.6086, allocations: 143.8 MB / 0.7234 GB, free: 13.81 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.004904/0.6135, allocations: 3.595 MB / 0.7269 GB, free: 10.2 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004135/0.614, allocations: 11.94 kB / 0.7269 GB, free: 10.19 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0007916/0.6148, allocations: 178.8 kB / 0.727 GB, free: 10.02 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0009987/0.6159, allocations: 381.8 kB / 0.7274 GB, free: 9.641 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008832/0.6167, allocations: 294.9 kB / 0.7277 GB, free: 9.352 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0005411/0.6173, allocations: 0.4977 MB / 0.7282 GB, free: 8.852 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002109/0.6175, allocations: 85.52 kB / 0.7283 GB, free: 8.766 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004972/0.618, allocations: 247 kB / 0.7285 GB, free: 8.523 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000309/0.6183, allocations: 234.9 kB / 0.7287 GB, free: 8.293 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.411e-05/0.6184, allocations: 24 kB / 0.7287 GB, free: 8.27 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009704/0.6194, allocations: 495.1 kB / 0.7292 GB, free: 7.785 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001051/0.6195, allocations: 63.69 kB / 0.7293 GB, free: 7.723 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0001802/0.6197, allocations: 179 kB / 0.7294 GB, free: 7.547 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0008206/0.6205, allocations: 0.5353 MB / 0.73 GB, free: 7.012 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.6205, allocations: 0 / 0.73 GB, free: 7.012 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.963e-06/0.6205, allocations: 0 / 0.73 GB, free: 7.012 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 8.977e-06/0.6206, allocations: 0 / 0.73 GB, free: 7.012 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.001388/0.6219, allocations: 0.7343 MB / 0.7307 GB, free: 6.223 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.601e-05/0.622, allocations: 8.031 kB / 0.7307 GB, free: 6.215 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001054/0.6221, allocations: 40.47 kB / 0.7307 GB, free: 6.176 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006812/0.6228, allocations: 383.7 kB / 0.7311 GB, free: 5.758 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.966e-05/0.6229, allocations: 20.56 kB / 0.7311 GB, free: 5.738 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.718e-05/0.6229, allocations: 20 kB / 0.7311 GB, free: 5.719 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005335/0.6235, allocations: 261.8 kB / 0.7314 GB, free: 5.449 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.989e-05/0.6235, allocations: 0 / 0.7314 GB, free: 5.449 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.828e-05/0.6235, allocations: 11.94 kB / 0.7314 GB, free: 5.438 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.177e-06/0.6235, allocations: 8 kB / 0.7314 GB, free: 5.43 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004843/0.624, allocations: 217.6 kB / 0.7316 GB, free: 5.219 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001504/0.6256, allocations: 1.093 MB / 0.7327 GB, free: 4.008 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005443/0.6261, allocations: 230.3 kB / 0.7329 GB, free: 3.773 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002228/0.6263, allocations: 112.8 kB / 0.733 GB, free: 3.66 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001053/0.6274, allocations: 0.9839 MB / 0.734 GB, free: 2.539 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003225/0.6277, allocations: 157.7 kB / 0.7341 GB, free: 2.375 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=23): time 2.064e-06/0.6278, allocations: 0 / 0.7341 GB, free: 2.375 MB / 0.5762 GB Notification: Performance of matching and sorting (n=23): time 0.001139/0.6289, allocations: 466.8 kB / 0.7346 GB, free: 1.895 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.576e-05/0.629, allocations: 55.41 kB / 0.7346 GB, free: 1.828 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003634/0.6293, allocations: 337.7 kB / 0.7349 GB, free: 1.492 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.285e-05/0.6294, allocations: 29.64 kB / 0.735 GB, free: 1.457 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001454/0.6295, allocations: 200.2 kB / 0.7352 GB, free: 1.258 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 5.666e-05/0.6296, allocations: 70.94 kB / 0.7352 GB, free: 1.188 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.659e-05/0.6297, allocations: 57.92 kB / 0.7353 GB, free: 1.125 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001406/0.6298, allocations: 342.8 kB / 0.7356 GB, free: 0.7812 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002201/0.63, allocations: 80.17 kB / 0.7357 GB, free: 0.7031 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002199/0.6303, allocations: 111 kB / 0.7358 GB, free: 0.5859 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004127/0.6307, allocations: 226.6 kB / 0.736 GB, free: 360 kB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.6307, allocations: 0 / 0.736 GB, free: 360 kB / 0.5762 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006608/0.6314, allocations: 345.2 kB / 0.7363 GB, free: 0 / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 0.3848/1.016, allocations: 28.8 kB / 0.7364 GB, free: 155 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.335e-05/1.016, allocations: 4.062 kB / 0.7364 GB, free: 155 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003676/1.017, allocations: 38.28 kB / 0.7364 GB, free: 155 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002823/1.017, allocations: 44.72 kB / 0.7364 GB, free: 155 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00113/1.018, allocations: 1.521 MB / 0.7379 GB, free: 153.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002563/1.018, allocations: 29.97 kB / 0.738 GB, free: 153.6 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.64e-05/1.018, allocations: 14.14 kB / 0.738 GB, free: 153.6 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.0001642/1.019, allocations: 153.7 kB / 0.7381 GB, free: 153.5 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.804e-05/1.019, allocations: 33.45 kB / 0.7381 GB, free: 153.5 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008318/1.019, allocations: 342.3 kB / 0.7385 GB, free: 153.4 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.979e-06/1.019, allocations: 3.375 kB / 0.7385 GB, free: 153.4 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/1.019, allocations: 0.625 kB / 0.7385 GB, free: 153.4 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.704e-06/1.019, allocations: 1.625 kB / 0.7385 GB, free: 153.4 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001178/1.021, allocations: 0.7377 MB / 0.7392 GB, free: 152.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/1.021, allocations: 5.062 kB / 0.7392 GB, free: 152.9 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001739/1.021, allocations: 43.67 kB / 0.7392 GB, free: 152.9 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001518/1.021, allocations: 43.52 kB / 0.7393 GB, free: 152.9 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.584e-05/1.021, allocations: 8.938 kB / 0.7393 GB, free: 152.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009555/1.022, allocations: 1.529 MB / 0.7408 GB, free: 151.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/1.022, allocations: 1.688 kB / 0.7408 GB, free: 151.4 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009244/1.023, allocations: 0.4938 MB / 0.7413 GB, free: 151.1 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 6.166e-05/1.023, allocations: 115.2 kB / 0.7414 GB, free: 151 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.931e-05/1.023, allocations: 12.02 kB / 0.7414 GB, free: 151 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001956/1.023, allocations: 14.03 kB / 0.7414 GB, free: 151 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.046e-05/1.023, allocations: 25.92 kB / 0.7414 GB, free: 151 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.44e-05/1.023, allocations: 15.17 kB / 0.7414 GB, free: 151 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002768/1.024, allocations: 238.3 kB / 0.7417 GB, free: 150.9 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.41e-07/1.024, allocations: 0 / 0.7417 GB, free: 150.9 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.000521/1.024, allocations: 120.5 kB / 0.7418 GB, free: 150.8 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.0003756/1.025, allocations: 227.6 kB / 0.742 GB, free: 150.7 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0007947/1.025, allocations: 385.4 kB / 0.7424 GB, free: 150.5 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/1.025, allocations: 4 kB / 0.7424 GB, free: 150.5 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0004141/1.026, allocations: 245.5 kB / 0.7426 GB, free: 150.3 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006489/1.027, allocations: 111.2 kB / 0.7427 GB, free: 150.3 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001351/1.028, allocations: 0.6711 MB / 0.7434 GB, free: 149.9 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002856/1.028, allocations: 0.7842 MB / 0.7441 GB, free: 149.2 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001874/1.028, allocations: 54.97 kB / 0.7442 GB, free: 149.2 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.045e-05/1.028, allocations: 35.16 kB / 0.7442 GB, free: 149.2 MB / 0.5762 GB Notification: Performance of SimCode: time 2.21e-07/1.028, allocations: 0 / 0.7442 GB, free: 149.2 MB / 0.5762 GB Notification: Performance of Templates: time 0.012/1.04, allocations: 6.395 MB / 0.7505 GB, free: 146 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