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.0007784/0.0007781, allocations: 93.48 kB / 18 MB, free: 5.602 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.00138/0.00138, allocations: 179.5 kB / 18.91 MB, free: 4.734 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.333/1.333, allocations: 223.3 MB / 243 MB, free: 14.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1916/0.1916, allocations: 44.26 MB / 338.3 MB, free: 2.488 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003246/0.0003247, allocations: 8 kB / 411 MB, free: 27.28 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1041, allocations: 61.92 MB / 472.9 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.0006082/0.1048, allocations: 217.3 kB / 473.1 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001962/0.1068, allocations: 1.182 MB / 474.3 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.073e-05/0.1068, allocations: 0 / 474.3 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.248e-05/0.1068, allocations: 0 / 474.3 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.799e-06/0.1068, allocations: 0 / 474.3 MB, free: 11.93 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.002243/0.1091, allocations: 0.6289 MB / 474.9 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.105e-05/0.1091, allocations: 0 / 474.9 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.25e-05/0.1092, allocations: 4 kB / 474.9 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.696e-05/0.1092, allocations: 0 / 474.9 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.937e-05/0.1092, allocations: 7.938 kB / 474.9 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.541e-06/0.1092, allocations: 0 / 474.9 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002996/0.1122, allocations: 2.593 MB / 477.5 MB, free: 8.699 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.536e-06/0.1123, allocations: 4 kB / 477.5 MB, free: 8.695 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.826e-05/0.1123, allocations: 29.69 kB / 477.6 MB, free: 8.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003513/0.1127, allocations: 291.7 kB / 477.9 MB, free: 8.375 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.1127, allocations: 0 / 477.9 MB, free: 8.375 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.337e-06/0.1127, allocations: 0 / 477.9 MB, free: 8.375 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.058e-06/0.1127, allocations: 3.938 kB / 477.9 MB, free: 8.371 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.0004267/0.1131, allocations: 373 kB / 478.2 MB, free: 7.953 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.926e-05/0.1132, allocations: 8.031 kB / 478.2 MB, free: 7.945 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.004e-05/0.1132, allocations: 3.938 kB / 478.2 MB, free: 7.941 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.281e-05/0.1133, allocations: 159.1 kB / 478.4 MB, free: 7.746 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.691e-05/0.1133, allocations: 12 kB / 478.4 MB, free: 7.734 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.648e-06/0.1133, allocations: 0 / 478.4 MB, free: 7.734 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.609e-05/0.1134, allocations: 25.7 kB / 478.4 MB, free: 7.703 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.217e-06/0.1135, allocations: 3.984 kB / 478.4 MB, free: 7.699 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.121e-05/0.1135, allocations: 4 kB / 478.4 MB, free: 7.695 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.89e-06/0.1135, allocations: 3.938 kB / 478.4 MB, free: 7.691 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.83e-05/0.1135, allocations: 3.938 kB / 478.4 MB, free: 7.688 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001205/0.1136, allocations: 141.7 kB / 478.6 MB, free: 7.5 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.209e-05/0.1137, allocations: 26.55 kB / 478.6 MB, free: 7.465 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.705e-05/0.1137, allocations: 8.859 kB / 478.6 MB, free: 7.453 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.243e-06/0.1137, allocations: 0 / 478.6 MB, free: 7.453 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.77e-05/0.1138, allocations: 60.25 kB / 478.7 MB, free: 7.379 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.21e-07/0.1138, allocations: 4.062 kB / 478.7 MB, free: 7.375 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001649/0.1139, allocations: 59.34 kB / 478.7 MB, free: 7.305 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.33e-05/0.114, allocations: 81.23 kB / 478.8 MB, free: 7.207 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.409e-05/0.1141, allocations: 97.8 kB / 478.9 MB, free: 7.102 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.246e-05/0.1141, allocations: 25.7 kB / 478.9 MB, free: 7.07 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.61e-05/0.1141, allocations: 84.14 kB / 479 MB, free: 6.984 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.864e-05/0.1141, allocations: 3.938 kB / 479 MB, free: 6.98 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.1e-05/0.1142, allocations: 9.719 kB / 479 MB, free: 6.965 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000103/0.1143, allocations: 314.8 kB / 479.3 MB, free: 6.648 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.24e-05/0.1143, allocations: 4 kB / 479.3 MB, free: 6.645 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.939e-06/0.1143, allocations: 3.938 kB / 479.3 MB, free: 6.641 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.395e-05/0.1143, allocations: 64.33 kB / 479.4 MB, free: 6.562 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.1143, allocations: 0 / 479.4 MB, free: 6.562 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.984e-05/0.1144, allocations: 63.34 kB / 479.5 MB, free: 6.488 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.844e-05/0.1145, allocations: 37.69 kB / 479.5 MB, free: 6.445 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.1145, allocations: 0 / 479.5 MB, free: 6.445 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.205e-05/0.1145, allocations: 0 / 479.5 MB, free: 6.445 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.62e-07/0.1145, allocations: 0 / 479.5 MB, free: 6.445 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.238e-06/0.1145, allocations: 0 / 479.5 MB, free: 6.445 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.688e-05/0.1145, allocations: 3.938 kB / 479.5 MB, free: 6.441 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.886e-06/0.1145, allocations: 8.031 kB / 479.5 MB, free: 6.434 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.638e-05/0.1146, allocations: 131.5 kB / 479.6 MB, free: 6.289 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.394e-06/0.1146, allocations: 0 / 479.6 MB, free: 6.289 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.006e-05/0.1147, allocations: 7.078 kB / 479.7 MB, free: 6.285 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.1147, allocations: 7.984 kB / 479.7 MB, free: 6.277 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/0.1147, allocations: 4 kB / 479.7 MB, free: 6.273 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.1147, allocations: 7.922 kB / 479.7 MB, free: 6.266 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.592e-05/0.1148, allocations: 141.7 kB / 479.8 MB, free: 6.078 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.1148, allocations: 0 / 479.8 MB, free: 6.078 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.81e-07/0.1148, allocations: 4 kB / 479.8 MB, free: 6.074 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.287e-06/0.1148, allocations: 4 kB / 479.8 MB, free: 6.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.376e-06/0.1148, allocations: 4 kB / 479.8 MB, free: 6.066 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.1148, allocations: 0 / 479.8 MB, free: 6.066 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1148, allocations: 0 / 479.8 MB, free: 6.066 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.845e-05/0.1149, allocations: 102.7 kB / 479.9 MB, free: 5.941 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.351e-05/0.115, allocations: 81.05 kB / 480 MB, free: 5.844 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.456e-05/0.115, allocations: 3.984 kB / 480 MB, free: 5.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.588e-06/0.115, allocations: 4.031 kB / 480 MB, free: 5.836 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.321e-05/0.115, allocations: 3.938 kB / 480 MB, free: 5.832 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.819e-06/0.115, allocations: 4 kB / 480 MB, free: 5.828 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.735e-05/0.1151, allocations: 75.28 kB / 480.1 MB, free: 5.754 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1151, allocations: 0 / 480.1 MB, free: 5.754 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003482/0.1154, allocations: 51.98 kB / 480.1 MB, free: 5.703 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 (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.00177/0.1172, allocations: 0.5314 MB / 480.7 MB, free: 5.238 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.125e-05/0.1173, allocations: 63.39 kB / 480.7 MB, free: 5.164 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.1173, allocations: 0 / 480.7 MB, free: 5.164 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.036e-05/0.1173, allocations: 55.41 kB / 480.8 MB, free: 5.098 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001259/0.1175, allocations: 8.062 kB / 480.8 MB, free: 5.09 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001979/0.1177, allocations: 108.3 kB / 480.9 MB, free: 4.949 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002194/0.1179, allocations: 0.6731 MB / 481.6 MB, free: 4.25 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.245e-05/0.1179, allocations: 11.44 kB / 481.6 MB, free: 4.242 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1179, allocations: 0 / 481.6 MB, free: 4.242 MB / 350.1 MB Notification: Performance of Templates: time 0.004743/0.1227, allocations: 2.583 MB / 484.2 MB, free: 1.656 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/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_4.0.0_ModelicaTest.Math.TestColorMapToSvg.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches