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: translateModel(Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater") translateModel(Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002647/0.002648, allocations: 105.5 kB / 18.4 MB, free: 4.676 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.002697/0.002697, allocations: 183.1 kB / 19.33 MB, free: 3.758 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.15/4.15, allocations: 205.1 MB / 225.2 MB, free: 12.23 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.003015/0.003015, allocations: 51.94 kB / 329.2 MB, free: 3.258 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2659/0.2689, allocations: 46.63 MB / 375.9 MB, free: 4.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater): time 0.5971/0.8662, allocations: 15.83 MB / 391.7 MB, free: 4.145 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004898/0.8712, allocations: 1.915 MB / 393.6 MB, free: 2.773 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007711/0.8721, allocations: 8.281 kB / 393.6 MB, free: 2.77 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001152/0.8733, allocations: 170 kB / 393.8 MB, free: 2.668 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001674/0.875, allocations: 312.7 kB / 394.1 MB, free: 2.48 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001924/0.8769, allocations: 278.4 kB / 394.4 MB, free: 2.332 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003488/0.8804, allocations: 0.837 MB / 395.2 MB, free: 1.953 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005652/0.881, allocations: 107.8 kB / 395.3 MB, free: 1.906 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002884/0.8839, allocations: 0.513 MB / 395.8 MB, free: 1.668 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001163/0.8851, allocations: 276.6 kB / 396.1 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002117/0.8854, allocations: 29.78 kB / 396.1 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005726/0.8859, allocations: 39.58 kB / 396.2 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004452/0.8904, allocations: 82.77 kB / 396.2 MB, free: 1.512 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001126/0.8916, allocations: 183.8 kB / 396.4 MB, free: 1.418 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001703/0.8933, allocations: 439.4 kB / 396.9 MB, free: 1.277 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.137e-06/0.8934, allocations: 0 / 396.9 MB, free: 1.277 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.849e-06/0.8934, allocations: 4 kB / 396.9 MB, free: 1.273 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.468e-05/0.8934, allocations: 3.938 kB / 396.9 MB, free: 1.27 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.002111/0.8955, allocations: 0.573 MB / 397.4 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.239e-05/0.8956, allocations: 9.812 kB / 397.4 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000637/0.8963, allocations: 47.94 kB / 397.5 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009702/0.8973, allocations: 287.2 kB / 397.8 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.489e-05/0.8973, allocations: 20.06 kB / 397.8 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001331/0.8975, allocations: 24.61 kB / 397.8 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0015/0.899, allocations: 305.4 kB / 398.1 MB, free: 336 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.377e-05/0.8991, allocations: 1.312 kB / 398.1 MB, free: 336 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001328/0.8993, allocations: 10.69 kB / 398.1 MB, free: 328 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.809e-05/0.8993, allocations: 10.44 kB / 398.1 MB, free: 324 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001092/0.9004, allocations: 201 kB / 398.3 MB, free: 256 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008722/0.9092, allocations: 1.433 MB / 399.8 MB, free: 15.02 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006294/0.9099, allocations: 174.3 kB / 399.9 MB, free: 14.94 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002808/0.9102, allocations: 92.64 kB / 400 MB, free: 14.89 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.039e-05/0.9103, allocations: 4.172 kB / 400 MB, free: 14.89 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001008/0.9104, allocations: 40.22 kB / 400.1 MB, free: 14.85 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 5.581e-06/0.9104, allocations: 1.156 kB / 400.1 MB, free: 14.85 MB / 334.1 MB Notification: Performance of matching and sorting (n=26): time 0.004456/0.9149, allocations: 0.9981 MB / 401.1 MB, free: 14.21 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001002/0.915, allocations: 54.81 kB / 401.1 MB, free: 14.15 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007066/0.9158, allocations: 262.9 kB / 401.4 MB, free: 14 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.083e-05/0.9158, allocations: 30.83 kB / 401.4 MB, free: 13.96 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002911/0.9161, allocations: 177.8 kB / 401.6 MB, free: 13.81 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001946/0.9163, allocations: 94.34 kB / 401.7 MB, free: 13.73 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003257/0.9167, allocations: 66.92 kB / 401.7 MB, free: 13.69 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0003946/0.9171, allocations: 341 kB / 402.1 MB, free: 13.36 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003079/0.9174, allocations: 83.58 kB / 402.2 MB, free: 13.33 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00045/0.9179, allocations: 184.3 kB / 402.3 MB, free: 13.18 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008409/0.9187, allocations: 283.7 kB / 402.6 MB, free: 12.97 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.013e-05/0.9188, allocations: 0 / 402.6 MB, free: 12.97 MB / 334.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001694/0.9205, allocations: 384 kB / 403 MB, free: 12.79 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.839e-05/0.9205, allocations: 7.438 kB / 403 MB, free: 12.79 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.094e-05/0.9206, allocations: 6.625 kB / 403 MB, free: 12.78 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004894/0.9211, allocations: 65.23 kB / 403.1 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005734/0.9217, allocations: 71.2 kB / 403.1 MB, free: 12.74 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004433/0.9261, allocations: 2.876 MB / 406 MB, free: 9.859 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005766/0.9267, allocations: 12.77 kB / 406 MB, free: 9.852 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.65e-05/0.9268, allocations: 12.03 kB / 406 MB, free: 9.852 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.0003697/0.9272, allocations: 159.8 kB / 406.2 MB, free: 9.703 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001636/0.9274, allocations: 29.47 kB / 406.2 MB, free: 9.688 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001396/0.9275, allocations: 35.53 kB / 406.3 MB, free: 9.66 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.756e-06/0.9276, allocations: 3.219 kB / 406.3 MB, free: 9.66 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.38e-05/0.9276, allocations: 1.891 kB / 406.3 MB, free: 9.66 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001222/0.9288, allocations: 0.5608 MB / 406.8 MB, free: 9.137 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006888/0.9357, allocations: 0.7002 MB / 407.5 MB, free: 8.645 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-05/0.9359, allocations: 3.25 kB / 407.5 MB, free: 8.645 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00049/0.9364, allocations: 47.8 kB / 407.6 MB, free: 8.637 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005326/0.9369, allocations: 51.98 kB / 407.6 MB, free: 8.621 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.411e-05/0.937, allocations: 7.359 kB / 407.6 MB, free: 8.617 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002826/0.9399, allocations: 1.493 MB / 409.1 MB, free: 7.141 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.231e-06/0.9399, allocations: 0 / 409.1 MB, free: 7.141 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001627/0.9416, allocations: 480.3 kB / 409.6 MB, free: 6.844 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003321/0.9419, allocations: 101.8 kB / 409.7 MB, free: 6.734 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001228/0.942, allocations: 7.281 kB / 409.7 MB, free: 6.73 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004395/0.9425, allocations: 10.56 kB / 409.7 MB, free: 6.723 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.119e-05/0.9426, allocations: 14.75 kB / 409.7 MB, free: 6.723 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.231e-05/0.9427, allocations: 12.8 kB / 409.7 MB, free: 6.719 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000428/0.9431, allocations: 183 kB / 409.9 MB, free: 6.613 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.487e-06/0.9431, allocations: 0 / 409.9 MB, free: 6.613 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009472/0.9441, allocations: 94.38 kB / 410 MB, free: 6.598 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.0002744/0.9444, allocations: 108.5 kB / 410.1 MB, free: 6.496 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001571/0.946, allocations: 481.1 kB / 410.6 MB, free: 6.18 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 8.706e-06/0.946, allocations: 2.125 kB / 410.6 MB, free: 6.18 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006655/0.9467, allocations: 237.9 kB / 410.8 MB, free: 6.02 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001592/0.9483, allocations: 168.1 kB / 411 MB, free: 5.973 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00264/0.9509, allocations: 0.7279 MB / 411.7 MB, free: 5.5 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001048/0.952, allocations: 0.7556 MB / 412.5 MB, free: 4.805 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002377/0.9523, allocations: 28.95 kB / 412.5 MB, free: 4.797 MB / 334.1 MB Notification: Performance of SimCode: time 2.084e-06/0.9523, allocations: 4 kB / 412.5 MB, free: 4.793 MB / 334.1 MB Notification: Performance of Templates: time 0.02785/0.9802, allocations: 6.004 MB / 418.5 MB, free: 1.93 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.makefile (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 & ./Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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