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: "" <> buildModelFMU(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006078/0.006078, allocations: 102.7 kB / 15.73 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.00113/0.00113, allocations: 190.1 kB / 16.67 MB, free: 5.953 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.398/1.398, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7141/0.7141, allocations: 91.19 MB / 381.7 MB, free: 7.496 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001782/0.001782, allocations: 79.88 kB / 0.5164 GB, free: 4.605 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3632/0.365, allocations: 67.68 MB / 0.5825 GB, free: 13.64 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.1506/0.5156, allocations: 149.5 MB / 0.7285 GB, free: 7.992 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.005232/0.5209, allocations: 4.635 MB / 0.733 GB, free: 3.344 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005381/0.5214, allocations: 31.81 kB / 0.733 GB, free: 3.312 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0007464/0.5222, allocations: 294.1 kB / 0.7333 GB, free: 3.023 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001364/0.5236, allocations: 0.6641 MB / 0.734 GB, free: 2.355 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001043/0.5247, allocations: 0.4943 MB / 0.7344 GB, free: 1.859 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0008292/0.5255, allocations: 0.98 MB / 0.7354 GB, free: 0.875 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002463/0.5258, allocations: 166.1 kB / 0.7356 GB, free: 0.7031 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008411/0.5266, allocations: 0.5212 MB / 0.7361 GB, free: 184 kB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.3281/0.8547, allocations: 459.3 kB / 0.7365 GB, free: 3.191 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001787/0.8549, allocations: 43.03 kB / 0.7365 GB, free: 3.191 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001928/0.8569, allocations: 0.7587 MB / 0.7373 GB, free: 3.191 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001357/0.857, allocations: 121.7 kB / 0.7374 GB, free: 3.191 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003855/0.8574, allocations: 314.9 kB / 0.7377 GB, free: 3.191 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001625/0.8591, allocations: 0.9732 MB / 0.7387 GB, free: 3.141 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 7.494e-06/0.8591, allocations: 0 / 0.7387 GB, free: 3.141 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.424e-06/0.8591, allocations: 2.047 kB / 0.7387 GB, free: 3.141 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.027e-05/0.8591, allocations: 0 / 0.7387 GB, free: 3.141 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.001764/0.8609, allocations: 0.9635 MB / 0.7396 GB, free: 18.54 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 5.282e-05/0.8609, allocations: 10.72 kB / 0.7396 GB, free: 18.54 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.497e-05/0.861, allocations: 81.33 kB / 0.7397 GB, free: 18.5 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001216/0.8612, allocations: 76.66 kB / 0.7398 GB, free: 18.46 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000966/0.8621, allocations: 0.5391 MB / 0.7403 GB, free: 18.2 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.491e-05/0.8622, allocations: 33.88 kB / 0.7403 GB, free: 18.2 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.457e-05/0.8623, allocations: 45.41 kB / 0.7404 GB, free: 18.2 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009349/0.8632, allocations: 0.5076 MB / 0.7409 GB, free: 18.11 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.624e-05/0.8632, allocations: 0.9062 kB / 0.7409 GB, free: 18.11 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.215e-05/0.8633, allocations: 18.91 kB / 0.7409 GB, free: 18.11 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.98e-05/0.8633, allocations: 10.91 kB / 0.7409 GB, free: 18.11 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009065/0.8642, allocations: 483.7 kB / 0.7413 GB, free: 18.11 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002656/0.8669, allocations: 2.173 MB / 0.7435 GB, free: 16.81 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007723/0.8677, allocations: 361.5 kB / 0.7438 GB, free: 16.79 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003822/0.8681, allocations: 207.8 kB / 0.744 GB, free: 16.78 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00246/0.8705, allocations: 1.997 MB / 0.746 GB, free: 15.16 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.488e-05/0.8706, allocations: 43.08 kB / 0.746 GB, free: 15.12 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=47): time 1.703e-06/0.8706, allocations: 0 / 0.746 GB, free: 15.12 MB / 0.5919 GB Notification: Performance of matching and sorting (n=47): time 0.001469/0.8721, allocations: 0.793 MB / 0.7468 GB, free: 14.84 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.465e-05/0.8721, allocations: 57.41 kB / 0.7468 GB, free: 14.78 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000485/0.8726, allocations: 491 kB / 0.7473 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 3.366e-05/0.8727, allocations: 31.95 kB / 0.7473 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.000186/0.8728, allocations: 265.2 kB / 0.7476 GB, free: 14.52 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001182/0.873, allocations: 164.4 kB / 0.7477 GB, free: 14.41 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001519/0.8731, allocations: 88.28 kB / 0.7478 GB, free: 14.39 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001772/0.8733, allocations: 369.9 kB / 0.7482 GB, free: 14.07 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003174/0.8736, allocations: 130.7 kB / 0.7483 GB, free: 14.07 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002888/0.8739, allocations: 187.3 kB / 0.7485 GB, free: 14.04 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005908/0.8745, allocations: 340.9 kB / 0.7488 GB, free: 13.99 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.8745, allocations: 1.391 kB / 0.7488 GB, free: 13.99 MB / 0.5919 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0008505/0.8754, allocations: 0.4974 MB / 0.7493 GB, free: 13.89 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.32e-05/0.8754, allocations: 5.531 kB / 0.7493 GB, free: 13.89 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.8755, allocations: 1.938 kB / 0.7493 GB, free: 13.89 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003157/0.8758, allocations: 75.77 kB / 0.7494 GB, free: 13.88 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003549/0.8761, allocations: 85.56 kB / 0.7495 GB, free: 13.88 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002185/0.8783, allocations: 2.919 MB / 0.7523 GB, free: 11.18 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002316/0.8786, allocations: 44.14 kB / 0.7523 GB, free: 11.16 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.164e-05/0.8786, allocations: 18.19 kB / 0.7524 GB, free: 11.16 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.0002146/0.8789, allocations: 182.5 kB / 0.7525 GB, free: 11.04 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001161/0.879, allocations: 60 kB / 0.7526 GB, free: 11 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001416/0.8804, allocations: 0.7075 MB / 0.7533 GB, free: 10.86 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.048e-05/0.8804, allocations: 4.312 kB / 0.7533 GB, free: 10.86 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.8804, allocations: 2.25 kB / 0.7533 GB, free: 10.86 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.033e-06/0.8805, allocations: 4 kB / 0.7533 GB, free: 10.86 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001743/0.8822, allocations: 1.186 MB / 0.7545 GB, free: 10.48 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.197e-06/0.8822, allocations: 4.312 kB / 0.7545 GB, free: 10.48 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002325/0.8825, allocations: 75.39 kB / 0.7545 GB, free: 10.48 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001878/0.8827, allocations: 68.98 kB / 0.7546 GB, free: 10.46 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.024e-05/0.8827, allocations: 18.45 kB / 0.7546 GB, free: 10.46 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001793/0.8845, allocations: 2.922 MB / 0.7575 GB, free: 7.762 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.8845, allocations: 4.219 kB / 0.7575 GB, free: 7.762 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001008/0.8855, allocations: 0.7603 MB / 0.7582 GB, free: 7.535 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 9.946e-05/0.8856, allocations: 139.9 kB / 0.7583 GB, free: 7.402 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.699e-05/0.8857, allocations: 12.41 kB / 0.7584 GB, free: 7.402 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002146/0.8859, allocations: 13 kB / 0.7584 GB, free: 7.402 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.402e-05/0.886, allocations: 45.75 kB / 0.7584 GB, free: 7.398 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.728e-05/0.886, allocations: 24.53 kB / 0.7584 GB, free: 7.395 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0003438/0.8864, allocations: 366.5 kB / 0.7588 GB, free: 7.312 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.7e-07/0.8864, allocations: 0 / 0.7588 GB, free: 7.312 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.000626/0.887, allocations: 190.5 kB / 0.759 GB, free: 7.293 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.001563/0.8886, allocations: 1.481 MB / 0.7604 GB, free: 6.512 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0008651/0.8895, allocations: 0.591 MB / 0.761 GB, free: 6.281 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.8895, allocations: 0.8438 kB / 0.761 GB, free: 6.281 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0005045/0.89, allocations: 439 kB / 0.7614 GB, free: 6.059 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000867/0.8909, allocations: 192.5 kB / 0.7616 GB, free: 6.031 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005793/0.8967, allocations: 4.752 MB / 0.7662 GB, free: 4.254 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004172/0.8971, allocations: 0.8715 MB / 0.7671 GB, free: 3.555 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0003251/0.8975, allocations: 122.2 kB / 0.7672 GB, free: 3.535 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002505/0.8977, allocations: 238 kB / 0.7674 GB, free: 3.527 MB / 0.5919 GB Notification: Performance of SimCode: time 6.21e-07/0.8977, allocations: 0 / 0.7674 GB, free: 3.527 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06784/0.9656, allocations: 16.88 MB / 0.7839 GB, free: 1.523 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.94/11.9, allocations: 10.56 kB / 0.7839 GB, free: 1.516 MB / 0.5919 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance_fmu --startTime=0 --stopTime=10 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance.fmu > 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches