Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Math.TestColorMapToSvg.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Math.TestColorMapToSvg,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.TestColorMapToSvg") translateModel(ModelicaTest.Math.TestColorMapToSvg,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.TestColorMapToSvg") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00147/0.00147, allocations: 203.5 kB / 16.1 MB, free: 5.699 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.347/1.347, allocations: 226.6 MB / 243.4 MB, free: 8.102 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007926/0.0007926, allocations: 98.73 kB / 295.5 MB, free: 6.875 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2899/0.2899, allocations: 44.82 MB / 392.3 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002709/0.0002711, allocations: 4 kB / 465.3 MB, free: 12.68 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2675/0.2678, allocations: 62.96 MB / 0.5159 GB, free: 37.05 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.0005163/0.2683, allocations: 221 kB / 0.5161 GB, free: 36.9 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001353/0.2697, allocations: 1.078 MB / 0.5171 GB, free: 36.2 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.583e-05/0.2697, allocations: 0 / 0.5171 GB, free: 36.2 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 9.118e-06/0.2697, allocations: 0 / 0.5171 GB, free: 36.2 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 6.462e-06/0.2698, allocations: 0 / 0.5171 GB, free: 36.2 MB / 378.7 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.001446/0.2712, allocations: 0.6245 MB / 0.5177 GB, free: 35.98 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 2.801e-05/0.2712, allocations: 3.938 kB / 0.5177 GB, free: 35.97 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.38e-05/0.2713, allocations: 3 kB / 0.5177 GB, free: 35.97 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.755e-05/0.2713, allocations: 0 / 0.5177 GB, free: 35.97 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.569e-05/0.2713, allocations: 0 / 0.5177 GB, free: 35.97 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.932e-06/0.2713, allocations: 3.984 kB / 0.5178 GB, free: 35.97 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00235/0.2737, allocations: 2.233 MB / 0.5199 GB, free: 35.69 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 9.297e-06/0.2737, allocations: 3.984 kB / 0.5199 GB, free: 35.68 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.235e-05/0.2737, allocations: 32.48 kB / 0.52 GB, free: 35.65 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003192/0.2741, allocations: 320 kB / 0.5203 GB, free: 35.61 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.147e-06/0.2741, allocations: 0 / 0.5203 GB, free: 35.61 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.903e-06/0.2741, allocations: 0 / 0.5203 GB, free: 35.61 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.256e-06/0.2741, allocations: 2.781 kB / 0.5203 GB, free: 35.61 MB / 378.7 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.000304/0.2744, allocations: 388.9 kB / 0.5206 GB, free: 35.2 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.433e-05/0.2745, allocations: 7.812 kB / 0.5207 GB, free: 35.2 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.56e-05/0.2745, allocations: 4.938 kB / 0.5207 GB, free: 35.19 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.333e-05/0.2745, allocations: 172.3 kB / 0.5208 GB, free: 34.99 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.052e-05/0.2746, allocations: 4.359 kB / 0.5208 GB, free: 34.99 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.064e-05/0.2746, allocations: 3.938 kB / 0.5208 GB, free: 34.98 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.621e-05/0.2747, allocations: 28.48 kB / 0.5209 GB, free: 34.95 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.713e-06/0.2747, allocations: 0 / 0.5209 GB, free: 34.95 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.494e-06/0.2747, allocations: 0 / 0.5209 GB, free: 34.95 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.538e-06/0.2747, allocations: 0 / 0.5209 GB, free: 34.95 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.082e-05/0.2747, allocations: 3.125 kB / 0.5209 GB, free: 34.95 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.186e-05/0.2748, allocations: 153.4 kB / 0.521 GB, free: 34.76 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.582e-05/0.2749, allocations: 25.33 kB / 0.521 GB, free: 34.73 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.324e-05/0.2749, allocations: 4.859 kB / 0.521 GB, free: 34.72 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.887e-06/0.2749, allocations: 0 / 0.521 GB, free: 34.72 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.158e-05/0.275, allocations: 59.08 kB / 0.5211 GB, free: 34.65 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 8.31e-07/0.275, allocations: 0 / 0.5211 GB, free: 34.65 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001439/0.2751, allocations: 70.58 kB / 0.5212 GB, free: 34.58 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.11e-05/0.2752, allocations: 77.11 kB / 0.5212 GB, free: 34.48 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.353e-05/0.2752, allocations: 89.86 kB / 0.5213 GB, free: 34.39 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.873e-06/0.2752, allocations: 29.64 kB / 0.5213 GB, free: 34.35 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.102e-05/0.2752, allocations: 80.14 kB / 0.5214 GB, free: 34.27 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.62e-05/0.2752, allocations: 2.562 kB / 0.5214 GB, free: 34.27 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.803e-06/0.2752, allocations: 0 / 0.5214 GB, free: 34.27 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.678e-05/0.2753, allocations: 310.8 kB / 0.5217 GB, free: 33.96 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.175e-06/0.2753, allocations: 3.281 kB / 0.5217 GB, free: 33.96 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.789e-06/0.2753, allocations: 6.625 kB / 0.5217 GB, free: 33.95 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.076e-05/0.2754, allocations: 66.77 kB / 0.5218 GB, free: 33.88 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.2754, allocations: 0 / 0.5218 GB, free: 33.88 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.821e-05/0.2754, allocations: 63.34 kB / 0.5219 GB, free: 33.81 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.57e-05/0.2754, allocations: 37.5 kB / 0.5219 GB, free: 33.78 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.518e-06/0.2755, allocations: 0 / 0.5219 GB, free: 33.78 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.182e-05/0.2755, allocations: 0 / 0.5219 GB, free: 33.78 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.394e-06/0.2755, allocations: 3.938 kB / 0.5219 GB, free: 33.77 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.869e-06/0.2755, allocations: 4.031 kB / 0.5219 GB, free: 33.77 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.568e-05/0.2755, allocations: 7.062 kB / 0.5219 GB, free: 33.77 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.123e-06/0.2755, allocations: 0 / 0.5219 GB, free: 33.77 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.129e-05/0.2756, allocations: 142.3 kB / 0.522 GB, free: 33.61 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.204e-06/0.2756, allocations: 7.312 kB / 0.522 GB, free: 33.61 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.937e-06/0.2756, allocations: 6.719 kB / 0.5221 GB, free: 33.61 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-06/0.2756, allocations: 0 / 0.5221 GB, free: 33.61 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.2756, allocations: 4 kB / 0.5221 GB, free: 33.61 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.054e-06/0.2756, allocations: 0 / 0.5221 GB, free: 33.61 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.921e-05/0.2757, allocations: 148.9 kB / 0.5222 GB, free: 33.41 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.2757, allocations: 7.234 kB / 0.5222 GB, free: 33.41 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.91e-07/0.2757, allocations: 0 / 0.5222 GB, free: 33.41 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.332e-06/0.2757, allocations: 0 / 0.5222 GB, free: 33.41 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.58e-06/0.2757, allocations: 3.062 kB / 0.5222 GB, free: 33.41 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.41e-07/0.2757, allocations: 0 / 0.5222 GB, free: 33.41 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.2757, allocations: 0 / 0.5222 GB, free: 33.41 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.05e-05/0.2758, allocations: 97.16 kB / 0.5223 GB, free: 33.3 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.467e-05/0.2758, allocations: 81.14 kB / 0.5224 GB, free: 33.21 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.134e-05/0.2758, allocations: 3.938 kB / 0.5224 GB, free: 33.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.185e-06/0.2758, allocations: 0 / 0.5224 GB, free: 33.2 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.444e-05/0.2759, allocations: 2.781 kB / 0.5224 GB, free: 33.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.274e-06/0.2759, allocations: 0 / 0.5224 GB, free: 33.2 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.132e-05/0.2759, allocations: 75.28 kB / 0.5225 GB, free: 33.13 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2759, allocations: 0 / 0.5225 GB, free: 33.13 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003287/0.2762, allocations: 78.48 kB / 0.5225 GB, free: 33.1 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001376/0.2776, allocations: 0.499 MB / 0.523 GB, free: 32.85 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 7.27e-05/0.2777, allocations: 57.03 kB / 0.5231 GB, free: 32.79 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.2777, allocations: 0 / 0.5231 GB, free: 32.79 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.727e-05/0.2777, allocations: 57.97 kB / 0.5231 GB, free: 32.72 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001263/0.2778, allocations: 14.47 kB / 0.5231 GB, free: 32.71 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000149/0.278, allocations: 95.88 kB / 0.5232 GB, free: 32.59 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.639e-05/0.2781, allocations: 0.6769 MB / 0.5239 GB, free: 31.89 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.874e-06/0.2781, allocations: 10.25 kB / 0.5239 GB, free: 31.88 MB / 378.7 MB Notification: Performance of SimCode: time 2.11e-07/0.2781, allocations: 0 / 0.5239 GB, free: 31.88 MB / 378.7 MB Notification: Performance of Templates: time 0.004086/0.2822, allocations: 2.867 MB / 0.5267 GB, free: 31.55 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Math.TestColorMapToSvg.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Math.TestColorMapToSvg.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Math.TestColorMapToSvg.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Math.TestColorMapToSvg.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Math.TestColorMapToSvg.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Math.TestColorMapToSvg --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Math.TestColorMapToSvg.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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","../files/ModelicaTest_trunk_cpp_ModelicaTest.Math.TestColorMapToSvg.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches