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.001068/0.001068, allocations: 102.5 kB / 17.72 MB, free: 5.363 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.001756/0.001756, allocations: 191 kB / 18.66 MB, free: 4.434 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.308/1.308, allocations: 205.1 MB / 224.5 MB, free: 12.27 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.001467/0.001467, allocations: 52.52 kB / 328.1 MB, free: 3.777 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08121/0.08269, allocations: 46.62 MB / 374.7 MB, free: 5.047 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater): time 0.1789/0.2616, allocations: 15.84 MB / 390.5 MB, free: 4.059 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002759/0.2644, allocations: 1.912 MB / 392.4 MB, free: 2.746 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003144/0.2648, allocations: 4.562 kB / 392.4 MB, free: 2.746 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006543/0.2655, allocations: 165.2 kB / 392.6 MB, free: 2.648 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007246/0.2662, allocations: 317.1 kB / 392.9 MB, free: 2.457 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007261/0.267, allocations: 286.2 kB / 393.2 MB, free: 2.305 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009919/0.268, allocations: 0.8375 MB / 394 MB, free: 1.926 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002307/0.2682, allocations: 100.1 kB / 394.1 MB, free: 1.887 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001228/0.2694, allocations: 0.5107 MB / 394.6 MB, free: 1.652 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000384/0.2698, allocations: 282.4 kB / 394.9 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.254e-05/0.2699, allocations: 28.12 kB / 394.9 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001508/0.2701, allocations: 34.84 kB / 395 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001293/0.2702, allocations: 94.69 kB / 395.1 MB, free: 1.484 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002062/0.2704, allocations: 178.9 kB / 395.3 MB, free: 1.395 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005564/0.271, allocations: 436.5 kB / 395.7 MB, free: 1.254 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/0.271, allocations: 0.6562 kB / 395.7 MB, free: 1.254 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.765e-06/0.271, allocations: 0 / 395.7 MB, free: 1.254 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.965e-06/0.271, allocations: 4 kB / 395.7 MB, free: 1.25 MB / 318.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.0009077/0.2719, allocations: 0.5769 MB / 396.3 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.142e-05/0.272, allocations: 10.19 kB / 396.3 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.271e-05/0.272, allocations: 60.72 kB / 396.3 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002698/0.2723, allocations: 47.67 kB / 396.4 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004042/0.2727, allocations: 285.3 kB / 396.7 MB, free: 452 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.284e-05/0.2728, allocations: 19.41 kB / 396.7 MB, free: 444 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.643e-05/0.2728, allocations: 27.84 kB / 396.7 MB, free: 436 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004685/0.2733, allocations: 309.5 kB / 397 MB, free: 252 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.82e-05/0.2733, allocations: 1.188 kB / 397 MB, free: 252 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.131e-05/0.2734, allocations: 11.38 kB / 397 MB, free: 244 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.156e-05/0.2734, allocations: 7.188 kB / 397 MB, free: 244 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003348/0.2737, allocations: 198.8 kB / 397.2 MB, free: 176 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001998/0.2757, allocations: 1.43 MB / 398.6 MB, free: 14.95 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003436/0.2761, allocations: 185.6 kB / 398.8 MB, free: 14.86 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001526/0.2762, allocations: 87.64 kB / 398.9 MB, free: 14.82 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.957e-05/0.2763, allocations: 4.453 kB / 398.9 MB, free: 14.82 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.302e-05/0.2763, allocations: 40.5 kB / 399 MB, free: 14.77 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.964e-06/0.2763, allocations: 0 / 399 MB, free: 14.77 MB / 334.1 MB Notification: Performance of matching and sorting (n=26): time 0.002545/0.2789, allocations: 0.9973 MB / 400 MB, free: 14.14 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.326e-05/0.2789, allocations: 58.5 kB / 400 MB, free: 14.07 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002708/0.2792, allocations: 262.3 kB / 400.3 MB, free: 13.92 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.551e-05/0.2793, allocations: 31.08 kB / 400.3 MB, free: 13.88 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001277/0.2794, allocations: 181.4 kB / 400.5 MB, free: 13.72 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.296e-05/0.2795, allocations: 93.97 kB / 400.6 MB, free: 13.65 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001043/0.2796, allocations: 59.08 kB / 400.6 MB, free: 13.61 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001225/0.2797, allocations: 341.4 kB / 401 MB, free: 13.29 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001586/0.2799, allocations: 85.27 kB / 401 MB, free: 13.25 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002176/0.2801, allocations: 183.4 kB / 401.2 MB, free: 13.1 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000382/0.2805, allocations: 281.8 kB / 401.5 MB, free: 12.89 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.2805, allocations: 5.25 kB / 401.5 MB, free: 12.89 MB / 334.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0006856/0.2812, allocations: 387.6 kB / 401.9 MB, free: 12.7 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.982e-05/0.2812, allocations: 7.344 kB / 401.9 MB, free: 12.7 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.156e-06/0.2812, allocations: 2.375 kB / 401.9 MB, free: 12.7 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002474/0.2815, allocations: 70.03 kB / 402 MB, free: 12.66 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002841/0.2818, allocations: 63.2 kB / 402 MB, free: 12.66 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00221/0.284, allocations: 2.888 MB / 404.9 MB, free: 9.77 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002694/0.2843, allocations: 11.41 kB / 404.9 MB, free: 9.762 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.308e-05/0.2843, allocations: 13.59 kB / 404.9 MB, free: 9.758 MB / 334.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.0001784/0.2845, allocations: 149.7 kB / 405.1 MB, free: 9.621 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.545e-05/0.2846, allocations: 29.42 kB / 405.1 MB, free: 9.605 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.822e-05/0.2847, allocations: 34.89 kB / 405.1 MB, free: 9.578 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.457e-06/0.2847, allocations: 2.812 kB / 405.1 MB, free: 9.578 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.546e-06/0.2847, allocations: 1.844 kB / 405.1 MB, free: 9.578 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006228/0.2853, allocations: 0.5694 MB / 405.7 MB, free: 9.047 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001107/0.2864, allocations: 0.701 MB / 406.4 MB, free: 8.555 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.2865, allocations: 0 / 406.4 MB, free: 8.555 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002068/0.2867, allocations: 44.78 kB / 406.5 MB, free: 8.551 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002269/0.2869, allocations: 52.67 kB / 406.5 MB, free: 8.535 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.19e-05/0.2869, allocations: 6.766 kB / 406.5 MB, free: 8.531 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001062/0.288, allocations: 1.496 MB / 408 MB, free: 7.055 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/0.288, allocations: 2.906 kB / 408 MB, free: 7.055 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006864/0.2887, allocations: 469.9 kB / 408.5 MB, free: 6.766 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.192e-05/0.2888, allocations: 103 kB / 408.6 MB, free: 6.656 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.847e-05/0.2889, allocations: 6.219 kB / 408.6 MB, free: 6.652 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001945/0.2891, allocations: 6.875 kB / 408.6 MB, free: 6.648 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.36e-05/0.2891, allocations: 23.7 kB / 408.6 MB, free: 6.641 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.117e-05/0.2891, allocations: 8.875 kB / 408.6 MB, free: 6.641 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001914/0.2893, allocations: 191.2 kB / 408.8 MB, free: 6.527 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2894, allocations: 0 / 408.8 MB, free: 6.527 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.00044/0.2898, allocations: 85.88 kB / 408.9 MB, free: 6.52 MB / 334.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.0009772/0.2908, allocations: 1.005 MB / 409.9 MB, free: 5.691 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007769/0.2916, allocations: 490 kB / 410.4 MB, free: 5.367 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.2916, allocations: 1.375 kB / 410.4 MB, free: 5.367 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003452/0.2919, allocations: 230.5 kB / 410.6 MB, free: 5.215 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009138/0.2929, allocations: 161.3 kB / 410.8 MB, free: 5.176 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003815/0.2967, allocations: 3.148 MB / 413.9 MB, free: 2.969 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003151/0.297, allocations: 0.7635 MB / 414.7 MB, free: 2.266 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002589/0.2973, allocations: 52.11 kB / 414.7 MB, free: 2.246 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001336/0.2974, allocations: 85.98 kB / 414.8 MB, free: 2.188 MB / 334.1 MB Notification: Performance of SimCode: time 4.51e-07/0.2974, allocations: 0 / 414.8 MB, free: 2.188 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03419/0.3316, allocations: 8.88 MB / 423.7 MB, free: 13.46 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.71/12.04, allocations: 15.69 kB / 423.7 MB, free: 13.45 MB / 350.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