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.001705/0.001705, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002056/0.002056, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.573/1.573, allocations: 227.4 MB / 246.8 MB, free: 10.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2265/0.2265, allocations: 46.12 MB / 344.2 MB, free: 11.55 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002129/0.002129, allocations: 81.58 kB / 417.6 MB, free: 19.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1157/0.1178, allocations: 62.46 MB / 480.1 MB, free: 5.23 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.00169/0.1195, allocations: 493.9 kB / 480.6 MB, free: 4.746 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001811/0.1214, allocations: 1.146 MB / 481.7 MB, free: 3.594 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.67e-05/0.1214, allocations: 0 / 481.7 MB, free: 3.594 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 8.546e-06/0.1214, allocations: 0 / 481.7 MB, free: 3.594 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.497e-06/0.1214, allocations: 0 / 481.7 MB, free: 3.594 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.001773/0.1232, allocations: 0.6724 MB / 482.4 MB, free: 2.926 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.301e-05/0.1233, allocations: 7.984 kB / 482.4 MB, free: 2.918 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.336e-05/0.1233, allocations: 7.922 kB / 482.4 MB, free: 2.91 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.078e-05/0.1233, allocations: 3.938 kB / 482.4 MB, free: 2.906 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.273e-05/0.1233, allocations: 0 / 482.4 MB, free: 2.906 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.639e-06/0.1233, allocations: 4 kB / 482.4 MB, free: 2.902 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002963/0.1263, allocations: 2.449 MB / 484.9 MB, free: 468 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.897e-06/0.1263, allocations: 3.984 kB / 484.9 MB, free: 464 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.501e-05/0.1263, allocations: 4 kB / 484.9 MB, free: 460 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003966/0.1268, allocations: 355.5 kB / 485.2 MB, free: 104 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.1268, allocations: 3.938 kB / 485.2 MB, free: 100 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.1268, allocations: 3.938 kB / 485.2 MB, free: 96 kB / 350.1 MB Notification: Performance of Transformations before backend: time 5.631e-06/0.1268, allocations: 0 / 485.2 MB, free: 96 kB / 350.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.0004533/0.1272, allocations: 373.1 kB / 485.6 MB, free: 15.68 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.1273, allocations: 12.03 kB / 485.6 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.616e-05/0.1273, allocations: 0 / 485.6 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000135/0.1275, allocations: 159.1 kB / 485.8 MB, free: 15.47 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.29e-05/0.1275, allocations: 15.92 kB / 485.8 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.066e-05/0.1275, allocations: 0 / 485.8 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.008e-05/0.1276, allocations: 37.69 kB / 485.8 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.632e-06/0.1276, allocations: 0 / 485.8 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.843e-06/0.1276, allocations: 0 / 485.8 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.927e-06/0.1276, allocations: 0 / 485.8 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.584e-05/0.1276, allocations: 4 kB / 485.8 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001399/0.1278, allocations: 141.7 kB / 486 MB, free: 15.22 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.714e-05/0.1278, allocations: 30.45 kB / 486 MB, free: 15.18 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.418e-05/0.1278, allocations: 8.953 kB / 486 MB, free: 15.17 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.735e-06/0.1279, allocations: 0 / 486 MB, free: 15.17 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.307e-05/0.1279, allocations: 60.25 kB / 486.1 MB, free: 15.09 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 8.71e-07/0.1279, allocations: 0 / 486.1 MB, free: 15.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001549/0.1281, allocations: 63.34 kB / 486.1 MB, free: 15.02 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.794e-05/0.1281, allocations: 81.11 kB / 486.2 MB, free: 14.92 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.266e-05/0.1282, allocations: 93.92 kB / 486.3 MB, free: 14.82 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.494e-05/0.1282, allocations: 29.7 kB / 486.3 MB, free: 14.79 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.259e-05/0.1283, allocations: 80.14 kB / 486.4 MB, free: 14.7 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.924e-05/0.1283, allocations: 4 kB / 486.4 MB, free: 14.7 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.022e-05/0.1283, allocations: 13.7 kB / 486.4 MB, free: 14.68 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001377/0.1285, allocations: 310.8 kB / 486.7 MB, free: 14.37 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.096e-05/0.1285, allocations: 4 kB / 486.7 MB, free: 14.36 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.959e-06/0.1285, allocations: 0 / 486.7 MB, free: 14.36 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.165e-05/0.1286, allocations: 68.33 kB / 486.8 MB, free: 14.28 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.313e-06/0.1286, allocations: 0 / 486.8 MB, free: 14.28 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.145e-05/0.1286, allocations: 67.27 kB / 486.9 MB, free: 14.2 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.366e-05/0.1287, allocations: 33.7 kB / 486.9 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.867e-06/0.1287, allocations: 0 / 486.9 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.305e-05/0.1287, allocations: 0 / 486.9 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.11e-07/0.1287, allocations: 0 / 486.9 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.218e-06/0.1287, allocations: 0 / 486.9 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.388e-05/0.1287, allocations: 0 / 486.9 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.195e-06/0.1288, allocations: 4 kB / 486.9 MB, free: 14.16 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.282e-05/0.1289, allocations: 143.5 kB / 487 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.384e-06/0.1289, allocations: 3.938 kB / 487 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.041e-05/0.1289, allocations: 7.109 kB / 487 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-06/0.1289, allocations: 4 kB / 487.1 MB, free: 13.99 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.1289, allocations: 0 / 487.1 MB, free: 13.99 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.1289, allocations: 0 / 487.1 MB, free: 13.99 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001155/0.129, allocations: 145.6 kB / 487.2 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.71e-07/0.129, allocations: 0 / 487.2 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-07/0.129, allocations: 0 / 487.2 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.092e-06/0.129, allocations: 4 kB / 487.2 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.008e-05/0.1291, allocations: 7.984 kB / 487.2 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.1291, allocations: 0 / 487.2 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.1291, allocations: 0 / 487.2 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001025/0.1292, allocations: 94.72 kB / 487.3 MB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.171e-05/0.1292, allocations: 81.09 kB / 487.4 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.284e-05/0.1292, allocations: 4 kB / 487.4 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.356e-06/0.1293, allocations: 0 / 487.4 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.734e-05/0.1293, allocations: 4.031 kB / 487.4 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.017e-06/0.1293, allocations: 7.938 kB / 487.4 MB, free: 13.56 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.341e-05/0.1293, allocations: 75.28 kB / 487.5 MB, free: 13.48 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1293, allocations: 0 / 487.5 MB, free: 13.48 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003559/0.1297, allocations: 55.92 kB / 487.5 MB, free: 13.43 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.001877/0.1316, allocations: 0.5337 MB / 488.1 MB, free: 12.94 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 9.742e-05/0.1317, allocations: 59.39 kB / 488.1 MB, free: 12.87 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.413e-06/0.1317, allocations: 0 / 488.1 MB, free: 12.87 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.798e-05/0.1317, allocations: 59.34 kB / 488.2 MB, free: 12.8 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001166/0.1319, allocations: 3.938 kB / 488.2 MB, free: 12.8 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001823/0.1321, allocations: 92.95 kB / 488.3 MB, free: 12.68 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002852/0.1323, allocations: 0.6729 MB / 488.9 MB, free: 11.98 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.616e-06/0.1324, allocations: 3.984 kB / 488.9 MB, free: 11.98 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.528e-06/0.1324, allocations: 7.438 kB / 488.9 MB, free: 11.97 MB / 366.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1324, allocations: 3.938 kB / 489 MB, free: 11.96 MB / 366.1 MB Notification: Performance of Templates: time 0.00571/0.1381, allocations: 2.137 MB / 491.1 MB, free: 9.82 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