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.0009074/0.0009074, allocations: 202.5 kB / 15.8 MB, free: 6.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.29/1.29, allocations: 226.6 MB / 243.1 MB, free: 12.58 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007641/0.0007641, allocations: 87.92 kB / 295.1 MB, free: 4.348 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1931/0.1931, allocations: 44.83 MB / 392 MB, free: 11.38 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002449/0.0002449, allocations: 4 kB / 464.7 MB, free: 68.1 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09749/0.09775, allocations: 62.95 MB / 0.5153 GB, free: 5.133 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.0004992/0.09829, allocations: 216.6 kB / 0.5155 GB, free: 4.918 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001323/0.09963, allocations: 1.076 MB / 0.5166 GB, free: 3.836 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.585e-05/0.09965, allocations: 0 / 0.5166 GB, free: 3.836 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.203e-05/0.09968, allocations: 3.938 kB / 0.5166 GB, free: 3.832 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 6.212e-06/0.09969, allocations: 0 / 0.5166 GB, free: 3.832 MB / 346.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.001394/0.1011, allocations: 0.6304 MB / 0.5172 GB, free: 3.207 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 3.371e-05/0.1011, allocations: 0 / 0.5172 GB, free: 3.207 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.57e-05/0.1012, allocations: 3.984 kB / 0.5172 GB, free: 3.203 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.583e-05/0.1012, allocations: 0 / 0.5172 GB, free: 3.203 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.594e-05/0.1012, allocations: 0 / 0.5172 GB, free: 3.203 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 5.62e-06/0.1012, allocations: 3.938 kB / 0.5172 GB, free: 3.199 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001989/0.1032, allocations: 2.234 MB / 0.5194 GB, free: 0.9648 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 5.34e-06/0.1032, allocations: 3.938 kB / 0.5194 GB, free: 0.9609 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.206e-05/0.1033, allocations: 33.7 kB / 0.5194 GB, free: 0.9219 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000307/0.1036, allocations: 319.5 kB / 0.5197 GB, free: 0.6094 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.1036, allocations: 0 / 0.5197 GB, free: 0.6094 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1036, allocations: 0 / 0.5197 GB, free: 0.6094 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.897e-06/0.1036, allocations: 4 kB / 0.5197 GB, free: 0.6055 MB / 346.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.000309/0.1039, allocations: 381.1 kB / 0.5201 GB, free: 184 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.242e-05/0.104, allocations: 8.031 kB / 0.5201 GB, free: 176 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.06e-05/0.104, allocations: 3.984 kB / 0.5201 GB, free: 172 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.131e-05/0.1041, allocations: 163.3 kB / 0.5203 GB, free: 15.97 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.388e-06/0.1041, allocations: 4 kB / 0.5203 GB, free: 15.96 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.218e-06/0.1041, allocations: 4 kB / 0.5203 GB, free: 15.96 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.717e-05/0.1042, allocations: 25.7 kB / 0.5203 GB, free: 15.93 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.532e-06/0.1042, allocations: 0 / 0.5203 GB, free: 15.93 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.504e-06/0.1042, allocations: 4 kB / 0.5203 GB, free: 15.93 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.587e-06/0.1042, allocations: 0 / 0.5203 GB, free: 15.93 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.785e-05/0.1043, allocations: 3.938 kB / 0.5203 GB, free: 15.92 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001214/0.1044, allocations: 157.6 kB / 0.5204 GB, free: 15.72 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.707e-05/0.1044, allocations: 22.61 kB / 0.5205 GB, free: 15.69 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.48e-05/0.1045, allocations: 4.859 kB / 0.5205 GB, free: 15.68 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.338e-06/0.1045, allocations: 0 / 0.5205 GB, free: 15.68 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.94e-05/0.1045, allocations: 60.33 kB / 0.5205 GB, free: 15.61 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 8.92e-07/0.1045, allocations: 0 / 0.5205 GB, free: 15.61 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001588/0.1047, allocations: 67.33 kB / 0.5206 GB, free: 15.53 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.23e-05/0.1047, allocations: 81.11 kB / 0.5207 GB, free: 15.43 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.781e-05/0.1048, allocations: 89.98 kB / 0.5208 GB, free: 15.33 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.251e-05/0.1048, allocations: 29.7 kB / 0.5208 GB, free: 15.3 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.865e-05/0.1048, allocations: 84.08 kB / 0.5209 GB, free: 15.21 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.127e-05/0.1049, allocations: 3.938 kB / 0.5209 GB, free: 15.21 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.033e-06/0.1049, allocations: 0 / 0.5209 GB, free: 15.21 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.359e-05/0.105, allocations: 310.8 kB / 0.5212 GB, free: 14.89 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.034e-05/0.105, allocations: 8 kB / 0.5212 GB, free: 14.89 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.16e-06/0.105, allocations: 0 / 0.5212 GB, free: 14.89 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.206e-05/0.105, allocations: 25.7 kB / 0.5212 GB, free: 14.86 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.105, allocations: 8.047 kB / 0.5212 GB, free: 14.85 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.919e-05/0.1051, allocations: 67.3 kB / 0.5213 GB, free: 14.77 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.07e-05/0.1051, allocations: 33.64 kB / 0.5213 GB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.538e-06/0.1052, allocations: 0 / 0.5213 GB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.067e-05/0.1052, allocations: 4 kB / 0.5213 GB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.61e-07/0.1052, allocations: 0 / 0.5213 GB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.62e-06/0.1052, allocations: 0 / 0.5213 GB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.859e-05/0.1052, allocations: 0 / 0.5213 GB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.001e-06/0.1052, allocations: 0 / 0.5213 GB, free: 14.73 MB / 362.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 8.803e-05/0.1053, allocations: 143.6 kB / 0.5214 GB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.082e-05/0.1053, allocations: 7.953 kB / 0.5214 GB, free: 14.56 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.038e-05/0.1053, allocations: 7.078 kB / 0.5215 GB, free: 14.56 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-06/0.1054, allocations: 0 / 0.5215 GB, free: 14.56 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.516e-06/0.1054, allocations: 0 / 0.5215 GB, free: 14.56 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.1054, allocations: 3.984 kB / 0.5215 GB, free: 14.55 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.639e-05/0.1055, allocations: 149.7 kB / 0.5216 GB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.1055, allocations: 0 / 0.5216 GB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.51e-07/0.1055, allocations: 0 / 0.5216 GB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.975e-06/0.1055, allocations: 3.953 kB / 0.5216 GB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.342e-06/0.1055, allocations: 4 kB / 0.5216 GB, free: 14.35 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.1055, allocations: 3.984 kB / 0.5216 GB, free: 14.35 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.484e-06/0.1055, allocations: 4 kB / 0.5216 GB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.409e-05/0.1056, allocations: 90.77 kB / 0.5217 GB, free: 14.23 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.436e-05/0.1056, allocations: 77.11 kB / 0.5218 GB, free: 14.14 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.409e-05/0.1057, allocations: 7.953 kB / 0.5218 GB, free: 14.13 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.327e-06/0.1057, allocations: 0 / 0.5218 GB, free: 14.13 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.195e-05/0.1057, allocations: 0 / 0.5218 GB, free: 14.13 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.625e-06/0.1057, allocations: 4.031 kB / 0.5218 GB, free: 14.12 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.225e-05/0.1057, allocations: 75.28 kB / 0.5219 GB, free: 14.05 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1057, allocations: 0 / 0.5219 GB, free: 14.05 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000354/0.1061, allocations: 67.98 kB / 0.5219 GB, free: 13.98 MB / 362.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.001475/0.1076, allocations: 0.5024 MB / 0.5224 GB, free: 13.52 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 8.726e-05/0.1077, allocations: 59.39 kB / 0.5225 GB, free: 13.45 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.1077, allocations: 0 / 0.5225 GB, free: 13.45 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.275e-05/0.1077, allocations: 55.41 kB / 0.5225 GB, free: 13.39 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001141/0.1078, allocations: 9.906 kB / 0.5225 GB, free: 13.38 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001749/0.108, allocations: 104.3 kB / 0.5226 GB, free: 13.24 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002045/0.1082, allocations: 0.6772 MB / 0.5233 GB, free: 12.54 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.518e-06/0.1083, allocations: 7.438 kB / 0.5233 GB, free: 12.53 MB / 362.7 MB Notification: Performance of SimCode: time 2.21e-07/0.1083, allocations: 0 / 0.5233 GB, free: 12.53 MB / 362.7 MB Notification: Performance of Templates: time 0.005107/0.1134, allocations: 2.864 MB / 0.5261 GB, free: 9.664 MB / 362.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