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.001483/0.001483, allocations: 110.3 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001637/0.001637, allocations: 209.7 kB / 18.79 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.032/2.032, allocations: 227.4 MB / 246.9 MB, free: 10.68 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3681/0.3681, allocations: 46.11 MB / 344.3 MB, free: 11.79 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002308/0.002308, allocations: 72.16 kB / 417.5 MB, free: 7.543 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2044/0.2067, allocations: 62.45 MB / 479.9 MB, free: 9.039 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.003457/0.2103, allocations: 0.5411 MB / 480.5 MB, free: 8.492 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00323/0.2135, allocations: 1.193 MB / 481.7 MB, free: 7.293 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.735e-05/0.2136, allocations: 0 / 481.7 MB, free: 7.293 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.376e-05/0.2136, allocations: 7.875 kB / 481.7 MB, free: 7.285 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.204e-06/0.2137, allocations: 4 kB / 481.7 MB, free: 7.281 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.002998/0.2167, allocations: 0.6302 MB / 482.3 MB, free: 6.656 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.016e-05/0.2168, allocations: 0 / 482.3 MB, free: 6.656 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.541e-05/0.2168, allocations: 0 / 482.3 MB, free: 6.656 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.652e-05/0.2169, allocations: 0 / 482.3 MB, free: 6.656 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.926e-05/0.2169, allocations: 0 / 482.3 MB, free: 6.656 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.554e-06/0.2169, allocations: 3.938 kB / 482.3 MB, free: 6.652 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005653/0.2226, allocations: 2.605 MB / 484.9 MB, free: 4.043 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.682e-05/0.2226, allocations: 0 / 484.9 MB, free: 4.043 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.16e-05/0.2227, allocations: 4 kB / 484.9 MB, free: 4.039 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000606/0.2233, allocations: 295.6 kB / 485.2 MB, free: 3.75 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.022e-05/0.2234, allocations: 0 / 485.2 MB, free: 3.75 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.2234, allocations: 0 / 485.2 MB, free: 3.75 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.137e-06/0.2234, allocations: 0 / 485.2 MB, free: 3.75 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.0007402/0.2241, allocations: 373.1 kB / 485.6 MB, free: 3.332 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.631e-05/0.2242, allocations: 12.88 kB / 485.6 MB, free: 3.32 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.3e-05/0.2243, allocations: 7.844 kB / 485.6 MB, free: 3.312 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001859/0.2245, allocations: 163.1 kB / 485.8 MB, free: 3.113 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.753e-05/0.2245, allocations: 0 / 485.8 MB, free: 3.113 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.381e-05/0.2245, allocations: 4 kB / 485.8 MB, free: 3.109 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001535/0.2247, allocations: 29.7 kB / 485.8 MB, free: 3.074 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.2247, allocations: 0 / 485.8 MB, free: 3.074 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.461e-05/0.2248, allocations: 0 / 485.8 MB, free: 3.074 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.864e-06/0.2248, allocations: 0 / 485.8 MB, free: 3.074 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.174e-05/0.2248, allocations: 7.875 kB / 485.8 MB, free: 3.066 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003975/0.2252, allocations: 157.6 kB / 485.9 MB, free: 2.863 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.208e-05/0.2253, allocations: 14.58 kB / 486 MB, free: 2.84 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.233e-05/0.2253, allocations: 8.859 kB / 486 MB, free: 2.828 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.761e-06/0.2254, allocations: 4.094 kB / 486 MB, free: 2.824 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.964e-05/0.2254, allocations: 56.27 kB / 486 MB, free: 2.754 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.363e-06/0.2254, allocations: 0 / 486 MB, free: 2.754 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002462/0.2257, allocations: 71.33 kB / 486.1 MB, free: 2.672 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001296/0.2258, allocations: 77.11 kB / 486.2 MB, free: 2.578 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.521e-05/0.2259, allocations: 97.73 kB / 486.3 MB, free: 2.473 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.041e-05/0.2259, allocations: 29.83 kB / 486.3 MB, free: 2.438 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.629e-05/0.226, allocations: 80.14 kB / 486.4 MB, free: 2.355 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.916e-05/0.2261, allocations: 3.938 kB / 486.4 MB, free: 2.352 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.913e-05/0.2261, allocations: 13.72 kB / 486.4 MB, free: 2.332 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002046/0.2263, allocations: 310.8 kB / 486.7 MB, free: 2.02 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.89e-05/0.2264, allocations: 4 kB / 486.7 MB, free: 2.016 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.272e-05/0.2264, allocations: 4 kB / 486.7 MB, free: 2.012 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001237/0.2265, allocations: 68.31 kB / 486.8 MB, free: 1.93 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.2265, allocations: 4 kB / 486.8 MB, free: 1.926 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001093/0.2267, allocations: 59.34 kB / 486.8 MB, free: 1.855 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.33e-05/0.2267, allocations: 33.7 kB / 486.9 MB, free: 1.816 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.315e-06/0.2267, allocations: 0 / 486.9 MB, free: 1.816 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.857e-05/0.2268, allocations: 0 / 486.9 MB, free: 1.816 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.503e-06/0.2268, allocations: 0 / 486.9 MB, free: 1.816 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.045e-05/0.2268, allocations: 3.984 kB / 486.9 MB, free: 1.812 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.86e-05/0.2268, allocations: 3.938 kB / 486.9 MB, free: 1.809 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.295e-05/0.2269, allocations: 0 / 486.9 MB, free: 1.809 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.0001572/0.227, allocations: 143.6 kB / 487 MB, free: 1.652 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.207e-05/0.2271, allocations: 0 / 487 MB, free: 1.652 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.672e-05/0.2271, allocations: 7.109 kB / 487 MB, free: 1.648 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.2271, allocations: 0 / 487 MB, free: 1.648 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.638e-06/0.2271, allocations: 4 kB / 487 MB, free: 1.645 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.251e-06/0.2271, allocations: 3.938 kB / 487 MB, free: 1.641 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001718/0.2273, allocations: 145.7 kB / 487.2 MB, free: 1.449 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.2273, allocations: 0 / 487.2 MB, free: 1.449 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.01e-07/0.2273, allocations: 0 / 487.2 MB, free: 1.449 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.411e-06/0.2274, allocations: 4 kB / 487.2 MB, free: 1.445 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.475e-05/0.2274, allocations: 7.938 kB / 487.2 MB, free: 1.438 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.2274, allocations: 0 / 487.2 MB, free: 1.438 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.754e-06/0.2274, allocations: 0 / 487.2 MB, free: 1.438 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001497/0.2276, allocations: 94.7 kB / 487.3 MB, free: 1.32 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.54e-05/0.2276, allocations: 81.11 kB / 487.4 MB, free: 1.223 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.956e-05/0.2277, allocations: 0 / 487.4 MB, free: 1.223 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.354e-05/0.2277, allocations: 0 / 487.4 MB, free: 1.223 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.768e-05/0.2277, allocations: 7.969 kB / 487.4 MB, free: 1.215 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.527e-06/0.2277, allocations: 0 / 487.4 MB, free: 1.215 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.104e-05/0.2278, allocations: 75.28 kB / 487.4 MB, free: 1.141 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.2278, allocations: 4 kB / 487.4 MB, free: 1.137 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006656/0.2285, allocations: 47.98 kB / 487.5 MB, free: 1.09 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.003007/0.2315, allocations: 0.5321 MB / 488 MB, free: 0.6055 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001439/0.2317, allocations: 59.34 kB / 488.1 MB, free: 0.5352 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.2317, allocations: 0 / 488.1 MB, free: 0.5352 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 6.145e-05/0.2317, allocations: 59.39 kB / 488.1 MB, free: 476 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002166/0.232, allocations: 3.938 kB / 488.1 MB, free: 472 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002829/0.2323, allocations: 116.5 kB / 488.3 MB, free: 320 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000367/0.2326, allocations: 0.6692 MB / 488.9 MB, free: 15.62 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.679e-05/0.2327, allocations: 11.44 kB / 488.9 MB, free: 15.61 MB / 414.1 MB Notification: Performance of SimCode: time 5.61e-07/0.2327, allocations: 0 / 488.9 MB, free: 15.61 MB / 414.1 MB Notification: Performance of Templates: time 0.007577/0.2403, allocations: 2.583 MB / 491.5 MB, free: 13.02 MB / 414.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