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.0008886/0.0008889, allocations: 96.34 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001336/0.001336, allocations: 202.3 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.39/1.39, allocations: 227.7 MB / 246.8 MB, free: 11.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2048/0.2048, allocations: 46.19 MB / 345.2 MB, free: 11.47 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002703/0.0002703, allocations: 8 kB / 419.5 MB, free: 19.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1316/0.1319, allocations: 63.55 MB / 483.1 MB, free: 4.172 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.0006732/0.1326, allocations: 229.1 kB / 483.3 MB, free: 3.945 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001936/0.1346, allocations: 1.16 MB / 484.5 MB, free: 2.781 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.065e-05/0.1346, allocations: 0 / 484.5 MB, free: 2.781 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.288e-05/0.1346, allocations: 0 / 484.5 MB, free: 2.781 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.007e-06/0.1346, allocations: 4 kB / 484.5 MB, free: 2.777 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.001868/0.1365, allocations: 0.6382 MB / 485.1 MB, free: 2.145 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.1e-05/0.1365, allocations: 0 / 485.1 MB, free: 2.145 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.411e-05/0.1366, allocations: 3.984 kB / 485.1 MB, free: 2.141 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.831e-05/0.1366, allocations: 7.938 kB / 485.1 MB, free: 2.133 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.501e-05/0.1366, allocations: 0 / 485.1 MB, free: 2.133 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.49e-06/0.1366, allocations: 0 / 485.1 MB, free: 2.133 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00291/0.1395, allocations: 2.597 MB / 487.7 MB, free: 15.54 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.187e-06/0.1396, allocations: 3.984 kB / 487.7 MB, free: 15.54 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 3.362e-05/0.1396, allocations: 25.7 kB / 487.7 MB, free: 15.5 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004843/0.1401, allocations: 423.3 kB / 488.2 MB, free: 15.09 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.1401, allocations: 4 kB / 488.2 MB, free: 15.09 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1401, allocations: 4 kB / 488.2 MB, free: 15.08 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.861e-06/0.1401, allocations: 0 / 488.2 MB, free: 15.08 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.0004192/0.1406, allocations: 373 kB / 488.5 MB, free: 14.66 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.296e-05/0.1406, allocations: 8.875 kB / 488.5 MB, free: 14.66 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.139e-05/0.1406, allocations: 3.938 kB / 488.5 MB, free: 14.65 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.927e-05/0.1407, allocations: 159.1 kB / 488.7 MB, free: 14.46 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.159e-05/0.1408, allocations: 0 / 488.7 MB, free: 14.46 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.806e-06/0.1408, allocations: 4 kB / 488.7 MB, free: 14.45 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.363e-05/0.1409, allocations: 33.69 kB / 488.7 MB, free: 14.41 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.093e-06/0.1409, allocations: 4 kB / 488.7 MB, free: 14.41 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.315e-06/0.1409, allocations: 0 / 488.7 MB, free: 14.41 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.613e-06/0.1409, allocations: 7.984 kB / 488.7 MB, free: 14.4 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.73e-05/0.1409, allocations: 3.938 kB / 488.7 MB, free: 14.4 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001271/0.1411, allocations: 145.6 kB / 488.9 MB, free: 14.21 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.808e-05/0.1411, allocations: 18.61 kB / 488.9 MB, free: 14.18 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.338e-05/0.1411, allocations: 4.859 kB / 488.9 MB, free: 14.17 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.673e-06/0.1411, allocations: 0 / 488.9 MB, free: 14.17 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.274e-05/0.1412, allocations: 64.27 kB / 489 MB, free: 14.09 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 7.72e-07/0.1412, allocations: 0 / 489 MB, free: 14.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001677/0.1414, allocations: 67.39 kB / 489 MB, free: 14.02 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.109e-05/0.1414, allocations: 77.11 kB / 489.1 MB, free: 13.92 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.342e-05/0.1415, allocations: 97.8 kB / 489.2 MB, free: 13.82 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.485e-05/0.1415, allocations: 25.7 kB / 489.2 MB, free: 13.79 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.26e-05/0.1415, allocations: 84.08 kB / 489.3 MB, free: 13.7 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.943e-05/0.1415, allocations: 16 kB / 489.3 MB, free: 13.68 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.089e-05/0.1416, allocations: 9.719 kB / 489.3 MB, free: 13.67 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.882e-05/0.1417, allocations: 314.8 kB / 489.6 MB, free: 13.35 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.544e-06/0.1417, allocations: 0 / 489.6 MB, free: 13.35 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.438e-06/0.1417, allocations: 4 kB / 489.7 MB, free: 13.35 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.344e-05/0.1418, allocations: 60.27 kB / 489.7 MB, free: 13.27 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.1418, allocations: 0 / 489.7 MB, free: 13.27 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.219e-05/0.1418, allocations: 63.34 kB / 489.8 MB, free: 13.2 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.225e-05/0.1419, allocations: 43.97 kB / 489.8 MB, free: 13.15 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.1419, allocations: 0 / 489.8 MB, free: 13.15 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.003e-05/0.1419, allocations: 0 / 489.8 MB, free: 13.15 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.21e-07/0.1419, allocations: 0 / 489.8 MB, free: 13.15 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.097e-06/0.1419, allocations: 0 / 489.8 MB, free: 13.15 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.643e-05/0.1419, allocations: 3.938 kB / 489.8 MB, free: 13.15 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.54e-06/0.1419, allocations: 0 / 489.8 MB, free: 13.15 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 7.938e-05/0.142, allocations: 135.5 kB / 490 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.422e-06/0.142, allocations: 0 / 490 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.477e-06/0.1421, allocations: 7.125 kB / 490 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.1421, allocations: 4 kB / 490 MB, free: 12.99 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.1421, allocations: 3.984 kB / 490 MB, free: 12.99 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.1421, allocations: 3.938 kB / 490 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.98e-05/0.1422, allocations: 141.7 kB / 490.1 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.1422, allocations: 0 / 490.1 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.82e-07/0.1422, allocations: 0 / 490.1 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.1422, allocations: 0 / 490.1 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.005e-06/0.1422, allocations: 4 kB / 490.1 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.1422, allocations: 0 / 490.1 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.1422, allocations: 0 / 490.1 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001042/0.1423, allocations: 110.7 kB / 490.2 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.44e-05/0.1424, allocations: 77.11 kB / 490.3 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.355e-05/0.1424, allocations: 4 kB / 490.3 MB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.398e-06/0.1424, allocations: 3.984 kB / 490.3 MB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.169e-05/0.1424, allocations: 3.938 kB / 490.3 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.047e-06/0.1424, allocations: 4 kB / 490.3 MB, free: 12.55 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.834e-05/0.1425, allocations: 75.28 kB / 490.4 MB, free: 12.48 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1425, allocations: 7.969 kB / 490.4 MB, free: 12.47 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003063/0.1428, allocations: 51.98 kB / 490.4 MB, free: 12.42 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.001731/0.1445, allocations: 0.5225 MB / 491 MB, free: 11.94 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 9.864e-05/0.1446, allocations: 63.39 kB / 491 MB, free: 11.86 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1447, allocations: 0 / 491 MB, free: 11.86 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.263e-05/0.1447, allocations: 59.34 kB / 491.1 MB, free: 11.79 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001273/0.1448, allocations: 3.938 kB / 491.1 MB, free: 11.79 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001872/0.145, allocations: 74.67 kB / 491.2 MB, free: 11.69 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000244/0.1453, allocations: 0.6731 MB / 491.8 MB, free: 10.99 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.024e-06/0.1453, allocations: 0 / 491.8 MB, free: 10.99 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.095e-05/0.1453, allocations: 19.5 kB / 491.9 MB, free: 10.97 MB / 366.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1453, allocations: 0 / 491.9 MB, free: 10.97 MB / 366.1 MB Notification: Performance of Templates: time 0.005434/0.1508, allocations: 2.129 MB / 494 MB, free: 8.832 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/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