Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.conf.json 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 4.0.0+maint.om/package.mo", uses=false) 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: translateModel(ModelicaTest.Math.TestColorMapToSvg,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg") translateModel(ModelicaTest.Math.TestColorMapToSvg,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001149/0.001148, allocations: 186.9 kB / 17.97 MB, free: 3.797 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.277/1.277, allocations: 222.9 MB / 241.6 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001053/0.001052, allocations: 111.8 kB / 291.9 MB, free: 10.91 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.329/0.329, allocations: 44.13 MB / 386.1 MB, free: 37.95 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009761/0.0009761, allocations: 59.91 kB / 457.7 MB, free: 2.281 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3253/0.3263, allocations: 60.8 MB / 0.5064 GB, free: 38.26 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001562/0.3278, allocations: 0.5525 MB / 0.5069 GB, free: 37.94 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001637/0.3295, allocations: 1.185 MB / 0.5081 GB, free: 37.18 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.086e-05/0.3295, allocations: 3.938 kB / 0.5081 GB, free: 37.17 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.309e-05/0.3295, allocations: 0 / 0.5081 GB, free: 37.17 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 4.459e-06/0.3296, allocations: 0 / 0.5081 GB, free: 37.17 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.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.0.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.001671/0.3312, allocations: 0.6306 MB / 0.5087 GB, free: 36.95 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.292e-05/0.3313, allocations: 4 kB / 0.5087 GB, free: 36.95 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.778e-05/0.3313, allocations: 2.5 kB / 0.5087 GB, free: 36.95 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.408e-05/0.3313, allocations: 0 / 0.5087 GB, free: 36.95 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.365e-05/0.3314, allocations: 0 / 0.5087 GB, free: 36.95 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.789e-06/0.3314, allocations: 0 / 0.5087 GB, free: 36.95 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002522/0.3339, allocations: 2.601 MB / 0.5112 GB, free: 36.58 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 9.037e-06/0.3339, allocations: 3.938 kB / 0.5113 GB, free: 36.58 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.055e-05/0.3339, allocations: 3.938 kB / 0.5113 GB, free: 36.57 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004486/0.3344, allocations: 426.8 kB / 0.5117 GB, free: 36.52 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.367e-06/0.3344, allocations: 0 / 0.5117 GB, free: 36.52 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.3344, allocations: 0 / 0.5117 GB, free: 36.52 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.118e-06/0.3344, allocations: 0 / 0.5117 GB, free: 36.52 MB / 378.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.0003396/0.3348, allocations: 384.5 kB / 0.512 GB, free: 36.11 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.594e-05/0.3348, allocations: 8.312 kB / 0.512 GB, free: 36.11 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.451e-05/0.3349, allocations: 10.55 kB / 0.512 GB, free: 36.1 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.199e-05/0.3349, allocations: 166.2 kB / 0.5122 GB, free: 35.9 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.548e-06/0.3349, allocations: 0 / 0.5122 GB, free: 35.9 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.143e-06/0.3349, allocations: 0 / 0.5122 GB, free: 35.9 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.344e-05/0.335, allocations: 28.48 kB / 0.5122 GB, free: 35.87 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.234e-06/0.335, allocations: 0 / 0.5122 GB, free: 35.87 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.857e-06/0.3351, allocations: 2.625 kB / 0.5122 GB, free: 35.87 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.3351, allocations: 4 kB / 0.5122 GB, free: 35.87 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.804e-05/0.3351, allocations: 3.938 kB / 0.5122 GB, free: 35.86 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.087e-05/0.3352, allocations: 151.7 kB / 0.5124 GB, free: 35.67 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.378e-05/0.3352, allocations: 22.52 kB / 0.5124 GB, free: 35.64 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.084e-05/0.3352, allocations: 7.547 kB / 0.5124 GB, free: 35.63 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.897e-06/0.3352, allocations: 0 / 0.5124 GB, free: 35.63 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.672e-05/0.3353, allocations: 60.27 kB / 0.5125 GB, free: 35.56 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 7.62e-07/0.3353, allocations: 2.656 kB / 0.5125 GB, free: 35.56 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001493/0.3354, allocations: 63.81 kB / 0.5125 GB, free: 35.49 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.908e-05/0.3355, allocations: 83.86 kB / 0.5126 GB, free: 35.39 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.385e-05/0.3355, allocations: 93.8 kB / 0.5127 GB, free: 35.29 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.396e-06/0.3355, allocations: 25.7 kB / 0.5127 GB, free: 35.26 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.069e-05/0.3355, allocations: 80.14 kB / 0.5128 GB, free: 35.18 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.321e-05/0.3356, allocations: 0 / 0.5128 GB, free: 35.18 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.282e-05/0.3356, allocations: 19.64 kB / 0.5128 GB, free: 35.16 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.535e-05/0.3356, allocations: 318.8 kB / 0.5131 GB, free: 34.84 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.726e-06/0.3356, allocations: 2.938 kB / 0.5131 GB, free: 34.84 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.96e-06/0.3357, allocations: 3.938 kB / 0.5131 GB, free: 34.84 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.871e-05/0.3357, allocations: 58.89 kB / 0.5132 GB, free: 34.77 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.3357, allocations: 0 / 0.5132 GB, free: 34.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.891e-05/0.3358, allocations: 66.09 kB / 0.5133 GB, free: 34.7 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.495e-05/0.3358, allocations: 36.02 kB / 0.5133 GB, free: 34.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.147e-06/0.3358, allocations: 4.094 kB / 0.5133 GB, free: 34.66 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.141e-05/0.3358, allocations: 2.469 kB / 0.5133 GB, free: 34.66 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.92e-07/0.3358, allocations: 0 / 0.5133 GB, free: 34.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.039e-06/0.3358, allocations: 0 / 0.5133 GB, free: 34.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.423e-05/0.3359, allocations: 7.875 kB / 0.5133 GB, free: 34.65 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.372e-06/0.3359, allocations: 5.719 kB / 0.5133 GB, free: 34.65 MB / 378.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.525e-05/0.3359, allocations: 134.7 kB / 0.5134 GB, free: 34.51 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.013e-06/0.3359, allocations: 0 / 0.5134 GB, free: 34.51 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.957e-06/0.3359, allocations: 6.719 kB / 0.5134 GB, free: 34.51 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-06/0.3359, allocations: 4 kB / 0.5134 GB, free: 34.5 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.336, allocations: 0 / 0.5134 GB, free: 34.5 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.336, allocations: 3.938 kB / 0.5135 GB, free: 34.5 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.335e-05/0.336, allocations: 147.9 kB / 0.5136 GB, free: 34.31 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.11e-07/0.336, allocations: 0 / 0.5136 GB, free: 34.31 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.2e-07/0.336, allocations: 0 / 0.5136 GB, free: 34.31 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.312e-06/0.336, allocations: 0 / 0.5136 GB, free: 34.31 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.843e-06/0.336, allocations: 2.375 kB / 0.5136 GB, free: 34.31 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.22e-07/0.3361, allocations: 0 / 0.5136 GB, free: 34.31 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.3361, allocations: 0 / 0.5136 GB, free: 34.31 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001865/0.3362, allocations: 0.6479 MB / 0.5142 GB, free: 33.62 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.511e-05/0.3363, allocations: 81.05 kB / 0.5143 GB, free: 33.52 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.065e-05/0.3363, allocations: 0 / 0.5143 GB, free: 33.52 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.006e-05/0.3363, allocations: 5.75 kB / 0.5143 GB, free: 33.52 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.445e-05/0.3363, allocations: 0 / 0.5143 GB, free: 33.52 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.344e-06/0.3363, allocations: 0 / 0.5143 GB, free: 33.52 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.112e-05/0.3363, allocations: 79.31 kB / 0.5144 GB, free: 33.45 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3363, allocations: 0 / 0.5144 GB, free: 33.45 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004288/0.3368, allocations: 51.86 kB / 0.5144 GB, free: 33.43 MB / 378.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.001635/0.3384, allocations: 0.5513 MB / 0.515 GB, free: 33.15 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 6.908e-05/0.3385, allocations: 59.78 kB / 0.515 GB, free: 33.09 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3385, allocations: 1.438 kB / 0.515 GB, free: 33.09 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.824e-05/0.3385, allocations: 57.62 kB / 0.5151 GB, free: 33.02 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001132/0.3387, allocations: 5.219 kB / 0.5151 GB, free: 33.02 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001715/0.3388, allocations: 180.6 kB / 0.5153 GB, free: 32.81 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.357e-05/0.3389, allocations: 0.6745 MB / 0.5159 GB, free: 32.12 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 5.11e-06/0.3389, allocations: 4.125 kB / 0.5159 GB, free: 32.11 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.334e-06/0.339, allocations: 8.531 kB / 0.5159 GB, free: 32.11 MB / 378.7 MB Notification: Performance of SimCode: time 2.2e-07/0.339, allocations: 1.125 kB / 0.5159 GB, free: 32.11 MB / 378.7 MB Notification: Performance of Templates: time 0.004495/0.3435, allocations: 2.137 MB / 0.518 GB, free: 31.82 MB / 378.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestColorMapToSvg/TestColorMapToSvg.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches