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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Math.TestColorMapToSvg,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg") translateModel(ModelicaTest.Math.TestColorMapToSvg,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001179/0.001179, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.402/1.402, allocations: 226.7 MB / 245.5 MB, free: 6.977 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001365/0.001365, allocations: 110.2 kB / 296.7 MB, free: 6.453 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3541/0.3541, allocations: 44.84 MB / 392.7 MB, free: 34.75 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001439/0.001439, allocations: 63.89 kB / 465.5 MB, free: 12.08 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3227/0.3241, allocations: 62.01 MB / 0.5151 GB, free: 37.81 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001575/0.3257, allocations: 0.5552 MB / 0.5157 GB, free: 37.46 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0017/0.3275, allocations: 1.182 MB / 0.5168 GB, free: 36.7 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.145e-05/0.3275, allocations: 3.531 kB / 0.5168 GB, free: 36.7 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.453e-05/0.3275, allocations: 0 / 0.5168 GB, free: 36.7 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 4.739e-06/0.3275, allocations: 4 kB / 0.5169 GB, free: 36.69 MB / 378.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.001686/0.3292, allocations: 0.6221 MB / 0.5175 GB, free: 36.47 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.137e-05/0.3293, allocations: 2.562 kB / 0.5175 GB, free: 36.47 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.463e-05/0.3293, allocations: 0 / 0.5175 GB, free: 36.47 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.646e-05/0.3293, allocations: 3.938 kB / 0.5175 GB, free: 36.47 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.826e-05/0.3293, allocations: 6.672 kB / 0.5175 GB, free: 36.46 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.6e-06/0.3294, allocations: 0 / 0.5175 GB, free: 36.46 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002639/0.332, allocations: 2.601 MB / 0.52 GB, free: 36.1 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 8.967e-06/0.332, allocations: 2.531 kB / 0.52 GB, free: 36.1 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.08e-05/0.332, allocations: 0 / 0.52 GB, free: 36.1 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004283/0.3325, allocations: 433.5 kB / 0.5204 GB, free: 36.04 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.3325, allocations: 0 / 0.5204 GB, free: 36.04 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.3325, allocations: 0 / 0.5204 GB, free: 36.04 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.439e-06/0.3325, allocations: 4 kB / 0.5204 GB, free: 36.04 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.0003247/0.3328, allocations: 373.2 kB / 0.5208 GB, free: 35.64 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.524e-05/0.3329, allocations: 10.72 kB / 0.5208 GB, free: 35.64 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.061e-05/0.3329, allocations: 3.938 kB / 0.5208 GB, free: 35.63 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.689e-05/0.333, allocations: 162.5 kB / 0.521 GB, free: 35.44 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.977e-06/0.333, allocations: 4 kB / 0.521 GB, free: 35.43 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.286e-05/0.333, allocations: 6.875 kB / 0.521 GB, free: 35.43 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.298e-05/0.3331, allocations: 29.64 kB / 0.521 GB, free: 35.39 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.145e-06/0.3331, allocations: 4 kB / 0.521 GB, free: 35.39 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.275e-06/0.3331, allocations: 2.969 kB / 0.521 GB, free: 35.39 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.145e-06/0.3331, allocations: 0 / 0.521 GB, free: 35.39 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.662e-05/0.3332, allocations: 7.922 kB / 0.521 GB, free: 35.38 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.802e-05/0.3333, allocations: 148.2 kB / 0.5211 GB, free: 35.2 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.124e-05/0.3333, allocations: 22.58 kB / 0.5212 GB, free: 35.16 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.294e-05/0.3333, allocations: 11.52 kB / 0.5212 GB, free: 35.15 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.824e-06/0.3333, allocations: 0 / 0.5212 GB, free: 35.15 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.089e-05/0.3334, allocations: 60.27 kB / 0.5212 GB, free: 35.08 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 8.41e-07/0.3334, allocations: 0 / 0.5212 GB, free: 35.08 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001388/0.3335, allocations: 62.97 kB / 0.5213 GB, free: 35.02 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.578e-05/0.3336, allocations: 81.11 kB / 0.5214 GB, free: 34.92 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.452e-05/0.3336, allocations: 96.45 kB / 0.5215 GB, free: 34.82 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.626e-06/0.3336, allocations: 25.7 kB / 0.5215 GB, free: 34.79 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.968e-06/0.3336, allocations: 84.08 kB / 0.5216 GB, free: 34.7 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.494e-05/0.3336, allocations: 128 / 0.5216 GB, free: 34.7 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.283e-05/0.3337, allocations: 20 kB / 0.5216 GB, free: 34.68 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.757e-05/0.3337, allocations: 310.8 kB / 0.5219 GB, free: 34.37 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.527e-06/0.3337, allocations: 0 / 0.5219 GB, free: 34.37 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.679e-06/0.3337, allocations: 6.562 kB / 0.5219 GB, free: 34.36 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.361e-05/0.3338, allocations: 63.05 kB / 0.522 GB, free: 34.29 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.3338, allocations: 0 / 0.522 GB, free: 34.29 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.957e-05/0.3338, allocations: 63.08 kB / 0.522 GB, free: 34.23 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.41e-05/0.3339, allocations: 35.52 kB / 0.522 GB, free: 34.19 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.3339, allocations: 0 / 0.522 GB, free: 34.19 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.284e-05/0.3339, allocations: 0 / 0.522 GB, free: 34.19 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.132e-06/0.3339, allocations: 0 / 0.522 GB, free: 34.19 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.789e-06/0.3339, allocations: 0 / 0.522 GB, free: 34.19 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.481e-05/0.3339, allocations: 3.938 kB / 0.5221 GB, free: 34.19 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.783e-06/0.334, allocations: 2.906 kB / 0.5221 GB, free: 34.19 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 5.439e-05/0.334, allocations: 139 kB / 0.5222 GB, free: 34.04 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.923e-06/0.334, allocations: 6.812 kB / 0.5222 GB, free: 34.04 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.137e-06/0.334, allocations: 10.72 kB / 0.5222 GB, free: 34.03 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.11e-07/0.334, allocations: 0 / 0.5222 GB, free: 34.03 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.3341, allocations: 0 / 0.5222 GB, free: 34.03 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.3341, allocations: 3.938 kB / 0.5222 GB, free: 34.03 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.269e-05/0.3341, allocations: 148 kB / 0.5224 GB, free: 33.84 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.3341, allocations: 0 / 0.5224 GB, free: 33.84 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.01e-07/0.3342, allocations: 0 / 0.5224 GB, free: 33.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.001e-06/0.3342, allocations: 0 / 0.5224 GB, free: 33.84 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.985e-06/0.3342, allocations: 6.812 kB / 0.5224 GB, free: 33.84 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.21e-07/0.3342, allocations: 0 / 0.5224 GB, free: 33.84 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.3342, allocations: 0 / 0.5224 GB, free: 33.84 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002238/0.3344, allocations: 0.6384 MB / 0.523 GB, free: 33.15 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.767e-05/0.3345, allocations: 81.05 kB / 0.5231 GB, free: 33.05 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.331e-05/0.3345, allocations: 7.219 kB / 0.5231 GB, free: 33.05 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.165e-06/0.3345, allocations: 0 / 0.5231 GB, free: 33.05 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.446e-05/0.3345, allocations: 0 / 0.5231 GB, free: 33.05 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.564e-06/0.3345, allocations: 4.031 kB / 0.5231 GB, free: 33.05 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.295e-05/0.3345, allocations: 78.22 kB / 0.5231 GB, free: 32.97 MB / 378.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3345, allocations: 3.938 kB / 0.5231 GB, free: 32.97 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004279/0.335, allocations: 58.36 kB / 0.5232 GB, free: 32.95 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.001596/0.3366, allocations: 0.5289 MB / 0.5237 GB, free: 32.68 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 7.579e-05/0.3367, allocations: 60.44 kB / 0.5238 GB, free: 32.62 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.3367, allocations: 3.938 kB / 0.5238 GB, free: 32.61 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.947e-05/0.3367, allocations: 59.34 kB / 0.5238 GB, free: 32.55 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001144/0.3368, allocations: 9.812 kB / 0.5238 GB, free: 32.55 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001954/0.337, allocations: 181.1 kB / 0.524 GB, free: 32.34 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001011/0.3371, allocations: 0.6765 MB / 0.5247 GB, free: 31.64 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 6.703e-06/0.3371, allocations: 0 / 0.5247 GB, free: 31.64 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.113e-06/0.3371, allocations: 9.844 kB / 0.5247 GB, free: 31.63 MB / 378.7 MB Notification: Performance of SimCode: time 2.11e-07/0.3372, allocations: 0 / 0.5247 GB, free: 31.63 MB / 378.7 MB Notification: Performance of Templates: time 0.005024/0.3422, allocations: 2.133 MB / 0.5268 GB, free: 31.34 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.makefile (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 & ./ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Math.TestColorMapToSvg.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches