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.0008688/0.0008689, allocations: 96.73 kB / 18 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009196/0.0009197, allocations: 203 kB / 18.93 MB, free: 4.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.325/1.325, allocations: 227.7 MB / 247.5 MB, free: 9.477 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1969/0.1969, allocations: 46.19 MB / 345.9 MB, free: 11.13 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003082/0.0003083, allocations: 8 kB / 420.2 MB, free: 19.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1098, allocations: 63.57 MB / 483.7 MB, free: 4.121 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.0006301/0.1105, allocations: 217.3 kB / 483.9 MB, free: 3.906 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002101/0.1126, allocations: 1.164 MB / 485.1 MB, free: 2.738 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.078e-05/0.1127, allocations: 0 / 485.1 MB, free: 2.738 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.331e-05/0.1127, allocations: 4 kB / 485.1 MB, free: 2.734 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.509e-06/0.1127, allocations: 0 / 485.1 MB, free: 2.734 MB / 350.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.002014/0.1147, allocations: 0.6309 MB / 485.7 MB, free: 2.109 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.512e-05/0.1148, allocations: 4 kB / 485.7 MB, free: 2.105 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.42e-05/0.1148, allocations: 0 / 485.7 MB, free: 2.105 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.383e-05/0.1148, allocations: 3.938 kB / 485.7 MB, free: 2.102 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.456e-05/0.1148, allocations: 0 / 485.7 MB, free: 2.102 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.959e-06/0.1148, allocations: 0 / 485.7 MB, free: 2.102 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003025/0.1179, allocations: 2.605 MB / 488.4 MB, free: 15.5 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.616e-06/0.1179, allocations: 0 / 488.4 MB, free: 15.5 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 3.727e-05/0.1179, allocations: 29.7 kB / 488.4 MB, free: 15.46 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003632/0.1183, allocations: 291.7 kB / 488.7 MB, free: 15.18 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.1183, allocations: 0 / 488.7 MB, free: 15.18 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.1183, allocations: 4 kB / 488.7 MB, free: 15.18 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.847e-06/0.1183, allocations: 0 / 488.7 MB, free: 15.18 MB / 366.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.0004112/0.1188, allocations: 373.1 kB / 489 MB, free: 14.76 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.724e-05/0.1188, allocations: 8.875 kB / 489 MB, free: 14.75 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.06e-05/0.1188, allocations: 3.938 kB / 489 MB, free: 14.75 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.991e-05/0.1189, allocations: 163.1 kB / 489.2 MB, free: 14.55 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.043e-05/0.119, allocations: 0 / 489.2 MB, free: 14.55 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.094e-06/0.119, allocations: 0 / 489.2 MB, free: 14.55 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.654e-05/0.119, allocations: 37.69 kB / 489.2 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.004e-06/0.1191, allocations: 4 kB / 489.2 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.155e-06/0.1191, allocations: 0 / 489.2 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.466e-06/0.1191, allocations: 0 / 489.2 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.051e-05/0.1191, allocations: 11.86 kB / 489.3 MB, free: 14.49 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001242/0.1192, allocations: 145.7 kB / 489.4 MB, free: 14.3 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.633e-05/0.1193, allocations: 22.59 kB / 489.4 MB, free: 14.27 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.43e-05/0.1193, allocations: 4.859 kB / 489.4 MB, free: 14.26 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.791e-06/0.1193, allocations: 4 kB / 489.4 MB, free: 14.25 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.917e-05/0.1194, allocations: 60.33 kB / 489.5 MB, free: 14.18 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 1.102e-06/0.1194, allocations: 0 / 489.5 MB, free: 14.18 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001605/0.1195, allocations: 71.28 kB / 489.6 MB, free: 14.1 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.242e-05/0.1196, allocations: 81.09 kB / 489.6 MB, free: 14 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.822e-05/0.1197, allocations: 93.8 kB / 489.7 MB, free: 13.9 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.095e-05/0.1197, allocations: 25.7 kB / 489.8 MB, free: 13.87 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.754e-05/0.1197, allocations: 80.14 kB / 489.8 MB, free: 13.79 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.147e-05/0.1197, allocations: 12 kB / 489.8 MB, free: 13.77 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.194e-05/0.1198, allocations: 9.719 kB / 489.9 MB, free: 13.76 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001042/0.1199, allocations: 314.8 kB / 490.2 MB, free: 13.44 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.506e-06/0.1199, allocations: 0 / 490.2 MB, free: 13.44 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.479e-06/0.1199, allocations: 0 / 490.2 MB, free: 13.44 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.752e-05/0.12, allocations: 64.27 kB / 490.2 MB, free: 13.36 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.12, allocations: 0 / 490.2 MB, free: 13.36 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.391e-05/0.1201, allocations: 67.42 kB / 490.3 MB, free: 13.29 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.365e-05/0.1202, allocations: 33.7 kB / 490.3 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.1202, allocations: 3.984 kB / 490.3 MB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.167e-05/0.1202, allocations: 0 / 490.3 MB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.72e-07/0.1202, allocations: 0 / 490.3 MB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.02e-06/0.1202, allocations: 0 / 490.3 MB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.975e-05/0.1202, allocations: 7.938 kB / 490.3 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.192e-06/0.1202, allocations: 0 / 490.3 MB, free: 13.23 MB / 366.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 9.503e-05/0.1203, allocations: 139.5 kB / 490.5 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.013e-05/0.1204, allocations: 4 kB / 490.5 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.005e-05/0.1204, allocations: 7.125 kB / 490.5 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.943e-06/0.1204, allocations: 0 / 490.5 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.1204, allocations: 0 / 490.5 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.1204, allocations: 3.938 kB / 490.5 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001411/0.1206, allocations: 141.7 kB / 490.6 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.1206, allocations: 3.984 kB / 490.6 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.062e-06/0.1206, allocations: 4 kB / 490.6 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.1206, allocations: 0 / 490.6 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.632e-06/0.1206, allocations: 0 / 490.6 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.1206, allocations: 0 / 490.6 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1206, allocations: 0 / 490.6 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001324/0.1207, allocations: 102.7 kB / 490.7 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.243e-05/0.1208, allocations: 77.11 kB / 490.8 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.24e-05/0.1208, allocations: 0 / 490.8 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.969e-06/0.1208, allocations: 0 / 490.8 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.699e-05/0.1208, allocations: 7.938 kB / 490.8 MB, free: 12.65 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.296e-06/0.1208, allocations: 0 / 490.8 MB, free: 12.65 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.14e-05/0.1209, allocations: 75.31 kB / 490.9 MB, free: 12.57 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.723e-06/0.1209, allocations: 4 kB / 490.9 MB, free: 12.57 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003427/0.1212, allocations: 55.92 kB / 490.9 MB, free: 12.52 MB / 366.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.001802/0.123, allocations: 0.5341 MB / 491.5 MB, free: 12.02 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001051/0.1232, allocations: 55.41 kB / 491.5 MB, free: 11.96 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.1232, allocations: 0 / 491.5 MB, free: 11.96 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.823e-05/0.1232, allocations: 59.34 kB / 491.6 MB, free: 11.89 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001423/0.1234, allocations: 7.938 kB / 491.6 MB, free: 11.88 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002069/0.1236, allocations: 104.4 kB / 491.7 MB, free: 11.74 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003001/0.1239, allocations: 0.6692 MB / 492.4 MB, free: 11.05 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.732e-05/0.1239, allocations: 11.56 kB / 492.4 MB, free: 11.04 MB / 366.1 MB Notification: Performance of SimCode: time 1.993e-06/0.1239, allocations: 4 kB / 492.4 MB, free: 11.03 MB / 366.1 MB Notification: Performance of Templates: time 0.004848/0.1288, allocations: 2.587 MB / 495 MB, free: 8.441 MB / 366.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestColorMapToSvg/TestColorMapToSvg.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches