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.007039/0.007039, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.001563/0.001563, allocations: 196.9 kB / 16.67 MB, free: 5.973 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.33/1.33, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6596/0.6596, allocations: 91.19 MB / 381.7 MB, free: 9.348 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001495/0.001495, allocations: 75.88 kB / 0.5164 GB, free: 9.527 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1293/0.1309, allocations: 67.69 MB / 0.5825 GB, free: 5.758 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.4426/0.5735, allocations: 149.5 MB / 0.7285 GB, free: 2.828 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.005055/0.5786, allocations: 4.641 MB / 0.733 GB, free: 14.18 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004272/0.579, allocations: 27.81 kB / 0.733 GB, free: 14.15 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0007287/0.5798, allocations: 294.1 kB / 0.7333 GB, free: 13.86 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001391/0.5812, allocations: 0.6797 MB / 0.734 GB, free: 13.18 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001029/0.5823, allocations: 0.4982 MB / 0.7345 GB, free: 12.68 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0009085/0.5832, allocations: 0.98 MB / 0.7354 GB, free: 11.69 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002565/0.5834, allocations: 159.5 kB / 0.7356 GB, free: 11.54 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009057/0.5844, allocations: 0.5329 MB / 0.7361 GB, free: 11 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005045/0.5849, allocations: 450.2 kB / 0.7365 GB, free: 10.56 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 6.179e-05/0.585, allocations: 44 kB / 0.7366 GB, free: 10.52 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001459/0.5864, allocations: 0.772 MB / 0.7373 GB, free: 9.746 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001128/0.5865, allocations: 119.4 kB / 0.7374 GB, free: 9.629 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0002617/0.5868, allocations: 314.2 kB / 0.7377 GB, free: 9.32 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001326/0.5881, allocations: 0.9686 MB / 0.7387 GB, free: 8.352 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.5882, allocations: 0 / 0.7387 GB, free: 8.352 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.353e-06/0.5882, allocations: 4 kB / 0.7387 GB, free: 8.348 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.21e-05/0.5882, allocations: 4 kB / 0.7387 GB, free: 8.344 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.001469/0.5897, allocations: 0.9882 MB / 0.7397 GB, free: 7.301 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.96e-05/0.5897, allocations: 8.031 kB / 0.7397 GB, free: 7.293 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.314e-05/0.5898, allocations: 78.72 kB / 0.7397 GB, free: 7.207 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001139/0.5899, allocations: 76.47 kB / 0.7398 GB, free: 7.133 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008374/0.5908, allocations: 0.5564 MB / 0.7404 GB, free: 6.539 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.68e-05/0.5908, allocations: 37.31 kB / 0.7404 GB, free: 6.5 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.736e-05/0.5909, allocations: 44.56 kB / 0.7404 GB, free: 6.457 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007834/0.5917, allocations: 0.5123 MB / 0.7409 GB, free: 5.922 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.601e-05/0.5917, allocations: 0 / 0.7409 GB, free: 5.922 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.632e-05/0.5917, allocations: 16 kB / 0.741 GB, free: 5.906 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.071e-05/0.5917, allocations: 12 kB / 0.741 GB, free: 5.895 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006958/0.5924, allocations: 479.7 kB / 0.7414 GB, free: 5.426 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002315/0.5948, allocations: 2.177 MB / 0.7435 GB, free: 3.062 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007056/0.5955, allocations: 369 kB / 0.7439 GB, free: 2.695 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003029/0.5958, allocations: 202.1 kB / 0.7441 GB, free: 2.492 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002231/0.5981, allocations: 1.998 MB / 0.746 GB, free: 216 kB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.512e-05/0.5981, allocations: 44.12 kB / 0.7461 GB, free: 164 kB / 0.5762 GB Notification: Performance of pre-optimization done (n=47): time 1.714e-06/0.5981, allocations: 0 / 0.7461 GB, free: 164 kB / 0.5762 GB Notification: Performance of matching and sorting (n=47): time 0.001536/0.5996, allocations: 0.7953 MB / 0.7469 GB, free: 15.31 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.778e-05/0.5997, allocations: 63.83 kB / 0.7469 GB, free: 15.24 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005167/0.6002, allocations: 479.1 kB / 0.7474 GB, free: 14.76 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 3.308e-05/0.6003, allocations: 37.69 kB / 0.7474 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001884/0.6005, allocations: 272.9 kB / 0.7477 GB, free: 14.45 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001122/0.6006, allocations: 170.5 kB / 0.7478 GB, free: 14.28 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001215/0.6007, allocations: 82.12 kB / 0.7479 GB, free: 14.19 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001307/0.6008, allocations: 374.8 kB / 0.7483 GB, free: 13.82 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002588/0.6011, allocations: 124.8 kB / 0.7484 GB, free: 13.7 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002917/0.6014, allocations: 185 kB / 0.7486 GB, free: 13.5 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000559/0.602, allocations: 340.9 kB / 0.7489 GB, free: 13.15 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.602, allocations: 0 / 0.7489 GB, free: 13.15 MB / 0.5919 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0008672/0.6029, allocations: 0.5011 MB / 0.7494 GB, free: 12.64 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.724e-05/0.6029, allocations: 8.125 kB / 0.7494 GB, free: 12.63 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.195e-06/0.6029, allocations: 4 kB / 0.7494 GB, free: 12.62 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002905/0.6032, allocations: 65.61 kB / 0.7495 GB, free: 12.55 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003005/0.6035, allocations: 88.77 kB / 0.7495 GB, free: 12.47 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002156/0.6057, allocations: 2.919 MB / 0.7524 GB, free: 9.262 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002697/0.606, allocations: 51.66 kB / 0.7524 GB, free: 9.211 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.565e-05/0.606, allocations: 19.98 kB / 0.7525 GB, free: 9.191 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.0001968/0.6062, allocations: 181.8 kB / 0.7526 GB, free: 9.004 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.579e-05/0.6063, allocations: 59.62 kB / 0.7527 GB, free: 8.945 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001219/0.6075, allocations: 0.7165 MB / 0.7534 GB, free: 8.219 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.073e-06/0.6076, allocations: 8 kB / 0.7534 GB, free: 8.211 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.379e-06/0.6076, allocations: 3.938 kB / 0.7534 GB, free: 8.207 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.6076, allocations: 3.938 kB / 0.7534 GB, free: 8.203 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001774/0.6094, allocations: 1.191 MB / 0.7546 GB, free: 6.938 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.29e-06/0.6094, allocations: 4 kB / 0.7546 GB, free: 6.934 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002485/0.6096, allocations: 79.83 kB / 0.7546 GB, free: 6.855 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002268/0.6099, allocations: 61.78 kB / 0.7547 GB, free: 6.789 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.304e-05/0.6099, allocations: 23.98 kB / 0.7547 GB, free: 6.766 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001941/0.6119, allocations: 2.919 MB / 0.7576 GB, free: 3.566 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.6119, allocations: 4.125 kB / 0.7576 GB, free: 3.562 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001118/0.613, allocations: 0.7613 MB / 0.7583 GB, free: 2.77 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001379/0.6131, allocations: 148.6 kB / 0.7585 GB, free: 2.605 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.99e-05/0.6132, allocations: 19.89 kB / 0.7585 GB, free: 2.586 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002195/0.6135, allocations: 8 kB / 0.7585 GB, free: 2.578 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.35e-05/0.6135, allocations: 47.81 kB / 0.7585 GB, free: 2.531 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.89e-05/0.6136, allocations: 16 kB / 0.7586 GB, free: 2.516 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0003746/0.614, allocations: 370.9 kB / 0.7589 GB, free: 2.156 MB / 0.5919 GB Notification: Performance of sort global known variables: time 4.21e-07/0.614, allocations: 0 / 0.7589 GB, free: 2.156 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.000617/0.6146, allocations: 191.7 kB / 0.7591 GB, free: 1.969 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.001653/0.6162, allocations: 1.476 MB / 0.7605 GB, free: 460 kB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001013/0.6173, allocations: 0.5907 MB / 0.7611 GB, free: 15.83 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.6173, allocations: 3.938 kB / 0.7611 GB, free: 15.82 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0005439/0.6178, allocations: 437.1 kB / 0.7615 GB, free: 15.37 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009378/0.6188, allocations: 180 kB / 0.7617 GB, free: 15.2 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006165/0.625, allocations: 4.764 MB / 0.7664 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004172/0.6254, allocations: 0.8711 MB / 0.7672 GB, free: 9.402 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0003716/0.6258, allocations: 129.2 kB / 0.7673 GB, free: 9.289 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002843/0.6261, allocations: 235.4 kB / 0.7676 GB, free: 9.059 MB / 0.6075 GB Notification: Performance of SimCode: time 9.12e-07/0.6261, allocations: 0 / 0.7676 GB, free: 9.059 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04076/0.6669, allocations: 16.63 MB / 0.7838 GB, free: 8.703 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.5/12.17, allocations: 14.52 kB / 0.7838 GB, free: 8.691 MB / 0.6231 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 & python3 -m fmpy simulate --output-file ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_res.csv --start-time 0 --stop-time 10 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 ThermofluidStream_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance.fmu > ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_res.csv","/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