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.001097/0.001096, allocations: 122.8 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.001277/0.001277, allocations: 202 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.299/1.299, allocations: 227.4 MB / 246.9 MB, free: 10.53 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1994/0.1994, allocations: 46.1 MB / 344.3 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00138/0.00138, allocations: 71.89 kB / 481.3 MB, free: 4.109 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3308/0.3322, allocations: 62.45 MB / 0.531 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001454/0.3337, allocations: 495 kB / 0.5315 GB, free: 13.25 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001766/0.3355, allocations: 1.143 MB / 0.5326 GB, free: 12.39 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.791e-05/0.3355, allocations: 0 / 0.5326 GB, free: 12.39 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.031e-05/0.3356, allocations: 4 kB / 0.5326 GB, free: 12.39 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.22e-06/0.3356, allocations: 0 / 0.5326 GB, free: 12.39 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.001771/0.3373, allocations: 0.6732 MB / 0.5332 GB, free: 12 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.217e-05/0.3374, allocations: 13.17 kB / 0.5332 GB, free: 11.99 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.513e-05/0.3374, allocations: 0 / 0.5332 GB, free: 11.99 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.316e-05/0.3374, allocations: 1.031 kB / 0.5332 GB, free: 11.99 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.308e-05/0.3375, allocations: 1.375 kB / 0.5332 GB, free: 11.99 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.13e-06/0.3375, allocations: 0 / 0.5332 GB, free: 11.99 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003326/0.3408, allocations: 2.452 MB / 0.5356 GB, free: 10.87 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.847e-06/0.3408, allocations: 1.188 kB / 0.5356 GB, free: 10.87 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.25e-05/0.3409, allocations: 0.9688 kB / 0.5356 GB, free: 10.87 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005047/0.3414, allocations: 352.6 kB / 0.536 GB, free: 10.73 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.3414, allocations: 0 / 0.536 GB, free: 10.73 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.3414, allocations: 5.375 kB / 0.536 GB, free: 10.73 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.454e-06/0.3414, allocations: 0 / 0.536 GB, free: 10.73 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.0004939/0.3419, allocations: 381.5 kB / 0.5363 GB, free: 10.32 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.345e-05/0.3419, allocations: 10.03 kB / 0.5364 GB, free: 10.32 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.638e-05/0.342, allocations: 0 / 0.5364 GB, free: 10.32 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001198/0.3421, allocations: 160.5 kB / 0.5365 GB, free: 10.12 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.79e-05/0.3421, allocations: 3.938 kB / 0.5365 GB, free: 10.12 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.749e-06/0.3422, allocations: 1.219 kB / 0.5365 GB, free: 10.12 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001155/0.3423, allocations: 43.28 kB / 0.5366 GB, free: 10.07 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.3423, allocations: 1.438 kB / 0.5366 GB, free: 10.07 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.917e-06/0.3423, allocations: 0 / 0.5366 GB, free: 10.07 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.3423, allocations: 3.984 kB / 0.5366 GB, free: 10.07 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.85e-05/0.3423, allocations: 1.156 kB / 0.5366 GB, free: 10.07 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001301/0.3425, allocations: 147.3 kB / 0.5367 GB, free: 9.875 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.875e-05/0.3425, allocations: 19.95 kB / 0.5367 GB, free: 9.848 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.244e-05/0.3426, allocations: 6.047 kB / 0.5367 GB, free: 9.84 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.208e-06/0.3426, allocations: 5.594 kB / 0.5367 GB, free: 9.836 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.027e-05/0.3426, allocations: 68.19 kB / 0.5368 GB, free: 9.754 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.71e-07/0.3426, allocations: 1.594 kB / 0.5368 GB, free: 9.754 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001659/0.3428, allocations: 62.09 kB / 0.5369 GB, free: 9.688 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.07e-05/0.3429, allocations: 77.11 kB / 0.5369 GB, free: 9.594 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.574e-05/0.3429, allocations: 91.52 kB / 0.537 GB, free: 9.496 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.839e-06/0.3429, allocations: 25.7 kB / 0.537 GB, free: 9.465 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.099e-05/0.3429, allocations: 80.27 kB / 0.5371 GB, free: 9.383 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.655e-05/0.343, allocations: 9.453 kB / 0.5371 GB, free: 9.375 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.45e-05/0.343, allocations: 14.94 kB / 0.5371 GB, free: 9.355 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.4e-05/0.3431, allocations: 312.4 kB / 0.5374 GB, free: 9.043 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.905e-06/0.3431, allocations: 0 / 0.5374 GB, free: 9.043 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.599e-06/0.3431, allocations: 1.656 kB / 0.5374 GB, free: 9.043 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.875e-05/0.3432, allocations: 58.67 kB / 0.5375 GB, free: 8.973 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.3432, allocations: 1.719 kB / 0.5375 GB, free: 8.973 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.828e-05/0.3432, allocations: 76.7 kB / 0.5376 GB, free: 8.891 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.567e-05/0.3433, allocations: 35.33 kB / 0.5376 GB, free: 8.855 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.498e-06/0.3433, allocations: 1.344 kB / 0.5376 GB, free: 8.855 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.019e-05/0.3433, allocations: 0 / 0.5376 GB, free: 8.855 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.12e-07/0.3433, allocations: 0 / 0.5376 GB, free: 8.855 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.09e-06/0.3433, allocations: 1.281 kB / 0.5376 GB, free: 8.855 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.369e-05/0.3433, allocations: 0 / 0.5376 GB, free: 8.855 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.392e-06/0.3433, allocations: 1.438 kB / 0.5376 GB, free: 8.855 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 6.779e-05/0.3434, allocations: 140.8 kB / 0.5377 GB, free: 8.703 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.736e-06/0.3434, allocations: 9.734 kB / 0.5378 GB, free: 8.695 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.026e-06/0.3434, allocations: 3.125 kB / 0.5378 GB, free: 8.691 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.92e-07/0.3435, allocations: 0 / 0.5378 GB, free: 8.691 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.035e-06/0.3435, allocations: 1.375 kB / 0.5378 GB, free: 8.691 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.834e-06/0.3435, allocations: 0 / 0.5378 GB, free: 8.691 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.458e-05/0.3436, allocations: 151 kB / 0.5379 GB, free: 8.496 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.12e-07/0.3436, allocations: 0 / 0.5379 GB, free: 8.496 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.92e-07/0.3436, allocations: 1.688 kB / 0.5379 GB, free: 8.496 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.3436, allocations: 3.984 kB / 0.5379 GB, free: 8.492 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.925e-06/0.3436, allocations: 4 kB / 0.5379 GB, free: 8.488 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.3436, allocations: 5.344 kB / 0.5379 GB, free: 8.484 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.3436, allocations: 0 / 0.5379 GB, free: 8.484 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.999e-05/0.3437, allocations: 98.09 kB / 0.538 GB, free: 8.375 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.854e-05/0.3437, allocations: 88.94 kB / 0.5381 GB, free: 8.27 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.236e-05/0.3437, allocations: 1.5 kB / 0.5381 GB, free: 8.27 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.476e-06/0.3438, allocations: 0 / 0.5381 GB, free: 8.27 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.508e-06/0.3438, allocations: 1.594 kB / 0.5381 GB, free: 8.27 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.264e-06/0.3438, allocations: 0 / 0.5381 GB, free: 8.27 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.944e-05/0.3438, allocations: 79.31 kB / 0.5382 GB, free: 8.191 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3438, allocations: 1.312 kB / 0.5382 GB, free: 8.191 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003172/0.3441, allocations: 47.42 kB / 0.5382 GB, free: 8.176 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.001356/0.3455, allocations: 0.5406 MB / 0.5387 GB, free: 7.867 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000106/0.3456, allocations: 59.75 kB / 0.5388 GB, free: 7.801 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.3456, allocations: 1.125 kB / 0.5388 GB, free: 7.801 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.317e-05/0.3457, allocations: 61.53 kB / 0.5389 GB, free: 7.73 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001334/0.3458, allocations: 6.75 kB / 0.5389 GB, free: 7.727 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001778/0.346, allocations: 79.88 kB / 0.5389 GB, free: 7.629 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000265/0.3463, allocations: 0.6704 MB / 0.5396 GB, free: 6.934 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.863e-06/0.3463, allocations: 4 kB / 0.5396 GB, free: 6.93 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.318e-05/0.3463, allocations: 9.062 kB / 0.5396 GB, free: 6.922 MB / 398.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3463, allocations: 0 / 0.5396 GB, free: 6.922 MB / 398.1 MB Notification: Performance of Templates: time 0.005076/0.3514, allocations: 2.14 MB / 0.5417 GB, free: 5.93 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