Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.TestColorMapToSvg,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg") translateModel(ModelicaTest.Math.TestColorMapToSvg,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000931/0.0009311, allocations: 95.2 kB / 16.98 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001107/0.001107, allocations: 183.8 kB / 17.87 MB, free: 5.957 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.423/1.423, allocations: 223.2 MB / 241.8 MB, free: 372 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3174/0.3174, allocations: 44.23 MB / 337.1 MB, free: 2.895 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003319/0.0003319, allocations: 11.06 kB / 409.5 MB, free: 27.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.121/0.1213, allocations: 61.91 MB / 471.4 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.0007095/0.1221, allocations: 213.2 kB / 471.7 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001889/0.124, allocations: 1.027 MB / 472.7 MB, free: 12.51 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.799e-05/0.124, allocations: 0 / 472.7 MB, free: 12.51 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.628e-05/0.1241, allocations: 0 / 472.7 MB, free: 12.51 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.989e-06/0.1241, allocations: 0 / 472.7 MB, free: 12.51 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/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 4.0.0+maint.om/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.001499/0.1256, allocations: 0.6018 MB / 473.3 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.54e-05/0.1256, allocations: 3.938 kB / 473.3 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.847e-05/0.1257, allocations: 3.984 kB / 473.3 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.718e-05/0.1257, allocations: 7.984 kB / 473.3 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.688e-05/0.1257, allocations: 0 / 473.3 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.33e-06/0.1257, allocations: 4 kB / 473.3 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007218/0.1265, allocations: 0.5265 MB / 473.8 MB, free: 11.37 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.08e-06/0.1265, allocations: 0 / 473.8 MB, free: 11.37 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.023e-05/0.1265, allocations: 29.7 kB / 473.9 MB, free: 11.33 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003792/0.1269, allocations: 267.5 kB / 474.1 MB, free: 11.07 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.204e-06/0.1269, allocations: 4 kB / 474.1 MB, free: 11.07 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1269, allocations: 4 kB / 474.1 MB, free: 11.06 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.878e-06/0.1269, allocations: 0 / 474.1 MB, free: 11.06 MB / 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.0003875/0.1273, allocations: 385.1 kB / 474.5 MB, free: 10.63 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.904e-05/0.1274, allocations: 8.031 kB / 474.5 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.074e-05/0.1274, allocations: 0 / 474.5 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001607/0.1276, allocations: 163.3 kB / 474.7 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.264e-05/0.1276, allocations: 0 / 474.7 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.169e-05/0.1276, allocations: 8 kB / 474.7 MB, free: 10.42 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.03e-05/0.1277, allocations: 33.66 kB / 474.7 MB, free: 10.38 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.113e-06/0.1277, allocations: 3.938 kB / 474.7 MB, free: 10.38 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.063e-06/0.1277, allocations: 0 / 474.7 MB, free: 10.38 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-06/0.1277, allocations: 0 / 474.7 MB, free: 10.38 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.487e-05/0.1277, allocations: 4 kB / 474.7 MB, free: 10.37 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001356/0.1279, allocations: 145.7 kB / 474.9 MB, free: 10.18 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.839e-05/0.1279, allocations: 18.61 kB / 474.9 MB, free: 10.15 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.937e-06/0.1279, allocations: 0 / 474.9 MB, free: 10.15 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000115/0.1281, allocations: 64.27 kB / 474.9 MB, free: 10.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.41e-07/0.1281, allocations: 0 / 474.9 MB, free: 10.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001532/0.1282, allocations: 71.34 kB / 475 MB, free: 9.992 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.329e-05/0.1283, allocations: 81.09 kB / 475.1 MB, free: 9.895 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.902e-05/0.1283, allocations: 89.86 kB / 475.2 MB, free: 9.797 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.162e-05/0.1284, allocations: 25.7 kB / 475.2 MB, free: 9.766 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.161e-05/0.1284, allocations: 80.14 kB / 475.3 MB, free: 9.684 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.826e-05/0.1284, allocations: 8.062 kB / 475.3 MB, free: 9.676 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.954e-06/0.1284, allocations: 4 kB / 475.3 MB, free: 9.672 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002454/0.1287, allocations: 314.8 kB / 475.6 MB, free: 9.355 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.743e-06/0.1287, allocations: 3.938 kB / 475.6 MB, free: 9.352 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.114e-05/0.1287, allocations: 0 / 475.6 MB, free: 9.352 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.549e-05/0.1287, allocations: 33.64 kB / 475.6 MB, free: 9.312 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.1287, allocations: 0 / 475.6 MB, free: 9.312 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.174e-05/0.1288, allocations: 63.33 kB / 475.7 MB, free: 9.238 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.151e-05/0.1288, allocations: 33.7 kB / 475.7 MB, free: 9.199 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.94e-06/0.1289, allocations: 4.094 kB / 475.7 MB, free: 9.195 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.24e-05/0.1289, allocations: 3.953 kB / 475.7 MB, free: 9.191 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.92e-07/0.1289, allocations: 0 / 475.7 MB, free: 9.191 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.759e-06/0.1289, allocations: 0 / 475.7 MB, free: 9.191 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.4e-05/0.1289, allocations: 0 / 475.7 MB, free: 9.191 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.937e-06/0.1289, allocations: 8 kB / 475.7 MB, free: 9.184 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001091/0.129, allocations: 136.1 kB / 475.9 MB, free: 9.035 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.303e-06/0.129, allocations: 3.984 kB / 475.9 MB, free: 9.031 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.044e-05/0.1291, allocations: 11.08 kB / 475.9 MB, free: 9.02 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-06/0.1291, allocations: 4 kB / 475.9 MB, free: 9.016 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.1291, allocations: 3.953 kB / 475.9 MB, free: 9.012 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.944e-06/0.1291, allocations: 0 / 475.9 MB, free: 9.012 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.356e-05/0.1292, allocations: 141.7 kB / 476 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.1292, allocations: 0 / 476 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.1292, allocations: 0 / 476 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.1292, allocations: 7.984 kB / 476 MB, free: 8.816 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.032e-06/0.1292, allocations: 0 / 476 MB, free: 8.816 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.32e-07/0.1292, allocations: 0 / 476 MB, free: 8.816 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.1292, allocations: 0 / 476 MB, free: 8.816 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.287e-05/0.1293, allocations: 98.73 kB / 476.1 MB, free: 8.695 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.167e-05/0.1293, allocations: 81.09 kB / 476.2 MB, free: 8.598 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.185e-05/0.1294, allocations: 0 / 476.2 MB, free: 8.598 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.826e-06/0.1294, allocations: 0 / 476.2 MB, free: 8.598 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.028e-05/0.1294, allocations: 0 / 476.2 MB, free: 8.598 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.41e-06/0.1294, allocations: 4 kB / 476.2 MB, free: 8.594 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.863e-05/0.1294, allocations: 79.23 kB / 476.3 MB, free: 8.516 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1294, allocations: 0 / 476.3 MB, free: 8.516 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000365/0.1298, allocations: 92.02 kB / 476.4 MB, free: 8.426 MB / 350.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 (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.0008371/0.1307, allocations: 379.1 kB / 476.8 MB, free: 8.117 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001018/0.1308, allocations: 63.39 kB / 476.8 MB, free: 8.043 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.1308, allocations: 0 / 476.8 MB, free: 8.043 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.377e-05/0.1308, allocations: 59.34 kB / 476.9 MB, free: 7.973 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.651e-05/0.1309, allocations: 12.06 kB / 476.9 MB, free: 7.961 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001933/0.1311, allocations: 78.69 kB / 477 MB, free: 7.855 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002819/0.1314, allocations: 0.6731 MB / 477.6 MB, free: 7.156 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.851e-06/0.1314, allocations: 0 / 477.6 MB, free: 7.156 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.149e-05/0.1314, allocations: 7.438 kB / 477.7 MB, free: 7.148 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1314, allocations: 0 / 477.7 MB, free: 7.148 MB / 350.1 MB Notification: Performance of Templates: time 0.00841/0.1399, allocations: 3.117 MB / 480.8 MB, free: 4.027 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Math.TestColorMapToSvg.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches