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.005136/0.005136, allocations: 102.9 kB / 15.73 MB, free: 6.055 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.001208/0.001208, allocations: 190.1 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.308/1.308, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6843/0.6843, allocations: 91.19 MB / 381.7 MB, free: 7.5 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001512/0.001512, allocations: 83.81 kB / 0.5164 GB, free: 4.621 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2972/0.2987, allocations: 67.69 MB / 0.5825 GB, free: 13.62 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.1536/0.4524, allocations: 149.5 MB / 0.7285 GB, free: 8 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.005796/0.4582, allocations: 4.632 MB / 0.733 GB, free: 3.355 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008025/0.4591, allocations: 27.81 kB / 0.733 GB, free: 3.328 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001046/0.4602, allocations: 294.1 kB / 0.7333 GB, free: 3.039 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.00176/0.462, allocations: 0.6641 MB / 0.734 GB, free: 2.371 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001423/0.4634, allocations: 0.4943 MB / 0.7344 GB, free: 1.875 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001373/0.4648, allocations: 0.9801 MB / 0.7354 GB, free: 0.8906 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003869/0.4652, allocations: 166.1 kB / 0.7356 GB, free: 0.7188 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001072/0.4664, allocations: 0.5289 MB / 0.7361 GB, free: 192 kB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.3143/0.7807, allocations: 450.8 kB / 0.7365 GB, free: 3.145 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001737/0.7809, allocations: 43.12 kB / 0.7365 GB, free: 3.145 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001673/0.7826, allocations: 0.7627 MB / 0.7373 GB, free: 3.145 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001181/0.7827, allocations: 119.5 kB / 0.7374 GB, free: 3.145 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.000361/0.7831, allocations: 317.4 kB / 0.7377 GB, free: 3.145 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001363/0.7845, allocations: 0.9678 MB / 0.7386 GB, free: 3.094 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.65e-06/0.7845, allocations: 6.781 kB / 0.7387 GB, free: 3.094 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.383e-06/0.7845, allocations: 1.203 kB / 0.7387 GB, free: 3.094 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.469e-05/0.7845, allocations: 0.875 kB / 0.7387 GB, free: 3.094 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.001553/0.7861, allocations: 0.9567 MB / 0.7396 GB, free: 18.49 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.164e-05/0.7861, allocations: 10.53 kB / 0.7396 GB, free: 18.49 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.891e-05/0.7862, allocations: 84.3 kB / 0.7397 GB, free: 18.45 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001082/0.7863, allocations: 74.62 kB / 0.7398 GB, free: 18.41 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008951/0.7872, allocations: 0.5433 MB / 0.7403 GB, free: 18.15 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.689e-05/0.7873, allocations: 28.78 kB / 0.7403 GB, free: 18.15 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.215e-05/0.7873, allocations: 45.5 kB / 0.7404 GB, free: 18.15 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007465/0.7881, allocations: 0.5081 MB / 0.7409 GB, free: 18.07 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.562e-05/0.7881, allocations: 2.219 kB / 0.7409 GB, free: 18.07 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.426e-05/0.7882, allocations: 19.78 kB / 0.7409 GB, free: 18.07 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.487e-05/0.7882, allocations: 13.05 kB / 0.7409 GB, free: 18.07 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007485/0.7889, allocations: 483.6 kB / 0.7413 GB, free: 18.06 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00243/0.7914, allocations: 2.17 MB / 0.7435 GB, free: 16.76 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007773/0.7922, allocations: 370 kB / 0.7438 GB, free: 16.73 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003373/0.7925, allocations: 204.2 kB / 0.744 GB, free: 16.73 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00275/0.7953, allocations: 1.991 MB / 0.746 GB, free: 15.11 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.6e-05/0.7953, allocations: 43.81 kB / 0.746 GB, free: 15.07 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=47): time 2.004e-06/0.7953, allocations: 1.969 kB / 0.746 GB, free: 15.07 MB / 0.5919 GB Notification: Performance of matching and sorting (n=47): time 0.001531/0.7969, allocations: 0.7884 MB / 0.7468 GB, free: 14.79 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.345e-05/0.7969, allocations: 58.42 kB / 0.7468 GB, free: 14.73 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004376/0.7974, allocations: 492.5 kB / 0.7473 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 3.456e-05/0.7974, allocations: 40.23 kB / 0.7473 GB, free: 14.58 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001413/0.7975, allocations: 258.8 kB / 0.7476 GB, free: 14.47 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 9.465e-05/0.7977, allocations: 167.4 kB / 0.7477 GB, free: 14.36 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002235/0.7979, allocations: 85.25 kB / 0.7478 GB, free: 14.34 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001628/0.7981, allocations: 369.2 kB / 0.7482 GB, free: 14.03 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002741/0.7984, allocations: 126.6 kB / 0.7483 GB, free: 14.03 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003209/0.7987, allocations: 188.3 kB / 0.7485 GB, free: 13.99 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006576/0.7994, allocations: 345.4 kB / 0.7488 GB, free: 13.94 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.7994, allocations: 1.125 kB / 0.7488 GB, free: 13.94 MB / 0.5919 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.000845/0.8002, allocations: 0.4991 MB / 0.7493 GB, free: 13.85 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.23e-05/0.8003, allocations: 6.781 kB / 0.7493 GB, free: 13.85 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.8003, allocations: 1.719 kB / 0.7493 GB, free: 13.85 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002774/0.8005, allocations: 68.69 kB / 0.7494 GB, free: 13.83 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003246/0.8009, allocations: 87.84 kB / 0.7494 GB, free: 13.83 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002245/0.8031, allocations: 2.92 MB / 0.7523 GB, free: 11.13 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002674/0.8034, allocations: 40.81 kB / 0.7523 GB, free: 11.11 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.753e-05/0.8035, allocations: 24.84 kB / 0.7524 GB, free: 11.11 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.0002411/0.8037, allocations: 176.4 kB / 0.7525 GB, free: 10.99 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001127/0.8038, allocations: 60.06 kB / 0.7526 GB, free: 10.96 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00123/0.8051, allocations: 0.7108 MB / 0.7533 GB, free: 10.81 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.003e-06/0.8051, allocations: 8.641 kB / 0.7533 GB, free: 10.81 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.429e-06/0.8051, allocations: 1.688 kB / 0.7533 GB, free: 10.81 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.8051, allocations: 3.812 kB / 0.7533 GB, free: 10.81 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001601/0.8067, allocations: 1.184 MB / 0.7545 GB, free: 10.43 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.8067, allocations: 2.281 kB / 0.7545 GB, free: 10.43 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002227/0.807, allocations: 78.27 kB / 0.7545 GB, free: 10.43 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001885/0.8072, allocations: 61.98 kB / 0.7546 GB, free: 10.41 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.342e-05/0.8072, allocations: 22.05 kB / 0.7546 GB, free: 10.41 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001833/0.8091, allocations: 2.923 MB / 0.7575 GB, free: 7.715 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.8091, allocations: 3.406 kB / 0.7575 GB, free: 7.715 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001021/0.8101, allocations: 0.7681 MB / 0.7582 GB, free: 7.488 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001244/0.8102, allocations: 140.1 kB / 0.7583 GB, free: 7.355 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.883e-05/0.8103, allocations: 11.28 kB / 0.7584 GB, free: 7.355 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001975/0.8105, allocations: 8.625 kB / 0.7584 GB, free: 7.355 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.905e-05/0.8106, allocations: 47.84 kB / 0.7584 GB, free: 7.352 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.986e-05/0.8106, allocations: 18.17 kB / 0.7584 GB, free: 7.352 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0003521/0.811, allocations: 367.4 kB / 0.7588 GB, free: 7.27 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.41e-07/0.811, allocations: 0.875 kB / 0.7588 GB, free: 7.27 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.00064/0.8116, allocations: 194.1 kB / 0.759 GB, free: 7.25 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.001519/0.8132, allocations: 1.478 MB / 0.7604 GB, free: 6.469 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0008894/0.8141, allocations: 0.5844 MB / 0.761 GB, free: 6.238 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.8141, allocations: 3.281 kB / 0.761 GB, free: 6.238 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0004987/0.8146, allocations: 443.3 kB / 0.7614 GB, free: 6.016 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008833/0.8155, allocations: 188.7 kB / 0.7616 GB, free: 5.988 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005592/0.8211, allocations: 4.757 MB / 0.7662 GB, free: 4.211 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003727/0.8215, allocations: 0.8702 MB / 0.7671 GB, free: 3.512 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0003379/0.8218, allocations: 119.5 kB / 0.7672 GB, free: 3.492 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002391/0.8221, allocations: 234.3 kB / 0.7674 GB, free: 3.484 MB / 0.5919 GB Notification: Performance of SimCode: time 5.91e-07/0.8221, allocations: 0 / 0.7674 GB, free: 3.484 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04376/0.8658, allocations: 16.89 MB / 0.7839 GB, free: 1.465 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.52/11.38, allocations: 14.69 kB / 0.7839 GB, free: 1.457 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