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.001227/0.001227, allocations: 108.1 kB / 18.45 MB, free: 4.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.001267/0.001267, allocations: 180.2 kB / 19.38 MB, free: 3.684 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.268/1.268, allocations: 222.9 MB / 243.1 MB, free: 15.05 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.1923/0.1923, allocations: 44.19 MB / 337.4 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001449/0.001449, allocations: 59.91 kB / 471.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3066/0.308, allocations: 60.83 MB / 0.5196 GB, free: 3.59 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001489/0.3096, allocations: 0.489 MB / 0.52 GB, free: 3.293 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001518/0.3111, allocations: 1.149 MB / 0.5212 GB, free: 2.539 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.063e-05/0.3112, allocations: 1 kB / 0.5212 GB, free: 2.539 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.172e-05/0.3112, allocations: 0 / 0.5212 GB, free: 2.539 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.861e-06/0.3112, allocations: 0 / 0.5212 GB, free: 2.539 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.001886/0.3131, allocations: 0.6775 MB / 0.5218 GB, free: 2.293 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.221e-05/0.3131, allocations: 1.344 kB / 0.5218 GB, free: 2.293 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.619e-05/0.3132, allocations: 2.188 kB / 0.5218 GB, free: 2.293 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.485e-05/0.3132, allocations: 3.938 kB / 0.5218 GB, free: 2.289 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.428e-05/0.3132, allocations: 1.156 kB / 0.5218 GB, free: 2.289 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.059e-06/0.3132, allocations: 4 kB / 0.5218 GB, free: 2.285 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003269/0.3165, allocations: 2.452 MB / 0.5242 GB, free: 1.742 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.698e-06/0.3165, allocations: 4 kB / 0.5242 GB, free: 1.738 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.216e-05/0.3166, allocations: 1.375 kB / 0.5242 GB, free: 1.738 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005504/0.3171, allocations: 349.1 kB / 0.5246 GB, free: 1.605 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.3171, allocations: 0 / 0.5246 GB, free: 1.605 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3171, allocations: 3.938 kB / 0.5246 GB, free: 1.602 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.561e-06/0.3171, allocations: 0.9062 kB / 0.5246 GB, free: 1.602 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.0005461/0.3177, allocations: 382 kB / 0.5249 GB, free: 1.188 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.352e-05/0.3177, allocations: 13.88 kB / 0.5249 GB, free: 1.184 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.403e-05/0.3178, allocations: 0 / 0.5249 GB, free: 1.184 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.481e-05/0.3178, allocations: 159.1 kB / 0.5251 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.444e-05/0.3179, allocations: 9.281 kB / 0.5251 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.394e-05/0.3179, allocations: 0.9062 kB / 0.5251 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.785e-05/0.318, allocations: 44.03 kB / 0.5251 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.457e-06/0.318, allocations: 0 / 0.5251 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.358e-06/0.318, allocations: 0 / 0.5251 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.318, allocations: 1.312 kB / 0.5251 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.96e-05/0.3181, allocations: 1.531 kB / 0.5251 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001034/0.3182, allocations: 143.1 kB / 0.5253 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.819e-05/0.3182, allocations: 23.8 kB / 0.5253 GB, free: 0.7148 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.263e-05/0.3182, allocations: 6.078 kB / 0.5253 GB, free: 0.707 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.628e-06/0.3182, allocations: 7.969 kB / 0.5253 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.114e-05/0.3183, allocations: 65.45 kB / 0.5254 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 9.01e-07/0.3183, allocations: 0 / 0.5254 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001552/0.3185, allocations: 59.09 kB / 0.5254 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.038e-05/0.3185, allocations: 82.39 kB / 0.5255 GB, free: 472 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.1e-05/0.3185, allocations: 93.98 kB / 0.5256 GB, free: 368 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.813e-06/0.3185, allocations: 25.7 kB / 0.5256 GB, free: 336 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.179e-05/0.3186, allocations: 85.38 kB / 0.5257 GB, free: 248 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.826e-05/0.3186, allocations: 0 / 0.5257 GB, free: 248 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.497e-05/0.3186, allocations: 16.19 kB / 0.5257 GB, free: 228 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.466e-05/0.3187, allocations: 312.1 kB / 0.526 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.688e-06/0.3187, allocations: 0 / 0.526 GB, free: 15.91 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.823e-06/0.3187, allocations: 1.25 kB / 0.526 GB, free: 15.91 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.013e-05/0.3188, allocations: 68.2 kB / 0.5261 GB, free: 15.83 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.3188, allocations: 0 / 0.5261 GB, free: 15.83 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.564e-05/0.3189, allocations: 69.33 kB / 0.5262 GB, free: 15.76 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.977e-05/0.3189, allocations: 31.33 kB / 0.5262 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.3189, allocations: 1.25 kB / 0.5262 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.572e-05/0.319, allocations: 0 / 0.5262 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.82e-07/0.319, allocations: 0 / 0.5262 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.139e-06/0.319, allocations: 1.281 kB / 0.5262 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.601e-05/0.319, allocations: 0 / 0.5262 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.913e-06/0.319, allocations: 5.344 kB / 0.5262 GB, free: 15.72 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 7.682e-05/0.3191, allocations: 141.7 kB / 0.5263 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.498e-06/0.3191, allocations: 1.344 kB / 0.5263 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.011e-05/0.3191, allocations: 7.078 kB / 0.5263 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/0.3191, allocations: 0 / 0.5263 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.3191, allocations: 1.375 kB / 0.5263 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.853e-06/0.3191, allocations: 0 / 0.5263 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.806e-05/0.3192, allocations: 154.9 kB / 0.5265 GB, free: 15.37 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.21e-07/0.3193, allocations: 3.938 kB / 0.5265 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.785e-06/0.3193, allocations: 9.328 kB / 0.5265 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.3193, allocations: 0 / 0.5265 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.688e-06/0.3193, allocations: 9.281 kB / 0.5265 GB, free: 15.35 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.3193, allocations: 0 / 0.5265 GB, free: 15.35 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.3193, allocations: 0 / 0.5265 GB, free: 15.35 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.878e-05/0.3194, allocations: 90.5 kB / 0.5266 GB, free: 15.25 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.708e-05/0.3194, allocations: 81.09 kB / 0.5267 GB, free: 15.15 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.528e-05/0.3195, allocations: 1.188 kB / 0.5267 GB, free: 15.15 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.201e-05/0.3195, allocations: 4.031 kB / 0.5267 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.338e-05/0.3195, allocations: 4.969 kB / 0.5267 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.098e-06/0.3195, allocations: 1.625 kB / 0.5267 GB, free: 15.14 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.556e-05/0.3195, allocations: 75.28 kB / 0.5268 GB, free: 15.07 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3195, allocations: 0 / 0.5268 GB, free: 15.07 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00047/0.32, allocations: 47.3 kB / 0.5268 GB, free: 15.05 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.001348/0.3214, allocations: 0.54 MB / 0.5273 GB, free: 14.76 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.716e-05/0.3215, allocations: 64.84 kB / 0.5274 GB, free: 14.69 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.618e-06/0.3215, allocations: 0 / 0.5274 GB, free: 14.69 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.923e-05/0.3215, allocations: 55.25 kB / 0.5274 GB, free: 14.62 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001211/0.3217, allocations: 5 kB / 0.5274 GB, free: 14.62 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001784/0.3218, allocations: 113.3 kB / 0.5276 GB, free: 14.48 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002147/0.3221, allocations: 0.6744 MB / 0.5282 GB, free: 13.79 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.297e-05/0.3221, allocations: 8.844 kB / 0.5282 GB, free: 13.78 MB / 398.1 MB Notification: Performance of SimCode: time 2e-07/0.3221, allocations: 0 / 0.5282 GB, free: 13.78 MB / 398.1 MB Notification: Performance of Templates: time 0.00446/0.3266, allocations: 2.593 MB / 0.5308 GB, free: 12.71 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/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