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/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001254/0.001254, allocations: 121.6 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002009/0.002009, allocations: 203.9 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.491/1.491, allocations: 227.4 MB / 246.9 MB, free: 10.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2181/0.2181, allocations: 46.11 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001342/0.001342, allocations: 76.11 kB / 481.3 MB, free: 4.086 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3926/0.394, allocations: 62.44 MB / 0.531 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001743/0.3958, allocations: 491.8 kB / 0.5314 GB, free: 13.24 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002179/0.3979, allocations: 1.139 MB / 0.5326 GB, free: 12.38 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.63e-05/0.398, allocations: 0 / 0.5326 GB, free: 12.38 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.776e-05/0.398, allocations: 0 / 0.5326 GB, free: 12.38 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 9.237e-06/0.3981, allocations: 0 / 0.5326 GB, free: 12.38 MB / 398.1 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.002716/0.4008, allocations: 0.6865 MB / 0.5332 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 7.789e-05/0.4009, allocations: 1.375 kB / 0.5332 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.897e-05/0.4009, allocations: 5.375 kB / 0.5332 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.633e-05/0.401, allocations: 0 / 0.5332 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.213e-05/0.401, allocations: 5.359 kB / 0.5332 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.847e-06/0.401, allocations: 0 / 0.5332 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004146/0.4052, allocations: 2.453 MB / 0.5356 GB, free: 10.86 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.233e-05/0.4052, allocations: 0 / 0.5356 GB, free: 10.86 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.989e-05/0.4052, allocations: 1.5 kB / 0.5356 GB, free: 10.86 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005642/0.4058, allocations: 352.3 kB / 0.536 GB, free: 10.72 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.4058, allocations: 1.281 kB / 0.536 GB, free: 10.72 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.4058, allocations: 0 / 0.536 GB, free: 10.72 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.514e-06/0.4059, allocations: 3.938 kB / 0.536 GB, free: 10.71 MB / 398.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.0004876/0.4063, allocations: 381.7 kB / 0.5363 GB, free: 10.3 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.052e-05/0.4064, allocations: 13.28 kB / 0.5364 GB, free: 10.3 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.542e-05/0.4065, allocations: 5.125 kB / 0.5364 GB, free: 10.29 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001385/0.4066, allocations: 159.1 kB / 0.5365 GB, free: 10.1 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.901e-05/0.4066, allocations: 5 kB / 0.5365 GB, free: 10.09 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.512e-05/0.4067, allocations: 1.25 kB / 0.5365 GB, free: 10.09 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001392/0.4068, allocations: 31.86 kB / 0.5366 GB, free: 10.06 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/0.4068, allocations: 0 / 0.5366 GB, free: 10.06 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.603e-05/0.4069, allocations: 4 kB / 0.5366 GB, free: 10.05 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/0.4069, allocations: 1.125 kB / 0.5366 GB, free: 10.05 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.978e-05/0.4069, allocations: 5.141 kB / 0.5366 GB, free: 10.05 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002034/0.4071, allocations: 146.8 kB / 0.5367 GB, free: 9.859 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.518e-05/0.4072, allocations: 24.77 kB / 0.5367 GB, free: 9.828 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.086e-05/0.4072, allocations: 6.016 kB / 0.5367 GB, free: 9.82 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.496e-05/0.4072, allocations: 3.984 kB / 0.5367 GB, free: 9.816 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.566e-05/0.4073, allocations: 65.33 kB / 0.5368 GB, free: 9.738 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.172e-06/0.4073, allocations: 0 / 0.5368 GB, free: 9.738 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002723/0.4076, allocations: 67.95 kB / 0.5369 GB, free: 9.668 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.235e-05/0.4077, allocations: 81.05 kB / 0.5369 GB, free: 9.57 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.652e-05/0.4078, allocations: 89.86 kB / 0.537 GB, free: 9.473 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.902e-05/0.4078, allocations: 26.58 kB / 0.537 GB, free: 9.441 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.237e-05/0.4079, allocations: 80.14 kB / 0.5371 GB, free: 9.359 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.701e-05/0.4079, allocations: 1.406 kB / 0.5371 GB, free: 9.359 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.523e-05/0.4079, allocations: 15.78 kB / 0.5371 GB, free: 9.34 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002071/0.4081, allocations: 314.8 kB / 0.5374 GB, free: 9.023 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.315e-05/0.4082, allocations: 5.344 kB / 0.5374 GB, free: 9.02 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.592e-06/0.4082, allocations: 1.25 kB / 0.5374 GB, free: 9.02 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.211e-05/0.4083, allocations: 59.36 kB / 0.5375 GB, free: 8.949 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.4083, allocations: 0 / 0.5375 GB, free: 8.949 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.33e-05/0.4084, allocations: 66.38 kB / 0.5376 GB, free: 8.879 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.093e-05/0.4084, allocations: 35.22 kB / 0.5376 GB, free: 8.844 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.727e-06/0.4084, allocations: 0 / 0.5376 GB, free: 8.844 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.101e-05/0.4085, allocations: 4.969 kB / 0.5376 GB, free: 8.84 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.353e-06/0.4085, allocations: 4.094 kB / 0.5376 GB, free: 8.836 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.684e-06/0.4085, allocations: 1.188 kB / 0.5376 GB, free: 8.836 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.957e-05/0.4085, allocations: 0 / 0.5376 GB, free: 8.836 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.329e-05/0.4085, allocations: 1.156 kB / 0.5376 GB, free: 8.836 MB / 398.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.0001436/0.4087, allocations: 141.7 kB / 0.5377 GB, free: 8.684 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.057e-05/0.4087, allocations: 1.188 kB / 0.5377 GB, free: 8.684 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.682e-05/0.4087, allocations: 3.125 kB / 0.5378 GB, free: 8.68 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/0.4087, allocations: 1.125 kB / 0.5378 GB, free: 8.68 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.606e-06/0.4088, allocations: 7.922 kB / 0.5378 GB, free: 8.672 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.4088, allocations: 4 kB / 0.5378 GB, free: 8.668 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001469/0.4089, allocations: 147.8 kB / 0.5379 GB, free: 8.477 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.4089, allocations: 0 / 0.5379 GB, free: 8.477 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.72e-07/0.4089, allocations: 0 / 0.5379 GB, free: 8.477 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.172e-06/0.4089, allocations: 1.094 kB / 0.5379 GB, free: 8.477 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.455e-05/0.409, allocations: 5.25 kB / 0.5379 GB, free: 8.473 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.183e-06/0.409, allocations: 0 / 0.5379 GB, free: 8.473 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.409, allocations: 0 / 0.5379 GB, free: 8.473 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001286/0.4091, allocations: 110.1 kB / 0.538 GB, free: 8.352 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.403e-05/0.4092, allocations: 81.05 kB / 0.5381 GB, free: 8.254 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.662e-05/0.4092, allocations: 1.094 kB / 0.5381 GB, free: 8.254 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.244e-05/0.4092, allocations: 5.078 kB / 0.5381 GB, free: 8.25 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.707e-05/0.4092, allocations: 0 / 0.5381 GB, free: 8.25 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.555e-06/0.4092, allocations: 1.156 kB / 0.5381 GB, free: 8.25 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.968e-05/0.4093, allocations: 75.28 kB / 0.5382 GB, free: 8.176 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4093, allocations: 1.188 kB / 0.5382 GB, free: 8.176 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003876/0.4097, allocations: 46.83 kB / 0.5382 GB, free: 8.16 MB / 398.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.001477/0.4112, allocations: 0.5322 MB / 0.5387 GB, free: 7.859 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001426/0.4113, allocations: 65.17 kB / 0.5388 GB, free: 7.789 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.4113, allocations: 4.062 kB / 0.5388 GB, free: 7.785 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.718e-05/0.4114, allocations: 54.34 kB / 0.5389 GB, free: 7.723 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001286/0.4115, allocations: 6.781 kB / 0.5389 GB, free: 7.719 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002152/0.4117, allocations: 83.8 kB / 0.5389 GB, free: 7.617 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002526/0.412, allocations: 0.6745 MB / 0.5396 GB, free: 6.918 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.963e-06/0.412, allocations: 0 / 0.5396 GB, free: 6.918 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.472e-05/0.412, allocations: 8.969 kB / 0.5396 GB, free: 6.91 MB / 398.1 MB Notification: Performance of SimCode: time 2.1e-07/0.412, allocations: 0 / 0.5396 GB, free: 6.91 MB / 398.1 MB Notification: Performance of Templates: time 0.005797/0.4178, allocations: 2.14 MB / 0.5417 GB, free: 5.918 MB / 398.1 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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestColorMapToSvg/TestColorMapToSvg.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches