Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007642/0.0007642, allocations: 87.62 kB / 21.44 MB, free: 3.121 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002938/0.002938, allocations: 158.8 kB / 24.7 MB, free: 9.43 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8213/0.8213, allocations: 177.1 MB / 205 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2496/0.2496, allocations: 34.26 MB / 295.7 MB, free: 0.7031 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.TestColorMapToSvg,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg") translateModel(ModelicaTest.Math.TestColorMapToSvg,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.535e-06/2.535e-06, allocations: 0 / 443.4 MB, free: 1.188 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.448e-05/3.701e-05, allocations: 2.281 kB / 443.4 MB, free: 1.184 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001374/0.001411, allocations: 0.4924 MB / 443.9 MB, free: 0.6953 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.2002/0.2016, allocations: 1.11 MB / 445 MB, free: 43.65 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.397e-05/0.2017, allocations: 0 / 445 MB, free: 43.65 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 2.095e-05/0.2017, allocations: 0 / 445 MB, free: 43.65 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 8.496e-06/0.2017, allocations: 0 / 445 MB, free: 43.65 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/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 4.1.0+maint.om/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.001884/0.2036, allocations: 0.737 MB / 445.8 MB, free: 43.62 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 7.574e-05/0.2037, allocations: 6.469 kB / 445.8 MB, free: 43.62 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.286e-05/0.2037, allocations: 7.484 kB / 445.8 MB, free: 43.62 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.571e-05/0.2037, allocations: 0 / 445.8 MB, free: 43.62 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.368e-05/0.2038, allocations: 5.969 kB / 445.8 MB, free: 43.62 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.016e-05/0.2038, allocations: 0 / 445.8 MB, free: 43.62 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00173/0.2055, allocations: 2.459 MB / 448.2 MB, free: 43.38 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 9.277e-06/0.2055, allocations: 0.5469 kB / 448.2 MB, free: 43.38 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.995e-05/0.2055, allocations: 0 / 448.2 MB, free: 43.38 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003262/0.2059, allocations: 381.3 kB / 448.6 MB, free: 43.34 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.2059, allocations: 4 kB / 448.6 MB, free: 43.34 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.2059, allocations: 0 / 448.6 MB, free: 43.34 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.37e-06/0.2059, allocations: 0 / 448.6 MB, free: 43.34 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.000277/0.2061, allocations: 308.2 kB / 448.9 MB, free: 43.02 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.542e-05/0.2062, allocations: 8.625 kB / 448.9 MB, free: 43.02 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.603e-05/0.2062, allocations: 0 / 448.9 MB, free: 43.02 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 3.832e-05/0.2063, allocations: 107.5 kB / 449 MB, free: 42.9 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.117e-05/0.2063, allocations: 3.328 kB / 449 MB, free: 42.9 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.717e-06/0.2063, allocations: 0 / 449 MB, free: 42.9 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.848e-05/0.2064, allocations: 55.91 kB / 449.1 MB, free: 42.84 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.2064, allocations: 10.69 kB / 449.1 MB, free: 42.83 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.418e-06/0.2064, allocations: 4 kB / 449.1 MB, free: 42.82 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.2064, allocations: 0 / 449.1 MB, free: 42.82 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.907e-05/0.2064, allocations: 25.7 kB / 449.1 MB, free: 42.79 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.161e-05/0.2065, allocations: 101.2 kB / 449.2 MB, free: 42.67 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.805e-05/0.2065, allocations: 48.12 kB / 449.3 MB, free: 42.61 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.432e-05/0.2065, allocations: 33.56 kB / 449.3 MB, free: 42.57 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.823e-06/0.2065, allocations: 0 / 449.3 MB, free: 42.57 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.8e-05/0.2066, allocations: 57.2 kB / 449.4 MB, free: 42.5 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 5.51e-07/0.2066, allocations: 0 / 449.4 MB, free: 42.5 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001589/0.2067, allocations: 127.4 kB / 449.5 MB, free: 42.37 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.535e-05/0.2068, allocations: 84.08 kB / 449.6 MB, free: 42.27 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.798e-05/0.2068, allocations: 89.86 kB / 449.6 MB, free: 42.18 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.699e-06/0.2068, allocations: 25.7 kB / 449.7 MB, free: 42.14 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.022e-06/0.2068, allocations: 80.14 kB / 449.8 MB, free: 42.06 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.637e-05/0.2068, allocations: 3.266 kB / 449.8 MB, free: 42.06 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.869e-05/0.2068, allocations: 15.78 kB / 449.8 MB, free: 42.05 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.685e-05/0.2068, allocations: 314.8 kB / 450.1 MB, free: 41.73 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.044e-05/0.2069, allocations: 28.55 kB / 450.1 MB, free: 41.7 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.432e-06/0.2069, allocations: 29.64 kB / 450.1 MB, free: 41.67 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.88e-05/0.2069, allocations: 69.95 kB / 450.2 MB, free: 41.59 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.2069, allocations: 0 / 450.2 MB, free: 41.59 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.003e-05/0.2069, allocations: 91.83 kB / 450.3 MB, free: 41.5 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.171e-05/0.207, allocations: 31.3 kB / 450.3 MB, free: 41.46 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.207, allocations: 0 / 450.3 MB, free: 41.46 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.593e-05/0.207, allocations: 6.688 kB / 450.3 MB, free: 41.46 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.382e-06/0.207, allocations: 2.906 kB / 450.3 MB, free: 41.46 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.599e-06/0.207, allocations: 0 / 450.3 MB, free: 41.46 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.25e-05/0.207, allocations: 0 / 450.3 MB, free: 41.46 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.322e-06/0.207, allocations: 0 / 450.3 MB, free: 41.46 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 3.791e-05/0.207, allocations: 138.4 kB / 450.5 MB, free: 41.31 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.057e-06/0.207, allocations: 2.906 kB / 450.5 MB, free: 41.31 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.987e-06/0.207, allocations: 3 kB / 450.5 MB, free: 41.31 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.2071, allocations: 11.44 kB / 450.5 MB, free: 41.3 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.2071, allocations: 0 / 450.5 MB, free: 41.3 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.954e-06/0.2071, allocations: 0 / 450.5 MB, free: 41.3 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.422e-05/0.2071, allocations: 96.2 kB / 450.6 MB, free: 41.18 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.71e-07/0.2071, allocations: 0 / 450.6 MB, free: 41.18 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.71e-07/0.2071, allocations: 3.125 kB / 450.6 MB, free: 41.18 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.9e-07/0.2071, allocations: 0 / 450.6 MB, free: 41.18 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.843e-06/0.2071, allocations: 5.656 kB / 450.6 MB, free: 41.18 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.81e-07/0.2071, allocations: 7.938 kB / 450.6 MB, free: 41.18 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.2071, allocations: 3.938 kB / 450.6 MB, free: 41.17 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.952e-05/0.2072, allocations: 122.5 kB / 450.7 MB, free: 41.04 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.797e-06/0.2072, allocations: 2.938 kB / 450.7 MB, free: 41.04 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.876e-06/0.2072, allocations: 0 / 450.7 MB, free: 41.04 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.579e-06/0.2072, allocations: 0 / 450.7 MB, free: 41.04 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.21e-05/0.2072, allocations: 3.938 kB / 450.7 MB, free: 41.04 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.292e-06/0.2072, allocations: 2.812 kB / 450.7 MB, free: 41.04 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.178e-05/0.2072, allocations: 77.06 kB / 450.8 MB, free: 40.96 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2072, allocations: 0 / 450.8 MB, free: 40.96 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002079/0.2074, allocations: 54.83 kB / 450.9 MB, free: 40.95 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.0009366/0.2083, allocations: 0.5631 MB / 451.4 MB, free: 40.73 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 9.231e-05/0.2084, allocations: 119.8 kB / 451.5 MB, free: 40.59 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/0.2084, allocations: 4.062 kB / 451.5 MB, free: 40.59 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.199e-05/0.2084, allocations: 79.52 kB / 451.6 MB, free: 40.5 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.271e-05/0.2085, allocations: 2.844 kB / 451.6 MB, free: 40.5 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001664/0.2087, allocations: 139.2 kB / 451.8 MB, free: 40.34 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.47e-05/0.2087, allocations: 51.36 kB / 451.8 MB, free: 40.27 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.273e-05/0.2087, allocations: 11.28 kB / 451.8 MB, free: 40.26 MB / 410.7 MB Notification: Performance of SimCode: time 5.1e-07/0.2087, allocations: 0 / 451.8 MB, free: 40.26 MB / 410.7 MB Notification: Performance of Templates: time 0.00315/0.2119, allocations: 2.614 MB / 454.4 MB, free: 39.94 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg.sim & ./ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_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_4.1.0_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: 5.240466226823628]