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.00121/0.001209, allocations: 119.8 kB / 18.41 MB, free: 4.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00111/0.00111, allocations: 203.5 kB / 19.36 MB, free: 3.723 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.339/1.339, allocations: 227.4 MB / 247.5 MB, free: 10.33 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2115/0.2115, allocations: 46.1 MB / 344.9 MB, free: 11.47 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001343/0.001343, allocations: 71.89 kB / 419 MB, free: 19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.1118, allocations: 62.46 MB / 481.5 MB, free: 4.508 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001591/0.1135, allocations: 489.5 kB / 481.9 MB, free: 4.031 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001721/0.1152, allocations: 1.146 MB / 483.1 MB, free: 2.879 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.735e-05/0.1152, allocations: 0 / 483.1 MB, free: 2.879 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.779e-06/0.1153, allocations: 7.938 kB / 483.1 MB, free: 2.871 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.097e-06/0.1153, allocations: 0 / 483.1 MB, free: 2.871 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.001694/0.117, allocations: 0.674 MB / 483.8 MB, free: 2.199 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.697e-05/0.117, allocations: 4 kB / 483.8 MB, free: 2.195 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.022e-05/0.117, allocations: 3.984 kB / 483.8 MB, free: 2.191 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.351e-05/0.1171, allocations: 3.984 kB / 483.8 MB, free: 2.188 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.289e-05/0.1171, allocations: 4 kB / 483.8 MB, free: 2.184 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.278e-06/0.1171, allocations: 0 / 483.8 MB, free: 2.184 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002626/0.1197, allocations: 2.444 MB / 486.2 MB, free: 15.74 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.723e-06/0.1197, allocations: 0 / 486.2 MB, free: 15.74 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 1.656e-05/0.1198, allocations: 7.984 kB / 486.2 MB, free: 15.73 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000366/0.1201, allocations: 363.4 kB / 486.6 MB, free: 15.38 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.1201, allocations: 0 / 486.6 MB, free: 15.38 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1202, allocations: 0 / 486.6 MB, free: 15.38 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.208e-06/0.1202, allocations: 0 / 486.6 MB, free: 15.38 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.0003622/0.1205, allocations: 381.1 kB / 487 MB, free: 14.95 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.697e-05/0.1206, allocations: 8.031 kB / 487 MB, free: 14.95 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.174e-05/0.1206, allocations: 0 / 487 MB, free: 14.95 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.188e-05/0.1207, allocations: 159.1 kB / 487.1 MB, free: 14.75 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.3e-05/0.1207, allocations: 3.938 kB / 487.1 MB, free: 14.75 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.666e-06/0.1207, allocations: 4 kB / 487.1 MB, free: 14.74 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.582e-05/0.1208, allocations: 41.62 kB / 487.2 MB, free: 14.7 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.502e-06/0.1208, allocations: 0 / 487.2 MB, free: 14.7 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.308e-06/0.1209, allocations: 0 / 487.2 MB, free: 14.7 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.188e-06/0.1209, allocations: 3.938 kB / 487.2 MB, free: 14.69 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.627e-05/0.1209, allocations: 8 kB / 487.2 MB, free: 14.68 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001131/0.121, allocations: 141.7 kB / 487.3 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.44e-05/0.1211, allocations: 22.55 kB / 487.3 MB, free: 14.46 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.408e-05/0.1211, allocations: 4.859 kB / 487.4 MB, free: 14.46 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.472e-06/0.1211, allocations: 0 / 487.4 MB, free: 14.46 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.226e-05/0.1211, allocations: 64.25 kB / 487.4 MB, free: 14.38 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.1211, allocations: 7.938 kB / 487.4 MB, free: 14.37 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001442/0.1213, allocations: 59.47 kB / 487.5 MB, free: 14.3 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.78e-05/0.1213, allocations: 77.11 kB / 487.6 MB, free: 14.21 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.286e-05/0.1214, allocations: 89.86 kB / 487.6 MB, free: 14.11 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.114e-05/0.1214, allocations: 29.7 kB / 487.7 MB, free: 14.07 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.938e-05/0.1214, allocations: 80.14 kB / 487.7 MB, free: 13.99 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.537e-05/0.1215, allocations: 0 / 487.7 MB, free: 13.99 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.612e-05/0.1215, allocations: 17.7 kB / 487.8 MB, free: 13.97 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.563e-05/0.1216, allocations: 319 kB / 488.1 MB, free: 13.65 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.326e-06/0.1216, allocations: 0 / 488.1 MB, free: 13.65 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.569e-06/0.1216, allocations: 0 / 488.1 MB, free: 13.65 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.222e-05/0.1217, allocations: 64.2 kB / 488.1 MB, free: 13.57 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.1217, allocations: 0 / 488.1 MB, free: 13.57 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.039e-05/0.1217, allocations: 71.33 kB / 488.2 MB, free: 13.49 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.665e-05/0.1218, allocations: 29.7 kB / 488.2 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.737e-06/0.1218, allocations: 0 / 488.2 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.035e-05/0.1218, allocations: 96 / 488.2 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.71e-07/0.1218, allocations: 4 kB / 488.2 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.028e-06/0.1218, allocations: 0 / 488.2 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.514e-05/0.1218, allocations: 4 kB / 488.2 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.971e-05/0.1219, allocations: 0 / 488.2 MB, free: 13.45 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.536e-05/0.1219, allocations: 135.5 kB / 488.4 MB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.506e-06/0.1219, allocations: 7.938 kB / 488.4 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.715e-05/0.122, allocations: 7.109 kB / 488.4 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-06/0.122, allocations: 0 / 488.4 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.122, allocations: 0 / 488.4 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.914e-06/0.122, allocations: 4 kB / 488.4 MB, free: 13.28 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.48e-05/0.1221, allocations: 145.6 kB / 488.5 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.1221, allocations: 0 / 488.5 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.713e-06/0.1221, allocations: 7.938 kB / 488.5 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.152e-06/0.1221, allocations: 3.938 kB / 488.6 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.257e-06/0.1221, allocations: 3.984 kB / 488.6 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.607e-06/0.1221, allocations: 4 kB / 488.6 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.1221, allocations: 0 / 488.6 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.523e-05/0.1222, allocations: 102.8 kB / 488.7 MB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.802e-05/0.1223, allocations: 81.09 kB / 488.7 MB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.013e-05/0.1223, allocations: 0 / 488.7 MB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.346e-06/0.1223, allocations: 0 / 488.7 MB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.048e-05/0.1223, allocations: 4 kB / 488.7 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.164e-06/0.1223, allocations: 0 / 488.7 MB, free: 12.84 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.863e-05/0.1223, allocations: 75.28 kB / 488.8 MB, free: 12.77 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1224, allocations: 0 / 488.8 MB, free: 12.77 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002864/0.1226, allocations: 55.92 kB / 488.9 MB, free: 12.71 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.001231/0.1239, allocations: 0.5186 MB / 489.4 MB, free: 12.24 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 8.446e-05/0.124, allocations: 67.33 kB / 489.5 MB, free: 12.16 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.124, allocations: 4.062 kB / 489.5 MB, free: 12.16 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.48e-05/0.124, allocations: 55.41 kB / 489.5 MB, free: 12.09 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001163/0.1241, allocations: 7.938 kB / 489.5 MB, free: 12.09 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001481/0.1243, allocations: 84.83 kB / 489.6 MB, free: 11.98 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002219/0.1245, allocations: 0.6728 MB / 490.3 MB, free: 11.28 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.661e-06/0.1245, allocations: 0 / 490.3 MB, free: 11.28 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.025e-05/0.1246, allocations: 7.438 kB / 490.3 MB, free: 11.27 MB / 366.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1246, allocations: 3.938 kB / 490.3 MB, free: 11.27 MB / 366.1 MB Notification: Performance of Templates: time 0.004628/0.1292, allocations: 2.145 MB / 492.4 MB, free: 9.113 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 -s gbode -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