Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.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.Processes.Tests.TestFlowResistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|flowResistance.rear.m_flow|flowResistance1.rear.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance") translateModel(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|flowResistance.rear.m_flow|flowResistance1.rear.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007931/0.007931, allocations: 105 kB / 15.73 MB, free: 6.043 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.001968/0.001968, allocations: 191.1 kB / 16.67 MB, free: 5.977 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.37/1.37, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6472/0.6472, allocations: 91.18 MB / 381.7 MB, free: 9.328 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001538/0.001538, allocations: 79.88 kB / 0.5168 GB, free: 9 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.1173, allocations: 67.7 MB / 0.5829 GB, free: 5.227 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.4238/0.5412, allocations: 149.5 MB / 0.7289 GB, free: 2.57 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.005804/0.5471, allocations: 4.646 MB / 0.7335 GB, free: 13.92 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000552/0.5476, allocations: 31.81 kB / 0.7335 GB, free: 13.89 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0008844/0.5485, allocations: 298 kB / 0.7338 GB, free: 13.59 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001481/0.5501, allocations: 0.6602 MB / 0.7344 GB, free: 12.93 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001049/0.5511, allocations: 0.4982 MB / 0.7349 GB, free: 12.43 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0009857/0.5521, allocations: 0.98 MB / 0.7359 GB, free: 11.45 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002753/0.5524, allocations: 156 kB / 0.736 GB, free: 11.29 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009842/0.5534, allocations: 0.5251 MB / 0.7365 GB, free: 10.77 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000553/0.554, allocations: 458.2 kB / 0.737 GB, free: 10.32 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 7.678e-05/0.5541, allocations: 47.98 kB / 0.737 GB, free: 10.27 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00143/0.5555, allocations: 0.7681 MB / 0.7378 GB, free: 9.5 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001123/0.5556, allocations: 119.4 kB / 0.7379 GB, free: 9.383 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0002634/0.5559, allocations: 314.2 kB / 0.7382 GB, free: 9.074 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001225/0.5571, allocations: 0.9673 MB / 0.7391 GB, free: 8.109 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.5572, allocations: 0 / 0.7391 GB, free: 8.109 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.613e-06/0.5572, allocations: 0 / 0.7391 GB, free: 8.109 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 9.017e-06/0.5572, allocations: 0 / 0.7391 GB, free: 8.109 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: 107 * Number of variables: 107 Notification: Performance of Generate backend data structure: time 0.001486/0.5587, allocations: 0.9625 MB / 0.7401 GB, free: 7.094 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.488e-05/0.5587, allocations: 12.03 kB / 0.7401 GB, free: 7.082 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001245/0.5588, allocations: 75.98 kB / 0.7402 GB, free: 7.008 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007921/0.5596, allocations: 0.5482 MB / 0.7407 GB, free: 6.422 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.632e-05/0.5597, allocations: 31.69 kB / 0.7407 GB, free: 6.391 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.933e-05/0.5598, allocations: 48.36 kB / 0.7408 GB, free: 6.344 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007888/0.5606, allocations: 0.5087 MB / 0.7413 GB, free: 5.812 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.225e-05/0.5606, allocations: 0 / 0.7413 GB, free: 5.812 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.716e-05/0.5606, allocations: 16 kB / 0.7413 GB, free: 5.797 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.185e-05/0.5606, allocations: 12 kB / 0.7413 GB, free: 5.785 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007575/0.5614, allocations: 479.7 kB / 0.7418 GB, free: 5.316 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002458/0.5639, allocations: 2.174 MB / 0.7439 GB, free: 2.957 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007707/0.5647, allocations: 372.4 kB / 0.7442 GB, free: 2.586 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003227/0.565, allocations: 198.1 kB / 0.7444 GB, free: 2.387 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002313/0.5673, allocations: 2.002 MB / 0.7464 GB, free: 104 kB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.132e-05/0.5674, allocations: 39 kB / 0.7464 GB, free: 56 kB / 0.5762 GB Notification: Performance of pre-optimization done (n=47): time 1.723e-06/0.5674, allocations: 0 / 0.7464 GB, free: 56 kB / 0.5762 GB Notification: Performance of matching and sorting (n=47): time 0.001589/0.569, allocations: 0.7949 MB / 0.7472 GB, free: 15.21 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.491e-05/0.569, allocations: 59.84 kB / 0.7472 GB, free: 15.14 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005168/0.5696, allocations: 479.1 kB / 0.7477 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 3.402e-05/0.5696, allocations: 41.7 kB / 0.7477 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001836/0.5698, allocations: 268.6 kB / 0.748 GB, free: 14.34 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001117/0.5699, allocations: 157.6 kB / 0.7482 GB, free: 14.19 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001155/0.57, allocations: 82.12 kB / 0.7482 GB, free: 14.1 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001537/0.5702, allocations: 370.8 kB / 0.7486 GB, free: 13.73 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002381/0.5704, allocations: 128.8 kB / 0.7487 GB, free: 13.61 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002859/0.5707, allocations: 185 kB / 0.7489 GB, free: 13.41 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005626/0.5713, allocations: 340.9 kB / 0.7492 GB, free: 13.06 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.5713, allocations: 11.86 kB / 0.7492 GB, free: 13.05 MB / 0.5919 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0008942/0.5722, allocations: 0.4969 MB / 0.7497 GB, free: 12.54 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.71e-05/0.5722, allocations: 4 kB / 0.7497 GB, free: 12.54 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.231e-06/0.5723, allocations: 4 kB / 0.7497 GB, free: 12.53 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002791/0.5725, allocations: 61.8 kB / 0.7498 GB, free: 12.46 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003083/0.5729, allocations: 95.83 kB / 0.7499 GB, free: 12.37 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002241/0.5751, allocations: 2.919 MB / 0.7527 GB, free: 9.164 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002696/0.5754, allocations: 36.33 kB / 0.7527 GB, free: 9.129 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.908e-05/0.5755, allocations: 16 kB / 0.7528 GB, free: 9.113 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002399/0.5757, allocations: 181.6 kB / 0.7529 GB, free: 8.926 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001216/0.5758, allocations: 59.25 kB / 0.753 GB, free: 8.867 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001403/0.5772, allocations: 0.7207 MB / 0.7537 GB, free: 8.137 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.773e-06/0.5773, allocations: 4 kB / 0.7537 GB, free: 8.133 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/0.5773, allocations: 0 / 0.7537 GB, free: 8.133 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.004e-06/0.5773, allocations: 11.92 kB / 0.7537 GB, free: 8.121 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001839/0.5791, allocations: 1.179 MB / 0.7549 GB, free: 6.867 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.701e-06/0.5791, allocations: 4.125 kB / 0.7549 GB, free: 6.863 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002564/0.5794, allocations: 75.89 kB / 0.7549 GB, free: 6.789 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002316/0.5797, allocations: 73.69 kB / 0.755 GB, free: 6.711 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.268e-05/0.5797, allocations: 12 kB / 0.755 GB, free: 6.699 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002184/0.5819, allocations: 2.927 MB / 0.7579 GB, free: 3.492 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.5819, allocations: 0 / 0.7579 GB, free: 3.492 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001194/0.5831, allocations: 0.7726 MB / 0.7586 GB, free: 2.688 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001533/0.5833, allocations: 132.3 kB / 0.7588 GB, free: 2.539 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.397e-05/0.5834, allocations: 20 kB / 0.7588 GB, free: 2.52 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002885/0.5836, allocations: 15.98 kB / 0.7588 GB, free: 2.504 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.135e-05/0.5837, allocations: 35.89 kB / 0.7588 GB, free: 2.469 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.039e-05/0.5838, allocations: 16 kB / 0.7588 GB, free: 2.453 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0004034/0.5842, allocations: 370.8 kB / 0.7592 GB, free: 2.094 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.6e-07/0.5842, allocations: 0 / 0.7592 GB, free: 2.094 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.000683/0.5849, allocations: 191.8 kB / 0.7594 GB, free: 1.906 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (flowResistance.rear.m_flow,flowResistance1.rear.m_flow) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004315/0.5853, allocations: 270.7 kB / 0.7596 GB, free: 1.637 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001029/0.5864, allocations: 0.5963 MB / 0.7602 GB, free: 1.012 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.5864, allocations: 0 / 0.7602 GB, free: 1.012 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0005841/0.587, allocations: 441.6 kB / 0.7606 GB, free: 0.5547 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009384/0.5879, allocations: 187.7 kB / 0.7608 GB, free: 388 kB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001949/0.5899, allocations: 1.126 MB / 0.7619 GB, free: 15.21 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004578/0.5904, allocations: 0.8711 MB / 0.7628 GB, free: 14.31 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0003502/0.5907, allocations: 125.5 kB / 0.7629 GB, free: 14.21 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000148/0.5909, allocations: 67.41 kB / 0.763 GB, free: 14.14 MB / 0.6075 GB Notification: Performance of SimCode: time 3.81e-07/0.5909, allocations: 0 / 0.763 GB, free: 14.14 MB / 0.6075 GB Notification: Performance of Templates: time 0.01787/0.6088, allocations: 10.52 MB / 0.7732 GB, free: 3.723 MB / 0.6075 GB make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.makefile (rm -f ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.sim & ./ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches