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.001239/0.001239, allocations: 117.2 kB / 17.78 MB, free: 5.258 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.001241/0.001241, allocations: 185 kB / 18.72 MB, free: 4.332 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.332/1.332, allocations: 222.9 MB / 242.4 MB, free: 15.07 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.2027/0.2027, allocations: 44.18 MB / 336.7 MB, free: 2.656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001196/0.001196, allocations: 55.91 kB / 470.5 MB, free: 13.17 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3622/0.3634, allocations: 60.83 MB / 0.5189 GB, free: 3.578 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.00155/0.365, allocations: 499.3 kB / 0.5194 GB, free: 3.281 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001704/0.3667, allocations: 1.141 MB / 0.5205 GB, free: 2.535 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.54e-05/0.3668, allocations: 0 / 0.5205 GB, free: 2.535 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.728e-05/0.3668, allocations: 0 / 0.5205 GB, free: 2.535 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.27e-06/0.3668, allocations: 1.125 kB / 0.5205 GB, free: 2.535 MB / 382.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.001924/0.3687, allocations: 0.6887 MB / 0.5212 GB, free: 2.273 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.297e-05/0.3688, allocations: 6.094 kB / 0.5212 GB, free: 2.27 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.614e-05/0.3688, allocations: 1.844 kB / 0.5212 GB, free: 2.27 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.506e-05/0.3689, allocations: 1.219 kB / 0.5212 GB, free: 2.27 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.454e-05/0.3689, allocations: 3.984 kB / 0.5212 GB, free: 2.266 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.699e-06/0.3689, allocations: 0 / 0.5212 GB, free: 2.266 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003848/0.3727, allocations: 2.448 MB / 0.5236 GB, free: 1.738 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.28e-05/0.3728, allocations: 3.984 kB / 0.5236 GB, free: 1.734 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.318e-05/0.3728, allocations: 1.281 kB / 0.5236 GB, free: 1.734 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005701/0.3734, allocations: 357 kB / 0.5239 GB, free: 1.594 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.571e-06/0.3734, allocations: 0 / 0.5239 GB, free: 1.594 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.3734, allocations: 0 / 0.5239 GB, free: 1.594 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.083e-06/0.3734, allocations: 1.344 kB / 0.5239 GB, free: 1.594 MB / 382.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.0004731/0.3739, allocations: 389.8 kB / 0.5243 GB, free: 1.172 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.136e-05/0.374, allocations: 9.5 kB / 0.5243 GB, free: 1.172 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.353e-05/0.374, allocations: 0 / 0.5243 GB, free: 1.172 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.441e-05/0.3741, allocations: 159.1 kB / 0.5244 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.365e-05/0.3741, allocations: 5.312 kB / 0.5244 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.32e-05/0.3741, allocations: 0 / 0.5244 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001121/0.3742, allocations: 36.36 kB / 0.5245 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.3743, allocations: 0 / 0.5245 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.127e-05/0.3743, allocations: 1.469 kB / 0.5245 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.08e-06/0.3743, allocations: 4 kB / 0.5245 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.369e-05/0.3743, allocations: 9.203 kB / 0.5245 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001178/0.3744, allocations: 143.1 kB / 0.5246 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.646e-05/0.3745, allocations: 19.89 kB / 0.5246 GB, free: 0.707 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.771e-05/0.3745, allocations: 6.234 kB / 0.5247 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.426e-06/0.3745, allocations: 5.312 kB / 0.5247 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.908e-05/0.3746, allocations: 64.27 kB / 0.5247 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 8.41e-07/0.3746, allocations: 5.312 kB / 0.5247 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002336/0.3748, allocations: 66.2 kB / 0.5248 GB, free: 0.543 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.366e-05/0.3749, allocations: 78.48 kB / 0.5249 GB, free: 460 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.665e-05/0.3749, allocations: 89.86 kB / 0.5249 GB, free: 360 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.415e-05/0.375, allocations: 25.7 kB / 0.525 GB, free: 328 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.836e-05/0.375, allocations: 80.14 kB / 0.525 GB, free: 244 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.607e-05/0.375, allocations: 1.375 kB / 0.5251 GB, free: 244 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.6e-05/0.375, allocations: 19.22 kB / 0.5251 GB, free: 220 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.951e-05/0.3751, allocations: 316.2 kB / 0.5254 GB, free: 15.9 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.177e-05/0.3752, allocations: 1.375 kB / 0.5254 GB, free: 15.9 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.081e-06/0.3752, allocations: 0 / 0.5254 GB, free: 15.9 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.978e-05/0.3752, allocations: 60.39 kB / 0.5254 GB, free: 15.83 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.3752, allocations: 0 / 0.5254 GB, free: 15.83 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.329e-05/0.3753, allocations: 70.16 kB / 0.5255 GB, free: 15.75 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.133e-05/0.3754, allocations: 35.19 kB / 0.5255 GB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.3754, allocations: 4.094 kB / 0.5255 GB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.555e-05/0.3754, allocations: 1.375 kB / 0.5255 GB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.022e-06/0.3754, allocations: 0 / 0.5255 GB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.841e-06/0.3754, allocations: 0 / 0.5255 GB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.975e-05/0.3755, allocations: 1.375 kB / 0.5255 GB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.415e-06/0.3755, allocations: 0 / 0.5255 GB, free: 15.71 MB / 398.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 8.906e-05/0.3756, allocations: 138.2 kB / 0.5257 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.026e-05/0.3756, allocations: 5.328 kB / 0.5257 GB, free: 15.56 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.029e-05/0.3756, allocations: 7.078 kB / 0.5257 GB, free: 15.56 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.3756, allocations: 7.984 kB / 0.5257 GB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.93e-06/0.3756, allocations: 1.375 kB / 0.5257 GB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.355e-06/0.3756, allocations: 0 / 0.5257 GB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001017/0.3757, allocations: 147 kB / 0.5258 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.52e-07/0.3757, allocations: 0 / 0.5258 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.302e-06/0.3758, allocations: 1.375 kB / 0.5258 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.3758, allocations: 4 kB / 0.5258 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.505e-06/0.3758, allocations: 0 / 0.5258 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.92e-07/0.3758, allocations: 1.375 kB / 0.5258 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.3758, allocations: 0 / 0.5258 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001095/0.3759, allocations: 109.6 kB / 0.5259 GB, free: 15.23 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.891e-05/0.3759, allocations: 81.09 kB / 0.526 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.649e-05/0.376, allocations: 5.359 kB / 0.526 GB, free: 15.13 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.077e-06/0.376, allocations: 1.375 kB / 0.526 GB, free: 15.13 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.741e-05/0.376, allocations: 0 / 0.526 GB, free: 15.13 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.795e-06/0.376, allocations: 1.375 kB / 0.526 GB, free: 15.13 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.728e-05/0.376, allocations: 75.28 kB / 0.5261 GB, free: 15.06 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.376, allocations: 32 / 0.5261 GB, free: 15.06 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003839/0.3764, allocations: 63.3 kB / 0.5262 GB, free: 15.03 MB / 398.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.001416/0.3779, allocations: 0.5241 MB / 0.5267 GB, free: 14.75 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.777e-05/0.378, allocations: 68.73 kB / 0.5267 GB, free: 14.68 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.378, allocations: 0 / 0.5267 GB, free: 14.68 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.137e-05/0.378, allocations: 58.75 kB / 0.5268 GB, free: 14.61 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000124/0.3781, allocations: 5.5 kB / 0.5268 GB, free: 14.61 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001834/0.3783, allocations: 67.83 kB / 0.5269 GB, free: 14.52 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002325/0.3786, allocations: 0.6782 MB / 0.5275 GB, free: 13.82 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.961e-06/0.3786, allocations: 0 / 0.5275 GB, free: 13.82 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.766e-05/0.3786, allocations: 9.875 kB / 0.5275 GB, free: 13.81 MB / 398.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3786, allocations: 8.062 kB / 0.5275 GB, free: 13.8 MB / 398.1 MB Notification: Performance of Templates: time 0.005589/0.3842, allocations: 2.143 MB / 0.5296 GB, free: 12.81 MB / 398.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches