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.004776/0.004776, allocations: 98.25 kB / 15.73 MB, free: 6.445 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.001172/0.001172, allocations: 196.4 kB / 16.68 MB, free: 6.352 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.336/1.336, 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.646/0.646, allocations: 91.18 MB / 381.7 MB, free: 9.328 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001413/0.001413, allocations: 79.89 kB / 0.5168 GB, free: 8.996 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1282/0.1297, allocations: 67.68 MB / 0.5829 GB, free: 5.234 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.4439/0.5736, allocations: 149.5 MB / 0.7289 GB, free: 2.586 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.005647/0.5793, allocations: 4.642 MB / 0.7335 GB, free: 13.93 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006306/0.5799, allocations: 27.81 kB / 0.7335 GB, free: 13.91 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0009144/0.5809, allocations: 302 kB / 0.7338 GB, free: 13.61 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001695/0.5826, allocations: 0.668 MB / 0.7344 GB, free: 12.94 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001261/0.5839, allocations: 498.2 kB / 0.7349 GB, free: 12.45 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0009504/0.5849, allocations: 0.9878 MB / 0.7359 GB, free: 11.46 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002588/0.5852, allocations: 163 kB / 0.736 GB, free: 11.3 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008323/0.586, allocations: 0.5095 MB / 0.7365 GB, free: 10.79 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005098/0.5865, allocations: 462.2 kB / 0.737 GB, free: 10.34 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 6.489e-05/0.5866, allocations: 44 kB / 0.737 GB, free: 10.29 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001429/0.588, allocations: 0.7642 MB / 0.7378 GB, free: 9.527 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001189/0.5882, allocations: 119.4 kB / 0.7379 GB, free: 9.41 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0002531/0.5884, allocations: 314.2 kB / 0.7382 GB, free: 9.102 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001286/0.5897, allocations: 0.9695 MB / 0.7391 GB, free: 8.133 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.5897, allocations: 0 / 0.7391 GB, free: 8.133 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.223e-06/0.5897, allocations: 0 / 0.7391 GB, free: 8.133 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 8.717e-06/0.5897, allocations: 0 / 0.7391 GB, free: 8.133 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.00149/0.5912, allocations: 0.996 MB / 0.7401 GB, free: 7.082 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.637e-05/0.5913, allocations: 12.03 kB / 0.7401 GB, free: 7.07 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001246/0.5914, allocations: 72.47 kB / 0.7402 GB, free: 7 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008371/0.5923, allocations: 0.5486 MB / 0.7407 GB, free: 6.414 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.732e-05/0.5923, allocations: 33.38 kB / 0.7407 GB, free: 6.379 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.458e-05/0.5924, allocations: 40.38 kB / 0.7408 GB, free: 6.34 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008005/0.5932, allocations: 0.5126 MB / 0.7413 GB, free: 5.805 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.352e-05/0.5932, allocations: 0 / 0.7413 GB, free: 5.805 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.685e-05/0.5932, allocations: 20 kB / 0.7413 GB, free: 5.785 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.412e-05/0.5933, allocations: 12 kB / 0.7413 GB, free: 5.773 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007361/0.594, allocations: 479.7 kB / 0.7418 GB, free: 5.305 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002464/0.5965, allocations: 2.177 MB / 0.7439 GB, free: 2.941 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007715/0.5973, allocations: 372.4 kB / 0.7443 GB, free: 2.57 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00033/0.5976, allocations: 202 kB / 0.7444 GB, free: 2.367 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002423/0.6, allocations: 1.998 MB / 0.7464 GB, free: 88 kB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.545e-05/0.6001, allocations: 39 kB / 0.7464 GB, free: 40 kB / 0.5762 GB Notification: Performance of pre-optimization done (n=47): time 4.248e-06/0.6001, allocations: 3.984 kB / 0.7464 GB, free: 36 kB / 0.5762 GB Notification: Performance of matching and sorting (n=47): time 0.001613/0.6017, allocations: 0.7915 MB / 0.7472 GB, free: 15.19 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.828e-05/0.6018, allocations: 63.83 kB / 0.7473 GB, free: 15.11 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000533/0.6023, allocations: 483.1 kB / 0.7477 GB, free: 14.63 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 4.067e-05/0.6024, allocations: 33.7 kB / 0.7478 GB, free: 14.59 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001897/0.6026, allocations: 276.8 kB / 0.748 GB, free: 14.32 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001107/0.6027, allocations: 170.4 kB / 0.7482 GB, free: 14.15 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001282/0.6028, allocations: 86.11 kB / 0.7483 GB, free: 14.06 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001434/0.603, allocations: 366.8 kB / 0.7486 GB, free: 13.7 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002598/0.6032, allocations: 128.8 kB / 0.7487 GB, free: 13.57 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002989/0.6035, allocations: 189 kB / 0.7489 GB, free: 13.37 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005891/0.6041, allocations: 336.9 kB / 0.7493 GB, free: 13.03 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.105e-06/0.6041, allocations: 7.938 kB / 0.7493 GB, free: 13.02 MB / 0.5919 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0009195/0.6051, allocations: 0.4973 MB / 0.7497 GB, free: 12.51 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.904e-05/0.6051, allocations: 4 kB / 0.7497 GB, free: 12.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.583e-06/0.6051, allocations: 4 kB / 0.7498 GB, free: 12.5 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002872/0.6054, allocations: 65.8 kB / 0.7498 GB, free: 12.43 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002952/0.6057, allocations: 91.83 kB / 0.7499 GB, free: 12.34 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002169/0.6079, allocations: 2.917 MB / 0.7528 GB, free: 9.137 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000244/0.6082, allocations: 48.53 kB / 0.7528 GB, free: 9.09 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.077e-05/0.6082, allocations: 19.98 kB / 0.7528 GB, free: 9.07 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.000223/0.6084, allocations: 173.7 kB / 0.753 GB, free: 8.891 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.731e-05/0.6085, allocations: 63.69 kB / 0.753 GB, free: 8.828 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001248/0.6098, allocations: 0.7186 MB / 0.7537 GB, free: 8.098 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.6098, allocations: 4 kB / 0.7537 GB, free: 8.094 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.337e-06/0.6098, allocations: 4 kB / 0.7538 GB, free: 8.09 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.691e-06/0.6098, allocations: 0 / 0.7538 GB, free: 8.09 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00176/0.6116, allocations: 1.191 MB / 0.7549 GB, free: 6.824 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.111e-05/0.6116, allocations: 0 / 0.7549 GB, free: 6.824 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002486/0.6119, allocations: 71.91 kB / 0.755 GB, free: 6.754 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002098/0.6121, allocations: 69.66 kB / 0.7551 GB, free: 6.68 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.138e-05/0.6121, allocations: 15.98 kB / 0.7551 GB, free: 6.664 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002136/0.6143, allocations: 2.935 MB / 0.7579 GB, free: 3.449 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.6143, allocations: 0 / 0.7579 GB, free: 3.449 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001203/0.6155, allocations: 0.7691 MB / 0.7587 GB, free: 2.648 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001254/0.6156, allocations: 148.6 kB / 0.7588 GB, free: 2.484 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.904e-05/0.6157, allocations: 15.95 kB / 0.7588 GB, free: 2.469 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002185/0.6159, allocations: 8 kB / 0.7588 GB, free: 2.461 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.449e-05/0.616, allocations: 35.89 kB / 0.7589 GB, free: 2.426 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.229e-05/0.6161, allocations: 23.92 kB / 0.7589 GB, free: 2.402 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0004016/0.6165, allocations: 366.8 kB / 0.7593 GB, free: 2.047 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1e-07/0.6165, allocations: 0 / 0.7593 GB, free: 2.047 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0006538/0.6172, allocations: 195.6 kB / 0.7594 GB, free: 1.855 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.0003993/0.6176, allocations: 274.5 kB / 0.7597 GB, free: 1.582 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001012/0.6186, allocations: 0.5847 MB / 0.7603 GB, free: 0.9688 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.726e-06/0.6186, allocations: 0 / 0.7603 GB, free: 0.9688 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0005771/0.6192, allocations: 449.6 kB / 0.7607 GB, free: 0.5039 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009218/0.6201, allocations: 191.1 kB / 0.7609 GB, free: 340 kB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001906/0.622, allocations: 1.144 MB / 0.762 GB, free: 15.14 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004403/0.6225, allocations: 0.8711 MB / 0.7629 GB, free: 14.25 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.000342/0.6228, allocations: 122.5 kB / 0.763 GB, free: 14.14 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001362/0.623, allocations: 59.42 kB / 0.763 GB, free: 14.08 MB / 0.6075 GB Notification: Performance of SimCode: time 8.61e-07/0.623, allocations: 3.938 kB / 0.763 GB, free: 14.08 MB / 0.6075 GB Notification: Performance of Templates: time 0.01805/0.6411, allocations: 10.54 MB / 0.7733 GB, free: 3.641 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