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.001474/0.001474, allocations: 106.4 kB / 17.15 MB, free: 6.305 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.001644/0.001644, allocations: 198 kB / 18.07 MB, free: 5.41 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.316/1.316, allocations: 205.1 MB / 223.9 MB, free: 12.46 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.001144/0.001144, allocations: 47.92 kB / 280.1 MB, free: 3.48 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.109, allocations: 46.63 MB / 326.7 MB, free: 4.785 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater): time 0.01602/0.1251, allocations: 15.98 MB / 342.7 MB, free: 4.734 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002395/0.1275, allocations: 1.916 MB / 344.6 MB, free: 2.812 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001517/0.1278, allocations: 3.938 kB / 344.6 MB, free: 2.809 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005719/0.1283, allocations: 151.2 kB / 344.8 MB, free: 2.66 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000507/0.1289, allocations: 302.5 kB / 345.1 MB, free: 2.363 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006019/0.1295, allocations: 271.5 kB / 345.3 MB, free: 2.098 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001141/0.1306, allocations: 1.293 MB / 346.6 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001633/0.1308, allocations: 72.67 kB / 346.7 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008404/0.1316, allocations: 454.1 kB / 347.1 MB, free: 288 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003402/0.132, allocations: 286.8 kB / 347.4 MB, free: 0 / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.1e-05/0.1321, allocations: 16.05 kB / 347.4 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001258/0.1322, allocations: 24 kB / 347.4 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000111/0.1323, allocations: 87.59 kB / 347.5 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002045/0.1325, allocations: 167.3 kB / 347.7 MB, free: 15.71 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004325/0.133, allocations: 418.9 kB / 348.1 MB, free: 15.3 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.67e-06/0.133, allocations: 0 / 348.1 MB, free: 15.3 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.133, allocations: 0 / 348.1 MB, free: 15.3 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.023e-05/0.133, allocations: 0 / 348.1 MB, free: 15.3 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.0009625/0.134, allocations: 0.5887 MB / 348.7 MB, free: 14.66 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.692e-05/0.134, allocations: 12.03 kB / 348.7 MB, free: 14.65 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.666e-05/0.1341, allocations: 58.73 kB / 348.8 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002759/0.1344, allocations: 40.64 kB / 348.8 MB, free: 14.55 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003316/0.1347, allocations: 283.7 kB / 349.1 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.938e-05/0.1347, allocations: 20.94 kB / 349.1 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.071e-05/0.1348, allocations: 24.38 kB / 349.1 MB, free: 14.19 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004584/0.1353, allocations: 307.6 kB / 349.4 MB, free: 13.86 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.288e-05/0.1353, allocations: 0 / 349.4 MB, free: 13.86 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.079e-05/0.1353, allocations: 12 kB / 349.4 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.806e-06/0.1353, allocations: 8 kB / 349.4 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003048/0.1356, allocations: 197.5 kB / 349.6 MB, free: 13.64 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0016/0.1372, allocations: 1.436 MB / 351.1 MB, free: 12.09 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003008/0.1376, allocations: 186.6 kB / 351.3 MB, free: 11.9 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001252/0.1377, allocations: 88.78 kB / 351.3 MB, free: 11.81 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.529e-05/0.1377, allocations: 7.984 kB / 351.3 MB, free: 11.8 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.02e-05/0.1378, allocations: 34.56 kB / 351.4 MB, free: 11.76 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.232e-06/0.1378, allocations: 0 / 351.4 MB, free: 11.76 MB / 302.1 MB Notification: Performance of matching and sorting (n=26): time 0.002372/0.1402, allocations: 0.9998 MB / 352.4 MB, free: 10.68 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.418e-05/0.1402, allocations: 51.41 kB / 352.4 MB, free: 10.62 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002547/0.1405, allocations: 258.6 kB / 352.7 MB, free: 10.36 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.574e-05/0.1405, allocations: 33.7 kB / 352.7 MB, free: 10.32 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001115/0.1406, allocations: 180.2 kB / 352.9 MB, free: 10.14 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.435e-05/0.1407, allocations: 98.64 kB / 353 MB, free: 10.04 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.34e-05/0.1408, allocations: 65.39 kB / 353.1 MB, free: 9.973 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001349/0.1409, allocations: 342.8 kB / 353.4 MB, free: 9.629 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001443/0.1411, allocations: 83.95 kB / 353.5 MB, free: 9.547 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002154/0.1413, allocations: 182.8 kB / 353.6 MB, free: 9.328 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003867/0.1417, allocations: 283 kB / 353.9 MB, free: 9.012 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.1417, allocations: 7.938 kB / 353.9 MB, free: 9.004 MB / 302.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0006422/0.1424, allocations: 378.7 kB / 354.3 MB, free: 8.621 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.849e-05/0.1424, allocations: 4.375 kB / 354.3 MB, free: 8.617 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.325e-06/0.1424, allocations: 8 kB / 354.3 MB, free: 8.609 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002494/0.1427, allocations: 57.67 kB / 354.4 MB, free: 8.547 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002942/0.143, allocations: 71.84 kB / 354.4 MB, free: 8.477 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002132/0.1451, allocations: 2.677 MB / 357.1 MB, free: 5.531 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002398/0.1454, allocations: 23.94 kB / 357.1 MB, free: 5.508 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.415e-05/0.1454, allocations: 12 kB / 357.2 MB, free: 5.496 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.0001476/0.1456, allocations: 153.8 kB / 357.3 MB, free: 5.336 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.639e-05/0.1456, allocations: 31.66 kB / 357.3 MB, free: 5.305 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.671e-05/0.1457, allocations: 34.17 kB / 357.4 MB, free: 5.273 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.1457, allocations: 4 kB / 357.4 MB, free: 5.27 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.1457, allocations: 0 / 357.4 MB, free: 5.27 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005624/0.1463, allocations: 0.563 MB / 357.9 MB, free: 4.617 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009545/0.1473, allocations: 0.7028 MB / 358.6 MB, free: 3.852 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.1473, allocations: 4 kB / 358.6 MB, free: 3.848 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002031/0.1475, allocations: 43.92 kB / 358.7 MB, free: 3.805 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002269/0.1477, allocations: 68.78 kB / 358.8 MB, free: 3.734 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.17e-05/0.1478, allocations: 8 kB / 358.8 MB, free: 3.727 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001082/0.1488, allocations: 1.378 MB / 360.1 MB, free: 2.215 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.1489, allocations: 4.031 kB / 360.1 MB, free: 2.211 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006571/0.1495, allocations: 469 kB / 360.6 MB, free: 1.73 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.8e-05/0.1496, allocations: 101 kB / 360.7 MB, free: 1.613 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.042e-05/0.1497, allocations: 12 kB / 360.7 MB, free: 1.602 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002247/0.1499, allocations: 11.94 kB / 360.7 MB, free: 1.59 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.626e-05/0.1499, allocations: 19.97 kB / 360.7 MB, free: 1.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.061e-05/0.15, allocations: 11.98 kB / 360.8 MB, free: 1.559 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001743/0.1502, allocations: 182 kB / 360.9 MB, free: 1.379 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1502, allocations: 0 / 360.9 MB, free: 1.379 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003966/0.1506, allocations: 88 kB / 361 MB, free: 1.293 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.0009714/0.1515, allocations: 1.014 MB / 362 MB, free: 252 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007753/0.1523, allocations: 481 kB / 362.5 MB, free: 15.75 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.589e-06/0.1523, allocations: 4.75 kB / 362.5 MB, free: 15.75 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003663/0.1527, allocations: 234.6 kB / 362.7 MB, free: 15.5 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009649/0.1537, allocations: 160.5 kB / 362.9 MB, free: 15.35 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003963/0.1577, allocations: 3.253 MB / 366.1 MB, free: 11.93 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003439/0.158, allocations: 0.7645 MB / 366.9 MB, free: 11.14 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002925/0.1583, allocations: 58.88 kB / 367 MB, free: 11.09 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001282/0.1585, allocations: 79.42 kB / 367 MB, free: 11.01 MB / 318.1 MB Notification: Performance of SimCode: time 7.81e-07/0.1585, allocations: 0 / 367 MB, free: 11.01 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02939/0.1879, allocations: 8.26 MB / 375.3 MB, free: 2.715 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002766/0.1882, allocations: 269.9 kB / 375.6 MB, free: 2.352 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.855/2.044, allocations: 0 / 375.6 MB, free: 2.352 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