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.001406/0.001406, allocations: 118.4 kB / 17.78 MB, free: 5.266 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.001689/0.001689, allocations: 183 kB / 18.72 MB, free: 4.336 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.398/1.398, 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.2163/0.2163, allocations: 44.19 MB / 336.7 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001221/0.001221, allocations: 67.89 kB / 470.5 MB, free: 13.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3972/0.3984, allocations: 60.82 MB / 0.5189 GB, free: 3.625 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001565/0.4, allocations: 0.4938 MB / 0.5194 GB, free: 3.324 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00192/0.4019, allocations: 1.153 MB / 0.5205 GB, free: 2.57 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.059e-05/0.4019, allocations: 0 / 0.5205 GB, free: 2.57 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.324e-05/0.4019, allocations: 1.031 kB / 0.5205 GB, free: 2.57 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.182e-06/0.4019, allocations: 0 / 0.5205 GB, free: 2.57 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.002128/0.4041, allocations: 0.679 MB / 0.5212 GB, free: 2.324 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.234e-05/0.4041, allocations: 2.953 kB / 0.5212 GB, free: 2.324 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.884e-05/0.4042, allocations: 5.891 kB / 0.5212 GB, free: 2.32 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.878e-05/0.4042, allocations: 7.938 kB / 0.5212 GB, free: 2.312 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.674e-05/0.4042, allocations: 1.094 kB / 0.5212 GB, free: 2.312 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.6e-06/0.4042, allocations: 0 / 0.5212 GB, free: 2.312 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003805/0.408, allocations: 2.449 MB / 0.5236 GB, free: 1.766 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.129e-05/0.408, allocations: 0 / 0.5236 GB, free: 1.766 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.564e-05/0.4081, allocations: 1.375 kB / 0.5236 GB, free: 1.766 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004587/0.4085, allocations: 360.6 kB / 0.5239 GB, free: 1.621 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.4085, allocations: 1 kB / 0.5239 GB, free: 1.621 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.745e-06/0.4085, allocations: 3.938 kB / 0.5239 GB, free: 1.617 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.011e-06/0.4085, allocations: 0 / 0.5239 GB, free: 1.617 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.0004205/0.4089, allocations: 377.8 kB / 0.5243 GB, free: 1.207 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.915e-05/0.409, allocations: 13.12 kB / 0.5243 GB, free: 1.203 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.605e-05/0.409, allocations: 1.312 kB / 0.5243 GB, free: 1.203 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.355e-05/0.4091, allocations: 163.1 kB / 0.5244 GB, free: 1.004 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.644e-05/0.4091, allocations: 5.219 kB / 0.5245 GB, free: 1 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.398e-06/0.4091, allocations: 0 / 0.5245 GB, free: 1 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.789e-05/0.4092, allocations: 32.17 kB / 0.5245 GB, free: 0.9648 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/0.4092, allocations: 1.375 kB / 0.5245 GB, free: 0.9648 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.577e-06/0.4092, allocations: 0 / 0.5245 GB, free: 0.9648 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.578e-06/0.4092, allocations: 0 / 0.5245 GB, free: 0.9648 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.871e-05/0.4092, allocations: 1.25 kB / 0.5245 GB, free: 0.9648 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.859e-05/0.4093, allocations: 158.9 kB / 0.5246 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.924e-05/0.4094, allocations: 21.02 kB / 0.5247 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.361e-05/0.4094, allocations: 6.234 kB / 0.5247 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.065e-06/0.4094, allocations: 0 / 0.5247 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.353e-05/0.4094, allocations: 57.48 kB / 0.5247 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 7.61e-07/0.4094, allocations: 0 / 0.5247 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001672/0.4096, allocations: 79.06 kB / 0.5248 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.108e-05/0.4096, allocations: 81.05 kB / 0.5249 GB, free: 488 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.07e-05/0.4096, allocations: 90.98 kB / 0.525 GB, free: 388 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.033e-06/0.4096, allocations: 25.7 kB / 0.525 GB, free: 356 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.3e-05/0.4097, allocations: 80.14 kB / 0.5251 GB, free: 272 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.121e-05/0.4097, allocations: 5.234 kB / 0.5251 GB, free: 268 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.426e-05/0.4097, allocations: 16.03 kB / 0.5251 GB, free: 248 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.433e-05/0.4098, allocations: 310.8 kB / 0.5254 GB, free: 15.93 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.306e-05/0.4098, allocations: 9.344 kB / 0.5254 GB, free: 15.92 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.412e-06/0.4098, allocations: 1.094 kB / 0.5254 GB, free: 15.92 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.814e-05/0.4099, allocations: 63.62 kB / 0.5254 GB, free: 15.85 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.4099, allocations: 0 / 0.5254 GB, free: 15.85 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.472e-05/0.4099, allocations: 65.53 kB / 0.5255 GB, free: 15.78 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.36e-05/0.41, allocations: 31.98 kB / 0.5255 GB, free: 15.75 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.887e-06/0.41, allocations: 0 / 0.5255 GB, free: 15.75 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.39e-05/0.41, allocations: 1.344 kB / 0.5255 GB, free: 15.75 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.555e-06/0.41, allocations: 8.078 kB / 0.5255 GB, free: 15.74 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.13e-06/0.41, allocations: 0 / 0.5255 GB, free: 15.74 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.827e-05/0.41, allocations: 1.281 kB / 0.5256 GB, free: 15.74 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.592e-06/0.41, allocations: 0 / 0.5256 GB, free: 15.74 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.74e-05/0.4101, allocations: 142.1 kB / 0.5257 GB, free: 15.59 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.11e-05/0.4101, allocations: 5.422 kB / 0.5257 GB, free: 15.58 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.261e-05/0.4101, allocations: 7.078 kB / 0.5257 GB, free: 15.58 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-06/0.4101, allocations: 0 / 0.5257 GB, free: 15.58 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.4101, allocations: 1.25 kB / 0.5257 GB, free: 15.58 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.803e-06/0.4101, allocations: 4 kB / 0.5257 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.987e-05/0.4102, allocations: 150.9 kB / 0.5258 GB, free: 15.38 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.4102, allocations: 1.25 kB / 0.5258 GB, free: 15.38 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.4102, allocations: 0 / 0.5258 GB, free: 15.38 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.152e-06/0.4102, allocations: 0 / 0.5258 GB, free: 15.38 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.416e-06/0.4102, allocations: 5.25 kB / 0.5259 GB, free: 15.38 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.4102, allocations: 0 / 0.5259 GB, free: 15.38 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.4102, allocations: 0.9375 kB / 0.5259 GB, free: 15.38 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.192e-05/0.4103, allocations: 100.6 kB / 0.526 GB, free: 15.26 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.254e-05/0.4104, allocations: 78.73 kB / 0.526 GB, free: 15.17 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.336e-05/0.4104, allocations: 1.281 kB / 0.526 GB, free: 15.17 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.455e-06/0.4104, allocations: 0 / 0.526 GB, free: 15.17 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.138e-05/0.4104, allocations: 5.219 kB / 0.526 GB, free: 15.16 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.945e-06/0.4104, allocations: 0 / 0.526 GB, free: 15.16 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.51e-05/0.4104, allocations: 76.41 kB / 0.5261 GB, free: 15.09 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4104, allocations: 0 / 0.5261 GB, free: 15.09 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003392/0.4108, allocations: 58.73 kB / 0.5262 GB, free: 15.06 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.001479/0.4122, allocations: 0.5446 MB / 0.5267 GB, free: 14.77 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.912e-05/0.4123, allocations: 56.62 kB / 0.5267 GB, free: 14.7 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.4123, allocations: 64 / 0.5267 GB, free: 14.7 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.418e-05/0.4124, allocations: 66.17 kB / 0.5268 GB, free: 14.63 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001511/0.4125, allocations: 12.94 kB / 0.5268 GB, free: 14.62 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001919/0.4127, allocations: 70.02 kB / 0.5269 GB, free: 14.54 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002112/0.4129, allocations: 0.6727 MB / 0.5275 GB, free: 13.84 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.521e-06/0.4129, allocations: 1.438 kB / 0.5275 GB, free: 13.84 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.298e-05/0.413, allocations: 9.281 kB / 0.5276 GB, free: 13.83 MB / 398.1 MB Notification: Performance of SimCode: time 6.91e-07/0.413, allocations: 0 / 0.5276 GB, free: 13.83 MB / 398.1 MB Notification: Performance of Templates: time 0.005915/0.4189, allocations: 2.139 MB / 0.5296 GB, free: 12.84 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