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.001761/0.001761, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.001825/0.001825, allocations: 216.5 kB / 23.75 MB, free: 4.668 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.509/1.509, allocations: 230.6 MB / 257.5 MB, free: 8.004 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.2488/0.2488, allocations: 46.93 MB / 360.8 MB, free: 4.273 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.002075/0.002075, allocations: 71.88 kB / 0.4966 GB, free: 7.414 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4298/0.4319, allocations: 66.02 MB / 0.5611 GB, free: 4.445 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001942/0.4339, allocations: 0.4931 MB / 0.5616 GB, free: 3.949 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0024/0.4363, allocations: 1.174 MB / 0.5627 GB, free: 2.77 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.544e-05/0.4363, allocations: 0 / 0.5627 GB, free: 2.77 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.021e-05/0.4363, allocations: 7.938 kB / 0.5627 GB, free: 2.762 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.564e-06/0.4363, allocations: 0 / 0.5627 GB, free: 2.762 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.002452/0.4388, allocations: 0.7454 MB / 0.5635 GB, free: 2.023 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.999e-05/0.4388, allocations: 8 kB / 0.5635 GB, free: 2.016 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.914e-05/0.4389, allocations: 3.984 kB / 0.5635 GB, free: 2.012 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.894e-05/0.4389, allocations: 0 / 0.5635 GB, free: 2.012 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.777e-05/0.4389, allocations: 0 / 0.5635 GB, free: 2.012 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.282e-06/0.4389, allocations: 4 kB / 0.5635 GB, free: 2.008 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003646/0.4426, allocations: 2.511 MB / 0.5659 GB, free: 15.5 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.091e-05/0.4426, allocations: 0 / 0.5659 GB, free: 15.5 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.345e-05/0.4426, allocations: 0 / 0.5659 GB, free: 15.5 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004924/0.4431, allocations: 359.3 kB / 0.5663 GB, free: 15.14 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.506e-05/0.4431, allocations: 12 kB / 0.5663 GB, free: 15.13 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.4431, allocations: 0 / 0.5663 GB, free: 15.13 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.843e-06/0.4431, allocations: 0 / 0.5663 GB, free: 15.13 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.0005064/0.4436, allocations: 295.5 kB / 0.5666 GB, free: 14.81 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.387e-05/0.4437, allocations: 8.031 kB / 0.5666 GB, free: 14.8 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.275e-05/0.4437, allocations: 8 kB / 0.5666 GB, free: 14.79 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001009/0.4438, allocations: 105.2 kB / 0.5667 GB, free: 14.66 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.237e-05/0.4438, allocations: 7.922 kB / 0.5667 GB, free: 14.66 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.316e-05/0.4438, allocations: 0 / 0.5667 GB, free: 14.66 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001042/0.4439, allocations: 41.62 kB / 0.5667 GB, free: 14.61 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.031e-05/0.444, allocations: 0 / 0.5667 GB, free: 14.61 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.134e-05/0.444, allocations: 0 / 0.5667 GB, free: 14.61 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-06/0.444, allocations: 0 / 0.5667 GB, free: 14.61 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.83e-05/0.444, allocations: 0 / 0.5667 GB, free: 14.61 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001629/0.4441, allocations: 116.8 kB / 0.5668 GB, free: 14.45 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.088e-05/0.4442, allocations: 26.45 kB / 0.5669 GB, free: 14.42 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.189e-05/0.4442, allocations: 12.94 kB / 0.5669 GB, free: 14.4 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.618e-06/0.4442, allocations: 7.938 kB / 0.5669 GB, free: 14.39 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.09e-05/0.4443, allocations: 56.27 kB / 0.5669 GB, free: 14.32 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 1.092e-06/0.4443, allocations: 0 / 0.5669 GB, free: 14.32 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002086/0.4445, allocations: 59.41 kB / 0.567 GB, free: 14.25 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.204e-05/0.4446, allocations: 81.11 kB / 0.5671 GB, free: 14.16 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.503e-05/0.4446, allocations: 97.8 kB / 0.5672 GB, free: 14.05 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.773e-05/0.4446, allocations: 25.7 kB / 0.5672 GB, free: 14.02 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.93e-05/0.4447, allocations: 84.27 kB / 0.5673 GB, free: 13.93 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.541e-05/0.4447, allocations: 4 kB / 0.5673 GB, free: 13.93 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.314e-05/0.4448, allocations: 9.719 kB / 0.5673 GB, free: 13.91 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002016/0.445, allocations: 310.8 kB / 0.5676 GB, free: 13.6 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.178e-05/0.445, allocations: 0 / 0.5676 GB, free: 13.6 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.724e-06/0.445, allocations: 7.938 kB / 0.5676 GB, free: 13.59 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.549e-05/0.4451, allocations: 64.27 kB / 0.5677 GB, free: 13.52 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-06/0.4451, allocations: 0 / 0.5677 GB, free: 13.52 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.783e-05/0.4451, allocations: 67.39 kB / 0.5677 GB, free: 13.44 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.199e-05/0.4452, allocations: 33.7 kB / 0.5678 GB, free: 13.4 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.418e-06/0.4452, allocations: 0 / 0.5678 GB, free: 13.4 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.505e-05/0.4452, allocations: 4 kB / 0.5678 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.001e-06/0.4452, allocations: 0 / 0.5678 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.651e-06/0.4452, allocations: 0 / 0.5678 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.713e-05/0.4452, allocations: 0 / 0.5678 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.298e-06/0.4452, allocations: 4 kB / 0.5678 GB, free: 13.39 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.0001012/0.4453, allocations: 139.5 kB / 0.5679 GB, free: 13.24 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.067e-06/0.4453, allocations: 8.031 kB / 0.5679 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.106e-05/0.4454, allocations: 6.938 kB / 0.5679 GB, free: 13.22 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.025e-06/0.4454, allocations: 4 kB / 0.5679 GB, free: 13.22 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.4454, allocations: 0 / 0.5679 GB, free: 13.22 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.4454, allocations: 0 / 0.5679 GB, free: 13.22 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001042/0.4455, allocations: 116.7 kB / 0.568 GB, free: 13.06 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.4455, allocations: 3.984 kB / 0.568 GB, free: 13.06 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.4455, allocations: 3.938 kB / 0.568 GB, free: 13.05 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.082e-06/0.4455, allocations: 4 kB / 0.568 GB, free: 13.05 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.003e-06/0.4455, allocations: 0 / 0.568 GB, free: 13.05 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.01e-07/0.4455, allocations: 7.938 kB / 0.568 GB, free: 13.04 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.4455, allocations: 0 / 0.568 GB, free: 13.04 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001139/0.4456, allocations: 94.77 kB / 0.5681 GB, free: 12.93 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.028e-06/0.4456, allocations: 0 / 0.5681 GB, free: 12.93 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.18e-05/0.4456, allocations: 0 / 0.5681 GB, free: 12.93 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.095e-06/0.4456, allocations: 0 / 0.5681 GB, free: 12.93 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.006e-05/0.4456, allocations: 4 kB / 0.5681 GB, free: 12.92 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.555e-06/0.4456, allocations: 0 / 0.5681 GB, free: 12.92 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.647e-05/0.4457, allocations: 79.31 kB / 0.5682 GB, free: 12.84 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4457, allocations: 0 / 0.5682 GB, free: 12.84 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003266/0.446, allocations: 55.73 kB / 0.5683 GB, free: 12.79 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.4476, allocations: 0.5401 MB / 0.5688 GB, free: 12.3 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001255/0.4477, allocations: 59.41 kB / 0.5689 GB, free: 12.23 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.4478, allocations: 0 / 0.5689 GB, free: 12.23 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.85e-05/0.4478, allocations: 55.41 kB / 0.5689 GB, free: 12.17 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001407/0.4479, allocations: 3.938 kB / 0.5689 GB, free: 12.16 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002423/0.4482, allocations: 81.05 kB / 0.569 GB, free: 12.06 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003127/0.4485, allocations: 0.669 MB / 0.5696 GB, free: 11.36 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.25e-06/0.4485, allocations: 4.125 kB / 0.5696 GB, free: 11.36 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.533e-05/0.4485, allocations: 11.44 kB / 0.5697 GB, free: 11.35 MB / 414.1 MB Notification: Performance of SimCode: time 3.91e-07/0.4485, allocations: 3.938 kB / 0.5697 GB, free: 11.34 MB / 414.1 MB Notification: Performance of Templates: time 0.006308/0.4548, allocations: 2.156 MB / 0.5718 GB, free: 9.18 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/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.675653264159337]