Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_LinearFluid_LinearColdWater",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_LinearFluid_LinearColdWater",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.001148/0.001148, allocations: 106.9 kB / 17.58 MB, free: 5.559 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.00123/0.00123, allocations: 192 kB / 18.51 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.306/1.306, allocations: 205.1 MB / 224.4 MB, free: 12.31 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001265/0.001265, allocations: 55.92 kB / 280.8 MB, free: 3.047 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08413/0.08541, allocations: 46.63 MB / 327.4 MB, free: 4.348 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater): time 0.01772/0.1032, allocations: 15.84 MB / 343.2 MB, free: 4.438 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002834/0.106, allocations: 1.908 MB / 345.1 MB, free: 2.523 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003889/0.1065, allocations: 4 kB / 345.1 MB, free: 2.52 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006877/0.1072, allocations: 166.9 kB / 345.3 MB, free: 2.355 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007999/0.108, allocations: 322.2 kB / 345.6 MB, free: 2.039 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007641/0.1088, allocations: 283.4 kB / 345.9 MB, free: 1.762 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001114/0.1099, allocations: 0.8447 MB / 346.7 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002517/0.1102, allocations: 96.67 kB / 346.8 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001235/0.1115, allocations: 0.5058 MB / 347.3 MB, free: 316 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005184/0.112, allocations: 274.9 kB / 347.6 MB, free: 40 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.866e-05/0.1121, allocations: 32 kB / 347.6 MB, free: 8 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002343/0.1123, allocations: 36.05 kB / 347.7 MB, free: 15.97 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001287/0.1125, allocations: 95.61 kB / 347.8 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002673/0.1128, allocations: 183.2 kB / 348 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005378/0.1133, allocations: 434.9 kB / 348.4 MB, free: 15.27 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.1133, allocations: 0 / 348.4 MB, free: 15.27 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.1133, allocations: 0 / 348.4 MB, free: 15.27 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.573e-05/0.1133, allocations: 0 / 348.4 MB, free: 15.27 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001088/0.1144, allocations: 0.5887 MB / 349 MB, free: 14.64 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.515e-05/0.1145, allocations: 8.031 kB / 349 MB, free: 14.63 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.216e-05/0.1146, allocations: 62.72 kB / 349 MB, free: 14.56 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000307/0.1149, allocations: 48.64 kB / 349.1 MB, free: 14.51 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003615/0.1153, allocations: 275.7 kB / 349.4 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.327e-05/0.1153, allocations: 20.94 kB / 349.4 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.63e-05/0.1154, allocations: 24.38 kB / 349.4 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004966/0.1159, allocations: 307.6 kB / 349.7 MB, free: 13.83 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.452e-05/0.1159, allocations: 4 kB / 349.7 MB, free: 13.83 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.448e-05/0.1159, allocations: 12 kB / 349.7 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.228e-05/0.1159, allocations: 8 kB / 349.7 MB, free: 13.81 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003599/0.1163, allocations: 201.5 kB / 349.9 MB, free: 13.61 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001746/0.1181, allocations: 1.436 MB / 351.4 MB, free: 12.06 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003179/0.1184, allocations: 178.6 kB / 351.5 MB, free: 11.88 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000141/0.1186, allocations: 88.78 kB / 351.6 MB, free: 11.79 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.661e-05/0.1186, allocations: 3.984 kB / 351.6 MB, free: 11.79 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.986e-05/0.1186, allocations: 42.56 kB / 351.7 MB, free: 11.73 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.473e-06/0.1186, allocations: 0 / 351.7 MB, free: 11.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=26): time 0.002582/0.1212, allocations: 0.992 MB / 352.7 MB, free: 10.66 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.493e-05/0.1213, allocations: 51.41 kB / 352.7 MB, free: 10.6 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002843/0.1216, allocations: 262.6 kB / 353 MB, free: 10.34 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.862e-05/0.1216, allocations: 29.7 kB / 353 MB, free: 10.3 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001336/0.1217, allocations: 184.1 kB / 353.2 MB, free: 10.12 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.343e-05/0.1218, allocations: 94.66 kB / 353.3 MB, free: 10.02 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001096/0.1219, allocations: 69.39 kB / 353.3 MB, free: 9.949 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001388/0.1221, allocations: 330.8 kB / 353.7 MB, free: 9.617 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000149/0.1222, allocations: 87.95 kB / 353.7 MB, free: 9.531 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002056/0.1225, allocations: 182.8 kB / 353.9 MB, free: 9.312 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003966/0.1229, allocations: 283 kB / 354.2 MB, free: 8.996 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.618e-06/0.1229, allocations: 7.938 kB / 354.2 MB, free: 8.988 MB / 302.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0007003/0.1236, allocations: 378.7 kB / 354.6 MB, free: 8.605 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.858e-05/0.1236, allocations: 4.375 kB / 354.6 MB, free: 8.602 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.396e-06/0.1236, allocations: 8 kB / 354.6 MB, free: 8.594 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002574/0.1239, allocations: 65.61 kB / 354.6 MB, free: 8.523 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003003/0.1242, allocations: 63.91 kB / 354.7 MB, free: 8.461 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002285/0.1265, allocations: 2.886 MB / 357.6 MB, free: 5.293 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002265/0.1267, allocations: 15.91 kB / 357.6 MB, free: 5.277 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.464e-05/0.1268, allocations: 19.98 kB / 357.6 MB, free: 5.258 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001667/0.127, allocations: 145.8 kB / 357.8 MB, free: 5.105 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.305e-05/0.127, allocations: 27.72 kB / 357.8 MB, free: 5.078 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.311e-05/0.1271, allocations: 38.23 kB / 357.8 MB, free: 5.043 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.1271, allocations: 4 kB / 357.8 MB, free: 5.039 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/0.1271, allocations: 0 / 357.8 MB, free: 5.039 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006266/0.1278, allocations: 0.567 MB / 358.4 MB, free: 4.383 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001029/0.1288, allocations: 0.7028 MB / 359.1 MB, free: 3.617 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.1288, allocations: 0 / 359.1 MB, free: 3.617 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002136/0.129, allocations: 43.92 kB / 359.2 MB, free: 3.574 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00022/0.1293, allocations: 60.62 kB / 359.2 MB, free: 3.512 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.231e-05/0.1293, allocations: 8 kB / 359.2 MB, free: 3.504 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001155/0.1305, allocations: 1.492 MB / 360.7 MB, free: 1.871 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.1305, allocations: 4 kB / 360.7 MB, free: 1.867 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006676/0.1311, allocations: 473 kB / 361.2 MB, free: 1.383 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.087e-05/0.1312, allocations: 96.86 kB / 361.3 MB, free: 1.27 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.204e-05/0.1313, allocations: 4.125 kB / 361.3 MB, free: 1.266 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000198/0.1315, allocations: 12 kB / 361.3 MB, free: 1.254 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.354e-05/0.1315, allocations: 19.97 kB / 361.3 MB, free: 1.234 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.99e-05/0.1316, allocations: 11.92 kB / 361.3 MB, free: 1.223 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001672/0.1317, allocations: 186 kB / 361.5 MB, free: 1.039 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1317, allocations: 0 / 361.5 MB, free: 1.039 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004063/0.1322, allocations: 88 kB / 361.6 MB, free: 0.9531 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (24): * Single equations (assignments): 23 * 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): 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.000944/0.1331, allocations: 1.016 MB / 362.6 MB, free: 15.9 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0007719/0.1339, allocations: 481.9 kB / 363.1 MB, free: 15.41 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.528e-06/0.1339, allocations: 4 kB / 363.1 MB, free: 15.4 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003648/0.1343, allocations: 234.5 kB / 363.3 MB, free: 15.16 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00095/0.1352, allocations: 160.3 kB / 363.5 MB, free: 15 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003912/0.1392, allocations: 3.153 MB / 366.6 MB, free: 11.68 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003583/0.1395, allocations: 0.7567 MB / 367.4 MB, free: 10.9 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002855/0.1398, allocations: 50.95 kB / 367.4 MB, free: 10.86 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001317/0.14, allocations: 83.41 kB / 367.5 MB, free: 10.77 MB / 318.1 MB Notification: Performance of SimCode: time 4.5e-07/0.14, allocations: 4 kB / 367.5 MB, free: 10.77 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06288/0.2029, allocations: 8.632 MB / 376.1 MB, free: 2.074 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.58/11.78, allocations: 7.922 kB / 376.1 MB, free: 2.066 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_LinearFluid_LinearColdWater_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_LinearFluid_LinearColdWater.fmu > Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/Tests/MediaTestModels/LinearFluid/LinearColdWater/LinearColdWater.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches