Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo", uses=false) [Timeout 90] 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=1000,variableFilter="Time|boundary_rear.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve") translateModel(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|boundary_rear.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve") [Timeout 660] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008352/0.008352, allocations: 101.9 kB / 15.74 MB, free: 6.031 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.002248/0.002248, allocations: 194.8 kB / 16.67 MB, free: 5.961 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.457/1.457, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7285/0.7285, allocations: 93.71 MB / 384.2 MB, free: 6.926 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002425/0.002425, allocations: 84.14 kB / 0.5204 GB, free: 5.812 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1304/0.1329, allocations: 68.26 MB / 0.5871 GB, free: 1.477 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve): time 0.4359/0.5688, allocations: 145.3 MB / 0.729 GB, free: 1.062 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.004674/0.5735, allocations: 3.324 MB / 0.7323 GB, free: 13.73 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004634/0.574, allocations: 19.88 kB / 0.7323 GB, free: 13.71 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0007405/0.5748, allocations: 210.6 kB / 0.7325 GB, free: 13.5 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001298/0.5761, allocations: 497.1 kB / 0.733 GB, free: 13.02 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001047/0.5772, allocations: 390.7 kB / 0.7333 GB, free: 12.63 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001011/0.5782, allocations: 0.7272 MB / 0.734 GB, free: 11.9 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000257/0.5785, allocations: 121.8 kB / 0.7342 GB, free: 11.79 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008328/0.5793, allocations: 354.5 kB / 0.7345 GB, free: 11.44 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000569/0.5799, allocations: 362.6 kB / 0.7348 GB, free: 11.09 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 7.863e-05/0.58, allocations: 32 kB / 0.7349 GB, free: 11.05 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001265/0.5813, allocations: 0.5693 MB / 0.7354 GB, free: 10.48 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.000138/0.5814, allocations: 91.56 kB / 0.7355 GB, free: 10.39 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0002736/0.5817, allocations: 238.7 kB / 0.7357 GB, free: 10.16 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001265/0.583, allocations: 0.7283 MB / 0.7365 GB, free: 9.434 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.583, allocations: 0 / 0.7365 GB, free: 9.434 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.173e-06/0.583, allocations: 4 kB / 0.7365 GB, free: 9.43 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.934e-05/0.583, allocations: 0 / 0.7365 GB, free: 9.43 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.001623/0.5847, allocations: 0.8591 MB / 0.7373 GB, free: 8.516 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.004e-05/0.5847, allocations: 8.031 kB / 0.7373 GB, free: 8.508 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00013/0.5848, allocations: 56.56 kB / 0.7374 GB, free: 8.453 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007184/0.5856, allocations: 426.3 kB / 0.7378 GB, free: 7.996 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.392e-05/0.5856, allocations: 29.38 kB / 0.7378 GB, free: 7.969 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.139e-05/0.5857, allocations: 36.38 kB / 0.7378 GB, free: 7.934 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007818/0.5865, allocations: 420.2 kB / 0.7382 GB, free: 7.504 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.396e-05/0.5865, allocations: 3.938 kB / 0.7382 GB, free: 7.5 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.488e-05/0.5866, allocations: 16 kB / 0.7382 GB, free: 7.484 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.648e-05/0.5866, allocations: 11.94 kB / 0.7383 GB, free: 7.473 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007483/0.5873, allocations: 374.3 kB / 0.7386 GB, free: 7.105 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002377/0.5897, allocations: 1.846 MB / 0.7404 GB, free: 5.086 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008314/0.5906, allocations: 342.8 kB / 0.7407 GB, free: 4.742 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003573/0.5909, allocations: 172.8 kB / 0.7409 GB, free: 4.57 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002121/0.5931, allocations: 1.531 MB / 0.7424 GB, free: 2.828 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004684/0.5936, allocations: 210.5 kB / 0.7426 GB, free: 2.613 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=37): time 2.705e-06/0.5936, allocations: 0 / 0.7426 GB, free: 2.613 MB / 0.5762 GB Notification: Performance of matching and sorting (n=37): time 0.001498/0.5951, allocations: 0.608 MB / 0.7432 GB, free: 1.977 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.345e-05/0.5951, allocations: 55.41 kB / 0.7433 GB, free: 1.91 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004354/0.5956, allocations: 365.6 kB / 0.7436 GB, free: 1.539 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.471e-05/0.5956, allocations: 29.7 kB / 0.7436 GB, free: 1.504 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001831/0.5958, allocations: 228.5 kB / 0.7438 GB, free: 1.277 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001146/0.5959, allocations: 126.9 kB / 0.744 GB, free: 1.152 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001263/0.5961, allocations: 74.06 kB / 0.744 GB, free: 1.07 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001778/0.5963, allocations: 362.7 kB / 0.7444 GB, free: 0.707 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003017/0.5966, allocations: 112.7 kB / 0.7445 GB, free: 0.5977 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003493/0.5969, allocations: 178.7 kB / 0.7447 GB, free: 416 kB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000691/0.5976, allocations: 338.9 kB / 0.745 GB, free: 52 kB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.5976, allocations: 0 / 0.745 GB, free: 52 kB / 0.5762 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001026/0.5987, allocations: 477 kB / 0.7454 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 4.084e-05/0.5987, allocations: 31.58 kB / 0.7455 GB, free: 15.53 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.203e-05/0.5987, allocations: 7.984 kB / 0.7455 GB, free: 15.52 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002337/0.599, allocations: 44.77 kB / 0.7455 GB, free: 15.48 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003004/0.5993, allocations: 75.84 kB / 0.7456 GB, free: 15.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00152/0.6008, allocations: 1.532 MB / 0.7471 GB, free: 13.73 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002786/0.6011, allocations: 47.69 kB / 0.7471 GB, free: 13.68 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.261e-05/0.6012, allocations: 16 kB / 0.7472 GB, free: 13.66 MB / 0.5919 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.0002419/0.6014, allocations: 166.4 kB / 0.7473 GB, free: 13.49 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.776e-05/0.6015, allocations: 43.72 kB / 0.7474 GB, free: 13.45 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001175/0.6027, allocations: 0.5222 MB / 0.7479 GB, free: 12.92 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.164e-06/0.6027, allocations: 7.938 kB / 0.7479 GB, free: 12.91 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/0.6027, allocations: 0 / 0.7479 GB, free: 12.91 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/0.6027, allocations: 3.984 kB / 0.7479 GB, free: 12.91 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00173/0.6045, allocations: 0.9739 MB / 0.7488 GB, free: 11.87 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.035e-06/0.6045, allocations: 0 / 0.7488 GB, free: 11.87 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000253/0.6047, allocations: 63.91 kB / 0.7489 GB, free: 11.81 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00016/0.6049, allocations: 36.81 kB / 0.7489 GB, free: 11.77 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.275e-05/0.605, allocations: 20.8 kB / 0.7489 GB, free: 11.75 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001406/0.6064, allocations: 1.533 MB / 0.7504 GB, free: 10.08 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/0.6064, allocations: 4.031 kB / 0.7504 GB, free: 10.08 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001271/0.6077, allocations: 0.6428 MB / 0.7511 GB, free: 9.41 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001254/0.6078, allocations: 128.7 kB / 0.7512 GB, free: 9.266 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.951e-05/0.6079, allocations: 8 kB / 0.7512 GB, free: 9.258 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002465/0.6081, allocations: 20.42 kB / 0.7512 GB, free: 9.238 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001084/0.6083, allocations: 35.95 kB / 0.7513 GB, free: 9.203 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.464e-05/0.6083, allocations: 15.98 kB / 0.7513 GB, free: 9.188 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0003245/0.6086, allocations: 267.2 kB / 0.7515 GB, free: 8.93 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2e-07/0.6086, allocations: 0 / 0.7515 GB, free: 8.93 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0005922/0.6092, allocations: 163.7 kB / 0.7517 GB, free: 8.77 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.0004539/0.6097, allocations: 246.6 kB / 0.7519 GB, free: 8.523 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001054/0.6108, allocations: 0.4979 MB / 0.7524 GB, free: 8 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.6108, allocations: 0 / 0.7524 GB, free: 8 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0005467/0.6113, allocations: 294.5 kB / 0.7527 GB, free: 7.699 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007945/0.6121, allocations: 143.7 kB / 0.7528 GB, free: 7.562 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00188/0.614, allocations: 0.8479 MB / 0.7536 GB, free: 6.68 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004758/0.6145, allocations: 0.8157 MB / 0.7544 GB, free: 5.84 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0002867/0.6148, allocations: 81.25 kB / 0.7545 GB, free: 5.77 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001236/0.6149, allocations: 51.42 kB / 0.7546 GB, free: 5.719 MB / 0.5919 GB Notification: Performance of SimCode: time 2.51e-07/0.6149, allocations: 0 / 0.7546 GB, free: 5.719 MB / 0.5919 GB Notification: Performance of Templates: time 0.01636/0.6313, allocations: 8.18 MB / 0.7626 GB, free: 13.61 MB / 0.6075 GB make -j1 -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.makefile [Timeout 660] (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.sim & ./ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_dev_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_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] Reference file matches