Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008022/0.0008022, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0007727/0.0007727, allocations: 156.9 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9008/0.9008, allocations: 177 MB / 204.1 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2566/0.2566, allocations: 34.24 MB / 294.8 MB, free: 0.6719 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.TestColorMapToSvg,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestColorMapToSvg",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestColorMapToSvg,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestColorMapToSvg",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.034e-06/2.034e-06, allocations: 0 / 442.1 MB, free: 1.586 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.319e-05/2.523e-05, allocations: 8.891 kB / 442.1 MB, free: 1.578 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001636/0.001661, allocations: 0.4932 MB / 442.6 MB, free: 1.086 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1871/0.1888, allocations: 1.113 MB / 443.7 MB, free: 43.05 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.43e-05/0.1888, allocations: 0 / 443.7 MB, free: 43.05 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.688e-05/0.1889, allocations: 0 / 443.7 MB, free: 43.05 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 6.833e-06/0.1889, allocations: 3.844 kB / 443.7 MB, free: 43.05 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Mechanics/MultiBody/Visualizers/Colors/colorMapToSvg.mo:2:1-205:18:writable] Warning: Pure function 'Modelica.Mechanics.MultiBody.Visualizers.Colors.colorMapToSvg' contains a call to impure function 'Modelica.Utilities.Files.remove'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:663:3-677:20:writable] Warning: Pure function 'ModelicaTest.Math.colorMapToSvg' contains a call to impure function 'Modelica.Mechanics.MultiBody.Visualizers.Colors.colorMapToSvg'. Notification: Performance of NFTyping.typeClassSections: time 0.001787/0.1907, allocations: 0.7463 MB / 444.5 MB, free: 43.05 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 5.26e-05/0.1907, allocations: 0 / 444.5 MB, free: 43.05 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.646e-05/0.1907, allocations: 3.594 kB / 444.5 MB, free: 43.05 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.634e-05/0.1908, allocations: 3.234 kB / 444.5 MB, free: 43.05 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.796e-05/0.1908, allocations: 0 / 444.5 MB, free: 43.05 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 7.214e-06/0.1908, allocations: 0 / 444.5 MB, free: 43.05 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001629/0.1924, allocations: 2.463 MB / 447 MB, free: 42.81 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.039e-05/0.1924, allocations: 5.172 kB / 447 MB, free: 42.81 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.232e-05/0.1925, allocations: 2.75 kB / 447 MB, free: 42.81 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003427/0.1928, allocations: 369.4 kB / 447.3 MB, free: 42.8 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.1928, allocations: 0 / 447.3 MB, free: 42.8 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1928, allocations: 0 / 447.3 MB, free: 42.8 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.528e-06/0.1928, allocations: 0 / 447.3 MB, free: 42.8 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002721/0.1931, allocations: 312 kB / 447.6 MB, free: 42.5 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.38e-05/0.1931, allocations: 12.09 kB / 447.6 MB, free: 42.5 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.933e-05/0.1931, allocations: 30.56 kB / 447.7 MB, free: 42.46 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.441e-05/0.1932, allocations: 0 / 447.7 MB, free: 42.46 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 3.829e-05/0.1932, allocations: 111.3 kB / 447.8 MB, free: 42.33 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.839e-06/0.1932, allocations: 0 / 447.8 MB, free: 42.33 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.354e-06/0.1932, allocations: 2.688 kB / 447.8 MB, free: 42.33 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.769e-05/0.1933, allocations: 57.25 kB / 447.8 MB, free: 42.27 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.163e-06/0.1933, allocations: 0 / 447.8 MB, free: 42.27 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.284e-06/0.1933, allocations: 7.875 kB / 447.8 MB, free: 42.26 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.188e-06/0.1933, allocations: 4.062 kB / 447.8 MB, free: 42.26 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.026e-05/0.1933, allocations: 31.98 kB / 447.9 MB, free: 42.23 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.906e-05/0.1934, allocations: 118.9 kB / 448 MB, free: 42.07 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.798e-05/0.1935, allocations: 42.88 kB / 448 MB, free: 42.02 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.258e-05/0.1935, allocations: 34.56 kB / 448.1 MB, free: 41.98 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.684e-06/0.1935, allocations: 2.688 kB / 448.1 MB, free: 41.98 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.673e-05/0.1935, allocations: 65.91 kB / 448.1 MB, free: 41.91 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 8.21e-07/0.1935, allocations: 0 / 448.1 MB, free: 41.91 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001582/0.1937, allocations: 115.1 kB / 448.2 MB, free: 41.78 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.728e-05/0.1937, allocations: 83.2 kB / 448.3 MB, free: 41.68 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.671e-05/0.1937, allocations: 96 kB / 448.4 MB, free: 41.59 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.328e-06/0.1937, allocations: 25.7 kB / 448.4 MB, free: 41.55 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.742e-06/0.1937, allocations: 83.05 kB / 448.5 MB, free: 41.47 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.541e-05/0.1937, allocations: 0 / 448.5 MB, free: 41.47 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.157e-05/0.1938, allocations: 18.75 kB / 448.5 MB, free: 41.45 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.757e-05/0.1938, allocations: 310.8 kB / 448.9 MB, free: 41.14 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.218e-05/0.1938, allocations: 29.64 kB / 448.9 MB, free: 41.11 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.614e-06/0.1938, allocations: 29.03 kB / 448.9 MB, free: 41.08 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.536e-05/0.1938, allocations: 65.7 kB / 449 MB, free: 41.01 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.462e-06/0.1938, allocations: 0 / 449 MB, free: 41.01 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.87e-05/0.1939, allocations: 85.48 kB / 449.1 MB, free: 40.91 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.278e-05/0.1939, allocations: 34.5 kB / 449.1 MB, free: 40.88 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.1939, allocations: 2.688 kB / 449.1 MB, free: 40.88 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.243e-05/0.1939, allocations: 8.031 kB / 449.1 MB, free: 40.88 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.072e-06/0.1939, allocations: 0 / 449.1 MB, free: 40.88 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/0.1939, allocations: 0 / 449.1 MB, free: 40.88 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.23e-05/0.1939, allocations: 0 / 449.1 MB, free: 40.88 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.322e-06/0.1939, allocations: 2.531 kB / 449.1 MB, free: 40.88 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.196e-05/0.194, allocations: 137.9 kB / 449.2 MB, free: 40.73 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.088e-06/0.194, allocations: 3.281 kB / 449.2 MB, free: 40.73 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.001e-05/0.194, allocations: 3 kB / 449.2 MB, free: 40.73 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.194, allocations: 3.938 kB / 449.2 MB, free: 40.72 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.194, allocations: 3 kB / 449.3 MB, free: 40.72 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.064e-06/0.194, allocations: 4 kB / 449.3 MB, free: 40.72 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.633e-05/0.194, allocations: 116.7 kB / 449.4 MB, free: 40.57 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.194, allocations: 10.72 kB / 449.4 MB, free: 40.56 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.61e-07/0.194, allocations: 3.281 kB / 449.4 MB, free: 40.56 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.21e-07/0.194, allocations: 0 / 449.4 MB, free: 40.56 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.781e-06/0.194, allocations: 0 / 449.4 MB, free: 40.56 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.71e-07/0.194, allocations: 3.938 kB / 449.4 MB, free: 40.55 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.194, allocations: 3 kB / 449.4 MB, free: 40.55 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.867e-05/0.1941, allocations: 115.5 kB / 449.5 MB, free: 40.43 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.217e-06/0.1941, allocations: 2.875 kB / 449.5 MB, free: 40.43 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.516e-06/0.1941, allocations: 4.031 kB / 449.5 MB, free: 40.43 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.691e-06/0.1941, allocations: 3.938 kB / 449.5 MB, free: 40.42 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.135e-05/0.1941, allocations: 5.625 kB / 449.5 MB, free: 40.42 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.422e-06/0.1941, allocations: 0 / 449.5 MB, free: 40.42 MB / 410.7 MB Notification: Performance of sorting global known variables: time 9.488e-06/0.1941, allocations: 75.28 kB / 449.6 MB, free: 40.35 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1941, allocations: 0 / 449.6 MB, free: 40.35 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002039/0.1943, allocations: 57.36 kB / 449.6 MB, free: 40.34 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001037/0.1954, allocations: 1.108 MB / 450.8 MB, free: 39.57 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 8.39e-05/0.1955, allocations: 112.5 kB / 450.9 MB, free: 39.45 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.1955, allocations: 0 / 450.9 MB, free: 39.45 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.257e-05/0.1955, allocations: 83.19 kB / 450.9 MB, free: 39.36 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.918e-05/0.1956, allocations: 6.719 kB / 451 MB, free: 39.35 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002576/0.1958, allocations: 159.4 kB / 451.1 MB, free: 39.18 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.548e-05/0.1959, allocations: 61.34 kB / 451.2 MB, free: 39.1 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 5.2e-06/0.1959, allocations: 0 / 451.2 MB, free: 39.1 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.385e-05/0.1959, allocations: 11.31 kB / 451.2 MB, free: 39.09 MB / 410.7 MB Notification: Performance of SimCode: time 2.81e-07/0.1959, allocations: 2.812 kB / 451.2 MB, free: 39.09 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01836/0.2142, allocations: 3.752 MB / 454.9 MB, free: 37.94 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.892/7.107, allocations: 6.594 kB / 454.9 MB, free: 37.93 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_TestColorMapToSvg_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_TestColorMapToSvg.fmu > ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/TestColorMapToSvg/TestColorMapToSvg.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.026732165366411]