Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007917/0.0007917, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0007583/0.0007583, allocations: 170.3 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9862/0.9862, allocations: 177.1 MB / 202.8 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo): time 0.7366/0.7366, allocations: 116 MB / 375.2 MB, free: 4.18 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.3.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.322e-06/1.322e-06, allocations: 0 / 0.5532 GB, free: 13.34 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.171e-05/2.303e-05, allocations: 6.281 kB / 0.5532 GB, free: 13.33 MB / 490.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.4309/0.431, allocations: 129.6 MB / 0.6798 GB, free: 6.672 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.004631/0.4356, allocations: 4.306 MB / 0.684 GB, free: 6.332 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008202/0.4364, allocations: 41.47 kB / 0.684 GB, free: 6.309 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.0008138/0.4372, allocations: 278.6 kB / 0.6843 GB, free: 6.223 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.001939/0.4392, allocations: 0.7469 MB / 0.685 GB, free: 6.117 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.001248/0.4404, allocations: 0.5219 MB / 0.6855 GB, free: 6.07 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.001283/0.4417, allocations: 1.103 MB / 0.6866 GB, free: 5.812 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002192/0.4419, allocations: 93.91 kB / 0.6867 GB, free: 5.797 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001416/0.4433, allocations: 0.7121 MB / 0.6874 GB, free: 5.691 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005594/0.4439, allocations: 433.5 kB / 0.6878 GB, free: 5.641 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 7.579e-05/0.444, allocations: 43.5 kB / 0.6878 GB, free: 5.641 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001465/0.4454, allocations: 0.6601 MB / 0.6885 GB, free: 5.578 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 0.0001066/0.4455, allocations: 122.2 kB / 0.6886 GB, free: 5.547 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 0.0002498/0.4458, allocations: 223.1 kB / 0.6888 GB, free: 5.516 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.001494/0.4473, allocations: 0.9786 MB / 0.6898 GB, free: 5.395 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.4473, allocations: 3.188 kB / 0.6898 GB, free: 5.395 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.773e-06/0.4473, allocations: 0 / 0.6898 GB, free: 5.395 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 2.022e-05/0.4473, allocations: 1.125 kB / 0.6898 GB, free: 5.395 MB / 0.5573 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.001444/0.4488, allocations: 0.9245 MB / 0.6907 GB, free: 4.84 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.27e-05/0.4488, allocations: 9.406 kB / 0.6907 GB, free: 4.84 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.073e-05/0.4489, allocations: 80.89 kB / 0.6908 GB, free: 4.801 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003018/0.4492, allocations: 99.06 kB / 0.6909 GB, free: 4.762 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008839/0.4501, allocations: 490 kB / 0.6913 GB, free: 4.52 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.577e-05/0.4501, allocations: 32.5 kB / 0.6914 GB, free: 4.516 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.895e-05/0.4501, allocations: 45.09 kB / 0.6914 GB, free: 4.516 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000549/0.4507, allocations: 0.5058 MB / 0.6919 GB, free: 4.43 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.056e-05/0.4507, allocations: 1.875 kB / 0.6919 GB, free: 4.43 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.334e-05/0.4507, allocations: 24.16 kB / 0.6919 GB, free: 4.426 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.003e-05/0.4507, allocations: 12.98 kB / 0.6919 GB, free: 4.426 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005325/0.4513, allocations: 495.8 kB / 0.6924 GB, free: 4.41 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002008/0.4533, allocations: 1.541 MB / 0.6939 GB, free: 3.742 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006173/0.4539, allocations: 333.7 kB / 0.6942 GB, free: 3.707 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002245/0.4541, allocations: 182.8 kB / 0.6944 GB, free: 3.699 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001321/0.4554, allocations: 0.8506 MB / 0.6952 GB, free: 3.344 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.643e-05/0.4554, allocations: 38.81 kB / 0.6953 GB, free: 3.301 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=47): time 2.605e-06/0.4554, allocations: 0 / 0.6953 GB, free: 3.301 MB / 0.5573 GB Notification: Performance of matching and sorting (n=47): time 0.001221/0.4567, allocations: 0.639 MB / 0.6959 GB, free: 3.035 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.317e-05/0.4567, allocations: 56.03 kB / 0.6959 GB, free: 2.973 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003932/0.4571, allocations: 493 kB / 0.6964 GB, free: 2.746 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 2.183e-05/0.4571, allocations: 35.08 kB / 0.6964 GB, free: 2.707 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001108/0.4572, allocations: 270 kB / 0.6967 GB, free: 2.488 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 7.256e-05/0.4573, allocations: 179 kB / 0.6969 GB, free: 2.348 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.271e-05/0.4574, allocations: 80.08 kB / 0.697 GB, free: 2.301 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 7.592e-05/0.4575, allocations: 365.2 kB / 0.6973 GB, free: 1.965 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001747/0.4576, allocations: 130.1 kB / 0.6974 GB, free: 1.918 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000179/0.4578, allocations: 194.9 kB / 0.6976 GB, free: 1.816 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000374/0.4582, allocations: 339 kB / 0.6979 GB, free: 1.633 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.4582, allocations: 1.656 kB / 0.6979 GB, free: 1.633 MB / 0.5573 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0007522/0.4589, allocations: 0.5004 MB / 0.6984 GB, free: 1.395 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.934e-05/0.459, allocations: 2.906 kB / 0.6984 GB, free: 1.395 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.593e-06/0.459, allocations: 2.531 kB / 0.6984 GB, free: 1.395 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002189/0.4592, allocations: 62.5 kB / 0.6985 GB, free: 1.367 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001815/0.4594, allocations: 89.42 kB / 0.6986 GB, free: 1.355 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001443/0.4608, allocations: 2.707 MB / 0.7012 GB, free: 14.71 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003764/0.4612, allocations: 42.39 kB / 0.7013 GB, free: 14.68 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.907e-05/0.4612, allocations: 19.31 kB / 0.7013 GB, free: 14.67 MB / 0.573 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.0003143/0.4615, allocations: 171.3 kB / 0.7014 GB, free: 14.52 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.946e-05/0.4616, allocations: 74.06 kB / 0.7015 GB, free: 14.48 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008036/0.4624, allocations: 0.6802 MB / 0.7022 GB, free: 14.14 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.4624, allocations: 4.812 kB / 0.7022 GB, free: 14.14 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.277e-06/0.4624, allocations: 0 / 0.7022 GB, free: 14.14 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.4624, allocations: 5.812 kB / 0.7022 GB, free: 14.14 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001189/0.4636, allocations: 1.04 MB / 0.7032 GB, free: 13.52 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.277e-06/0.4636, allocations: 2.656 kB / 0.7032 GB, free: 13.52 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001316/0.4638, allocations: 67.34 kB / 0.7033 GB, free: 13.51 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001437/0.4639, allocations: 67.45 kB / 0.7033 GB, free: 13.48 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.503e-05/0.4639, allocations: 19.77 kB / 0.7034 GB, free: 13.47 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001451/0.4654, allocations: 2.696 MB / 0.706 GB, free: 10.83 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.4654, allocations: 2.188 kB / 0.706 GB, free: 10.83 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007657/0.4661, allocations: 0.7467 MB / 0.7067 GB, free: 10.39 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001603/0.4663, allocations: 103.9 kB / 0.7068 GB, free: 10.33 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.938e-05/0.4664, allocations: 17.44 kB / 0.7068 GB, free: 10.32 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001621/0.4665, allocations: 13.41 kB / 0.7068 GB, free: 10.31 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.494e-05/0.4666, allocations: 36.83 kB / 0.7069 GB, free: 10.3 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.942e-05/0.4666, allocations: 17.38 kB / 0.7069 GB, free: 10.3 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0002975/0.4669, allocations: 371.3 kB / 0.7072 GB, free: 10.13 MB / 0.573 GB Notification: Performance of sort global known variables: time 6e-08/0.4669, allocations: 3.938 kB / 0.7073 GB, free: 10.13 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.0006461/0.4676, allocations: 193.7 kB / 0.7074 GB, free: 10.09 MB / 0.573 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 (39): * Single equations (assignments): 37 * 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.001193/0.4687, allocations: 1.427 MB / 0.7088 GB, free: 9.082 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.0007056/0.4695, allocations: 0.5639 MB / 0.7094 GB, free: 8.738 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.4695, allocations: 4 kB / 0.7094 GB, free: 8.734 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.000329/0.4698, allocations: 408.3 kB / 0.7098 GB, free: 8.453 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000854/0.4706, allocations: 284.5 kB / 0.71 GB, free: 8.348 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005146/0.4758, allocations: 4.754 MB / 0.7147 GB, free: 5.254 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001772/0.476, allocations: 277.2 kB / 0.715 GB, free: 5.078 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.0003459/0.4763, allocations: 120.4 kB / 0.7151 GB, free: 5.023 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002116/0.4765, allocations: 231.4 kB / 0.7153 GB, free: 4.84 MB / 0.573 GB Notification: Performance of SimCode: time 1.333e-06/0.4765, allocations: 0 / 0.7153 GB, free: 4.84 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03661/0.5131, allocations: 19.79 MB / 0.7346 GB, free: 10.7 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.091/8.604, allocations: 2.969 kB / 0.7346 GB, free: 10.7 MB / 0.5886 GB " [Timeout remaining time 651] (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance_fmu --startTime=0 --stopTime=10 --stepSize=0.01 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance.fmu > ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_dev_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_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.439752751030028]