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.001693/0.001693, allocations: 112.2 kB / 17.28 MB, free: 6.199 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.001772/0.001772, allocations: 189.3 kB / 18.2 MB, free: 5.277 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.357/1.357, allocations: 205.1 MB / 224.1 MB, free: 12.36 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.001318/0.001318, allocations: 48.61 kB / 280.3 MB, free: 3.375 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09299/0.09433, allocations: 46.64 MB / 326.9 MB, free: 4.66 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater): time 0.01787/0.1122, allocations: 15.82 MB / 342.7 MB, free: 4.773 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002853/0.1152, allocations: 1.893 MB / 344.6 MB, free: 2.875 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004109/0.1157, allocations: 7.938 kB / 344.6 MB, free: 2.867 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007576/0.1165, allocations: 147.3 kB / 344.8 MB, free: 2.723 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009143/0.1174, allocations: 294.5 kB / 345 MB, free: 2.434 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008309/0.1182, allocations: 259.6 kB / 345.3 MB, free: 2.18 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001195/0.1195, allocations: 0.8368 MB / 346.1 MB, free: 1.34 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002678/0.1197, allocations: 104.7 kB / 346.2 MB, free: 1.234 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001295/0.121, allocations: 0.4981 MB / 346.7 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005949/0.1217, allocations: 286.9 kB / 347 MB, free: 464 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001244/0.1218, allocations: 35.98 kB / 347.1 MB, free: 428 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000267/0.1221, allocations: 32 kB / 347.1 MB, free: 396 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001624/0.1222, allocations: 95.66 kB / 347.2 MB, free: 300 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003146/0.1226, allocations: 187.2 kB / 347.4 MB, free: 112 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006354/0.1232, allocations: 430.9 kB / 347.8 MB, free: 15.69 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.833e-06/0.1232, allocations: 4 kB / 347.8 MB, free: 15.68 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1232, allocations: 0 / 347.8 MB, free: 15.68 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.408e-05/0.1233, allocations: 0 / 347.8 MB, free: 15.68 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.001218/0.1245, allocations: 0.5848 MB / 348.4 MB, free: 15.05 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.167e-05/0.1245, allocations: 8.031 kB / 348.4 MB, free: 15.04 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.602e-05/0.1246, allocations: 58.73 kB / 348.4 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003292/0.125, allocations: 48.64 kB / 348.5 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003723/0.1254, allocations: 275.7 kB / 348.7 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.51e-05/0.1254, allocations: 20.94 kB / 348.8 MB, free: 14.6 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.627e-05/0.1254, allocations: 24.38 kB / 348.8 MB, free: 14.58 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004904/0.1259, allocations: 303.6 kB / 349.1 MB, free: 14.25 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.619e-05/0.126, allocations: 4 kB / 349.1 MB, free: 14.25 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.606e-05/0.126, allocations: 12 kB / 349.1 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.414e-05/0.126, allocations: 11.94 kB / 349.1 MB, free: 14.22 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003272/0.1264, allocations: 193.6 kB / 349.3 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001696/0.1281, allocations: 1.432 MB / 350.7 MB, free: 12.49 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003306/0.1284, allocations: 182.6 kB / 350.9 MB, free: 12.3 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001504/0.1286, allocations: 92.72 kB / 351 MB, free: 12.21 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.425e-05/0.1286, allocations: 3.984 kB / 351 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.252e-05/0.1287, allocations: 38.56 kB / 351 MB, free: 12.16 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.944e-06/0.1287, allocations: 4 kB / 351.1 MB, free: 12.15 MB / 302.1 MB Notification: Performance of matching and sorting (n=26): time 0.002603/0.1313, allocations: 0.9959 MB / 352 MB, free: 11.08 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.581e-05/0.1313, allocations: 51.41 kB / 352.1 MB, free: 11.02 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002659/0.1316, allocations: 262.6 kB / 352.4 MB, free: 10.75 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.616e-05/0.1317, allocations: 33.7 kB / 352.4 MB, free: 10.71 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001174/0.1318, allocations: 180.1 kB / 352.6 MB, free: 10.53 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.15e-05/0.1319, allocations: 94.64 kB / 352.7 MB, free: 10.44 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001126/0.132, allocations: 73.39 kB / 352.7 MB, free: 10.36 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001552/0.1321, allocations: 330.8 kB / 353.1 MB, free: 10.03 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001377/0.1323, allocations: 87.95 kB / 353.1 MB, free: 9.941 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001977/0.1325, allocations: 178.9 kB / 353.3 MB, free: 9.727 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003515/0.1328, allocations: 291 kB / 353.6 MB, free: 9.402 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.1329, allocations: 3.938 kB / 353.6 MB, free: 9.398 MB / 302.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0006306/0.1335, allocations: 382.7 kB / 354 MB, free: 9.012 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.747e-05/0.1335, allocations: 4 kB / 354 MB, free: 9.008 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.146e-06/0.1335, allocations: 4 kB / 354 MB, free: 9.004 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002556/0.1338, allocations: 66.05 kB / 354 MB, free: 8.934 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002865/0.1341, allocations: 63.91 kB / 354.1 MB, free: 8.871 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002266/0.1364, allocations: 2.89 MB / 357 MB, free: 5.699 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002537/0.1366, allocations: 23.92 kB / 357 MB, free: 5.676 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.521e-05/0.1367, allocations: 16 kB / 357 MB, free: 5.66 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.0001735/0.1369, allocations: 147.1 kB / 357.2 MB, free: 5.508 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.146e-05/0.1369, allocations: 31.67 kB / 357.2 MB, free: 5.477 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.778e-05/0.137, allocations: 38.19 kB / 357.2 MB, free: 5.441 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.137, allocations: 0 / 357.2 MB, free: 5.441 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.602e-06/0.137, allocations: 7.938 kB / 357.3 MB, free: 5.434 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006283/0.1377, allocations: 0.567 MB / 357.8 MB, free: 4.777 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001026/0.1387, allocations: 0.7068 MB / 358.5 MB, free: 4.008 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.751e-06/0.1387, allocations: 3.984 kB / 358.5 MB, free: 4.004 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001971/0.1389, allocations: 43.91 kB / 358.6 MB, free: 3.961 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002328/0.1392, allocations: 48.8 kB / 358.6 MB, free: 3.91 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.59e-05/0.1392, allocations: 8 kB / 358.6 MB, free: 3.902 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00117/0.1404, allocations: 1.492 MB / 360.1 MB, free: 2.27 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.1404, allocations: 8.031 kB / 360.1 MB, free: 2.262 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006585/0.1411, allocations: 469 kB / 360.6 MB, free: 1.781 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.865e-05/0.1411, allocations: 101 kB / 360.7 MB, free: 1.664 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.244e-05/0.1412, allocations: 12 kB / 360.7 MB, free: 1.652 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002194/0.1414, allocations: 11.91 kB / 360.7 MB, free: 1.641 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.575e-05/0.1415, allocations: 23.91 kB / 360.7 MB, free: 1.617 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.102e-05/0.1415, allocations: 11.94 kB / 360.7 MB, free: 1.605 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001791/0.1417, allocations: 186 kB / 360.9 MB, free: 1.422 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1417, allocations: 4 kB / 360.9 MB, free: 1.418 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000436/0.1421, allocations: 88 kB / 361 MB, free: 1.332 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.0009829/0.1431, allocations: 1.003 MB / 362 MB, free: 304 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008262/0.144, allocations: 489 kB / 362.5 MB, free: 15.79 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.144, allocations: 4 kB / 362.5 MB, free: 15.79 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003766/0.1444, allocations: 239.3 kB / 362.7 MB, free: 15.54 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009668/0.1453, allocations: 164.3 kB / 362.9 MB, free: 15.38 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004363/0.1497, allocations: 3.246 MB / 366.1 MB, free: 11.97 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003531/0.1501, allocations: 0.7645 MB / 366.9 MB, free: 11.18 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003094/0.1504, allocations: 46.95 kB / 367 MB, free: 11.14 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001295/0.1505, allocations: 87.41 kB / 367 MB, free: 11.05 MB / 318.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1506, allocations: 0 / 367 MB, free: 11.05 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4442/0.5948, allocations: 8.517 MB / 375.6 MB, free: 2.52 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002851/0.5951, allocations: 277.9 kB / 375.8 MB, free: 2.148 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.114/2.71, allocations: 3.906 kB / 375.8 MB, free: 2.145 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","../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