Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.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.0008262/0.0008262, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 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.000822/0.000822, allocations: 170 kB / 23.95 MB, free: 0.6133 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.8901/0.8901, allocations: 177.1 MB / 204.3 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2294/0.2294, allocations: 34.25 MB / 294.9 MB, free: 0.7148 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/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(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_LinearFluid_LinearColdWater",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_LinearFluid_LinearColdWater",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.923e-06/1.923e-06, allocations: 0 / 442.2 MB, free: 1.656 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.211e-05/2.404e-05, allocations: 5.375 kB / 442.2 MB, free: 1.652 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater): time 0.174/0.174, allocations: 18.57 MB / 460.8 MB, free: 32.94 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.003635/0.1776, allocations: 3.987 MB / 464.8 MB, free: 30.28 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004339/0.1781, allocations: 29.44 kB / 464.8 MB, free: 30.26 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006298/0.1787, allocations: 304.8 kB / 465.1 MB, free: 30.1 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001289/0.18, allocations: 0.909 MB / 466 MB, free: 29.57 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001494/0.1815, allocations: 0.9424 MB / 466.9 MB, free: 29.1 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.001252/0.1827, allocations: 1.83 MB / 468.8 MB, free: 28.27 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004157/0.1832, allocations: 395.7 kB / 469.1 MB, free: 28.1 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001197/0.1844, allocations: 1.185 MB / 470.3 MB, free: 27.59 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006561/0.185, allocations: 0.6197 MB / 471 MB, free: 27.39 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 8.77e-05/0.1851, allocations: 58.88 kB / 471 MB, free: 27.39 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005892/0.1857, allocations: 283.5 kB / 471.3 MB, free: 27.32 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001852/0.1859, allocations: 279 kB / 471.6 MB, free: 27.2 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002011/0.1861, allocations: 276 kB / 471.8 MB, free: 27.1 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009206/0.187, allocations: 1.12 MB / 472.9 MB, free: 26.71 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.187, allocations: 0 / 472.9 MB, free: 26.71 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.963e-06/0.187, allocations: 0 / 472.9 MB, free: 26.71 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.307e-06/0.187, allocations: 0 / 472.9 MB, free: 26.71 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.001348/0.1884, allocations: 0.9869 MB / 473.9 MB, free: 26.07 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.21e-05/0.1884, allocations: 14 kB / 473.9 MB, free: 26.07 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.937e-05/0.1885, allocations: 96.48 kB / 474 MB, free: 25.99 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000221/0.1887, allocations: 92.7 kB / 474.1 MB, free: 25.95 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005633/0.1893, allocations: 475.8 kB / 474.6 MB, free: 25.65 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.969e-05/0.1894, allocations: 156.2 kB / 474.8 MB, free: 25.5 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.114e-05/0.1894, allocations: 50.81 kB / 474.8 MB, free: 25.49 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007625/0.1902, allocations: 1.076 MB / 475.9 MB, free: 24.72 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.768e-05/0.1902, allocations: 0 / 475.9 MB, free: 24.72 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.019e-05/0.1902, allocations: 30.52 kB / 475.9 MB, free: 24.7 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.561e-05/0.1903, allocations: 33.88 kB / 475.9 MB, free: 24.7 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000593/0.1909, allocations: 0.647 MB / 476.6 MB, free: 24.47 MB / 410.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00235/0.1932, allocations: 3.406 MB / 480 MB, free: 21.94 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005107/0.1937, allocations: 412.7 kB / 480.4 MB, free: 21.77 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001779/0.1939, allocations: 190.8 kB / 480.6 MB, free: 21.69 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001802/0.1941, allocations: 45.17 kB / 480.6 MB, free: 21.69 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.144e-05/0.1941, allocations: 46.05 kB / 480.7 MB, free: 21.64 MB / 410.7 MB Notification: Performance of pre-optimization done (n=40): time 1.643e-06/0.1941, allocations: 0 / 480.7 MB, free: 21.64 MB / 410.7 MB Notification: Performance of matching and sorting (n=45): time 0.001856/0.196, allocations: 1.461 MB / 482.1 MB, free: 20.9 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.725e-05/0.196, allocations: 139.1 kB / 482.3 MB, free: 20.74 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003752/0.1964, allocations: 0.5822 MB / 482.8 MB, free: 20.48 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.625e-05/0.1964, allocations: 39.23 kB / 482.9 MB, free: 20.44 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001279/0.1965, allocations: 359.2 kB / 483.2 MB, free: 20.14 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.316e-05/0.1966, allocations: 167.9 kB / 483.4 MB, free: 20.01 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001143/0.1967, allocations: 143.9 kB / 483.5 MB, free: 19.93 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.747e-05/0.1968, allocations: 377.6 kB / 483.9 MB, free: 19.59 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002162/0.197, allocations: 220.4 kB / 484.1 MB, free: 19.52 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002929/0.1973, allocations: 0.5937 MB / 484.7 MB, free: 18.96 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005378/0.1978, allocations: 0.7845 MB / 485.5 MB, free: 18.36 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.1978, allocations: 3.938 kB / 485.5 MB, free: 18.36 MB / 410.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.0009499/0.1988, allocations: 0.9364 MB / 486.4 MB, free: 17.97 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.823e-05/0.1988, allocations: 11.25 kB / 486.5 MB, free: 17.97 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.878e-06/0.1988, allocations: 9.406 kB / 486.5 MB, free: 17.97 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005764/0.1994, allocations: 259.3 kB / 486.7 MB, free: 17.91 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002145/0.1996, allocations: 130.2 kB / 486.8 MB, free: 17.89 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000495/0.2001, allocations: 0.86 MB / 487.7 MB, free: 17.24 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002486/0.2003, allocations: 30.56 kB / 487.7 MB, free: 17.22 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.695e-05/0.2004, allocations: 36.77 kB / 487.8 MB, free: 17.22 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 4 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,14)} Notification: Performance of prepare postOptimizeDAE: time 0.000192/0.2006, allocations: 249 kB / 488 MB, free: 17.03 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.152e-05/0.2006, allocations: 74.12 kB / 488.1 MB, free: 16.99 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007426/0.2014, allocations: 0.7152 MB / 488.8 MB, free: 16.68 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.654e-05/0.2014, allocations: 9.75 kB / 488.8 MB, free: 16.67 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.2014, allocations: 3.938 kB / 488.8 MB, free: 16.67 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.2014, allocations: 3.469 kB / 488.8 MB, free: 16.67 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001236/0.2026, allocations: 1.295 MB / 490.1 MB, free: 15.95 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.2026, allocations: 5.656 kB / 490.1 MB, free: 15.95 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004888/0.2031, allocations: 193.3 kB / 490.3 MB, free: 15.94 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001316/0.2033, allocations: 56.23 kB / 490.4 MB, free: 15.92 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.713e-05/0.2033, allocations: 21.64 kB / 490.4 MB, free: 15.91 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001072/0.2044, allocations: 2.768 MB / 493.2 MB, free: 13.21 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.2044, allocations: 1.938 kB / 493.2 MB, free: 13.21 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009712/0.2053, allocations: 1.005 MB / 494.2 MB, free: 12.67 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002014/0.2055, allocations: 129.4 kB / 494.3 MB, free: 12.6 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.043e-05/0.2056, allocations: 12.59 kB / 494.3 MB, free: 12.59 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001862/0.2058, allocations: 14.78 kB / 494.3 MB, free: 12.59 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.446e-05/0.2058, allocations: 39.62 kB / 494.4 MB, free: 12.58 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.006e-05/0.2059, allocations: 20.62 kB / 494.4 MB, free: 12.57 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.000359/0.2062, allocations: 425.3 kB / 494.8 MB, free: 12.38 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2062, allocations: 3.625 kB / 494.8 MB, free: 12.38 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0006181/0.2068, allocations: 204.4 kB / 495 MB, free: 12.35 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (volume.medium.p,volume.medium.T) * 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 (47): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.001353/0.2082, allocations: 1.674 MB / 496.7 MB, free: 11.23 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0009387/0.2091, allocations: 0.5785 MB / 497.2 MB, free: 11.04 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.41e-06/0.2091, allocations: 5.562 kB / 497.2 MB, free: 11.03 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007303/0.2099, allocations: 470.9 kB / 497.7 MB, free: 10.82 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001001/0.2109, allocations: 374.5 kB / 498.1 MB, free: 10.73 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007107/0.218, allocations: 6.47 MB / 0.4927 GB, free: 6.922 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003202/0.2183, allocations: 343.8 kB / 0.493 GB, free: 6.801 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0007072/0.219, allocations: 205.8 kB / 0.4932 GB, free: 6.762 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002842/0.2193, allocations: 230.1 kB / 0.4935 GB, free: 6.602 MB / 410.7 MB Notification: Performance of SimCode: time 1.753e-06/0.2193, allocations: 1.031 kB / 0.4935 GB, free: 6.602 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0406/0.2599, allocations: 23.65 MB / 0.5166 GB, free: 9.195 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.333/8.593, allocations: 8 kB / 0.5166 GB, free: 9.188 MB / 426.7 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.1.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_LinearFluid_LinearColdWater_fmu --startTime=0 --stopTime=1.01 --stepSize=0.000201919 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_LinearFluid_LinearColdWater.fmu > ModelicaTest_4.1.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/LinearFluid/LinearColdWater/LinearColdWater.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.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: 10.603593846783042]