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.001789/0.001789, allocations: 107.6 kB / 21.18 MB, free: 0.5273 MB / 14.72 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.002269/0.002269, allocations: 207.5 kB / 24.48 MB, free: 3.695 MB / 14.72 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 1.533/1.533, allocations: 230.6 MB / 258.2 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] 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.227/0.227, allocations: 46.98 MB / 361.6 MB, free: 4.016 MB / 286.1 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 0.00202/0.00202, allocations: 67.91 kB / 0.4973 GB, free: 7.203 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3744/0.3765, allocations: 66.03 MB / 0.5618 GB, free: 4.148 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001772/0.3782, allocations: 0.4931 MB / 0.5623 GB, free: 3.652 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002132/0.3804, allocations: 1.104 MB / 0.5634 GB, free: 2.543 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.047e-05/0.3804, allocations: 0 / 0.5634 GB, free: 2.543 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.519e-05/0.3804, allocations: 0 / 0.5634 GB, free: 2.543 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.191e-06/0.3804, allocations: 0 / 0.5634 GB, free: 2.543 MB / 398.1 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.002216/0.3826, allocations: 0.7541 MB / 0.5641 GB, free: 1.797 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.651e-05/0.3827, allocations: 4 kB / 0.5641 GB, free: 1.793 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.406e-05/0.3827, allocations: 3.984 kB / 0.5641 GB, free: 1.789 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.867e-05/0.3827, allocations: 11.98 kB / 0.5641 GB, free: 1.777 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.892e-05/0.3828, allocations: 0 / 0.5641 GB, free: 1.777 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.401e-06/0.3828, allocations: 0 / 0.5641 GB, free: 1.777 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003699/0.3865, allocations: 2.472 MB / 0.5665 GB, free: 15.3 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.528e-06/0.3865, allocations: 0 / 0.5665 GB, free: 15.3 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.064e-05/0.3865, allocations: 0 / 0.5665 GB, free: 15.3 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004964/0.387, allocations: 347.4 kB / 0.5669 GB, free: 14.96 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.387, allocations: 0 / 0.5669 GB, free: 14.96 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.387, allocations: 0 / 0.5669 GB, free: 14.96 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.145e-05/0.387, allocations: 4 kB / 0.5669 GB, free: 14.96 MB / 414.1 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.0004579/0.3875, allocations: 303.5 kB / 0.5671 GB, free: 14.63 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.712e-05/0.3875, allocations: 8.031 kB / 0.5672 GB, free: 14.62 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.424e-05/0.3875, allocations: 4 kB / 0.5672 GB, free: 14.62 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.035e-05/0.3876, allocations: 105.2 kB / 0.5673 GB, free: 14.49 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.073e-05/0.3876, allocations: 3.938 kB / 0.5673 GB, free: 14.48 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.09e-05/0.3876, allocations: 0 / 0.5673 GB, free: 14.48 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001122/0.3878, allocations: 59.39 kB / 0.5673 GB, free: 14.41 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.586e-06/0.3878, allocations: 0 / 0.5673 GB, free: 14.41 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.674e-06/0.3878, allocations: 0 / 0.5673 GB, free: 14.41 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.3878, allocations: 3.938 kB / 0.5673 GB, free: 14.41 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.741e-05/0.3878, allocations: 37.62 kB / 0.5674 GB, free: 14.37 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001157/0.3879, allocations: 97.33 kB / 0.5675 GB, free: 14.24 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.475e-05/0.388, allocations: 44.31 kB / 0.5675 GB, free: 14.18 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.359e-05/0.388, allocations: 42.48 kB / 0.5675 GB, free: 14.13 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.337e-06/0.388, allocations: 0 / 0.5675 GB, free: 14.13 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.347e-05/0.3881, allocations: 60.33 kB / 0.5676 GB, free: 14.06 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 8.42e-07/0.3881, allocations: 3.938 kB / 0.5676 GB, free: 14.05 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.000212/0.3883, allocations: 122.7 kB / 0.5677 GB, free: 13.91 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.673e-05/0.3884, allocations: 77.11 kB / 0.5678 GB, free: 13.82 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.8e-05/0.3884, allocations: 93.81 kB / 0.5679 GB, free: 13.71 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.388e-05/0.3884, allocations: 25.7 kB / 0.5679 GB, free: 13.68 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.565e-05/0.3885, allocations: 80.14 kB / 0.568 GB, free: 13.6 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.076e-05/0.3885, allocations: 4 kB / 0.568 GB, free: 13.6 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.849e-05/0.3885, allocations: 17.83 kB / 0.568 GB, free: 13.57 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001422/0.3887, allocations: 314.8 kB / 0.5683 GB, free: 13.26 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.34e-05/0.3887, allocations: 29.7 kB / 0.5683 GB, free: 13.22 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.006e-05/0.3887, allocations: 25.7 kB / 0.5684 GB, free: 13.19 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.234e-05/0.3888, allocations: 60.27 kB / 0.5684 GB, free: 13.12 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.3888, allocations: 0 / 0.5684 GB, free: 13.12 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.000104/0.3889, allocations: 101 kB / 0.5685 GB, free: 13 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.563e-05/0.3889, allocations: 29.7 kB / 0.5685 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.191e-06/0.3889, allocations: 4 kB / 0.5685 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.28e-05/0.3889, allocations: 96 / 0.5685 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.022e-06/0.3889, allocations: 4 kB / 0.5685 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.591e-06/0.3889, allocations: 7.984 kB / 0.5685 GB, free: 12.95 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.455e-05/0.389, allocations: 0 / 0.5685 GB, free: 12.95 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.472e-06/0.389, allocations: 0 / 0.5685 GB, free: 12.95 MB / 414.1 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 0.0001042/0.3891, allocations: 139.5 kB / 0.5687 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.889e-06/0.3891, allocations: 3.938 kB / 0.5687 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.998e-06/0.3891, allocations: 3 kB / 0.5687 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-06/0.3891, allocations: 0 / 0.5687 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.3891, allocations: 0 / 0.5687 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.255e-06/0.3891, allocations: 0 / 0.5687 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.338e-05/0.3892, allocations: 101.3 kB / 0.5688 GB, free: 12.66 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.01e-07/0.3892, allocations: 0 / 0.5688 GB, free: 12.66 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.415e-06/0.3892, allocations: 3.984 kB / 0.5688 GB, free: 12.66 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.548e-06/0.3892, allocations: 3.938 kB / 0.5688 GB, free: 12.65 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.011e-06/0.3892, allocations: 0 / 0.5688 GB, free: 12.65 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.21e-07/0.3892, allocations: 0 / 0.5688 GB, free: 12.65 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.3892, allocations: 0 / 0.5688 GB, free: 12.65 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000122/0.3893, allocations: 124.5 kB / 0.5689 GB, free: 12.5 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.222e-06/0.3893, allocations: 11.88 kB / 0.5689 GB, free: 12.49 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.455e-05/0.3893, allocations: 3.938 kB / 0.5689 GB, free: 12.48 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.606e-06/0.3894, allocations: 4.031 kB / 0.5689 GB, free: 12.48 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.434e-05/0.3894, allocations: 0 / 0.5689 GB, free: 12.48 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.302e-06/0.3894, allocations: 4 kB / 0.5689 GB, free: 12.48 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.343e-05/0.3894, allocations: 75.28 kB / 0.569 GB, free: 12.4 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3894, allocations: 0 / 0.569 GB, free: 12.4 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000359/0.3898, allocations: 51.8 kB / 0.5691 GB, free: 12.35 MB / 414.1 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.00162/0.3914, allocations: 0.5517 MB / 0.5696 GB, free: 11.87 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001538/0.3915, allocations: 110.8 kB / 0.5697 GB, free: 11.74 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3915, allocations: 0 / 0.5697 GB, free: 11.74 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.066e-05/0.3916, allocations: 89.03 kB / 0.5698 GB, free: 11.63 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001297/0.3917, allocations: 4 kB / 0.5698 GB, free: 11.63 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002221/0.392, allocations: 132.4 kB / 0.5699 GB, free: 11.46 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.641e-05/0.392, allocations: 51.36 kB / 0.57 GB, free: 11.39 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.71e-05/0.392, allocations: 15.56 kB / 0.57 GB, free: 11.38 MB / 414.1 MB Notification: Performance of SimCode: time 3.01e-07/0.392, allocations: 0 / 0.57 GB, free: 11.38 MB / 414.1 MB Notification: Performance of Templates: time 0.004854/0.3969, allocations: 2.591 MB / 0.5725 GB, free: 8.781 MB / 414.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/TestColorMapToSvg/TestColorMapToSvg.csv","/var/lib/jenkins1/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: 8.201733305992093]