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) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001891/0.001891, allocations: 100.6 kB / 21.22 MB, free: 0.6562 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001888/0.001888, allocations: 185.2 kB / 24.51 MB, free: 4.012 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.492/1.492, allocations: 225.6 MB / 253.3 MB, free: 13.05 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2289/0.2289, allocations: 44.92 MB / 353.5 MB, free: 11.86 MB / 286.1 MB
"
[Timeout remaining time 180]
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=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg")
translateModel(ModelicaTest.Math.TestColorMapToSvg,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.002312/0.002312, allocations: 67.89 kB / 497.7 MB, free: 1.051 MB / 350.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3854/0.3878, allocations: 64.29 MB / 0.5488 GB, free: 13.17 MB / 398.1 MB
Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001724/0.3895, allocations: 0.4964 MB / 0.5493 GB, free: 12.8 MB / 398.1 MB
Notification: Performance of NFInst.instExpressions: time 0.00211/0.3916, allocations: 1.171 MB / 0.5504 GB, free: 11.92 MB / 398.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 2.51e-05/0.3916, allocations: 1.125 kB / 0.5504 GB, free: 11.92 MB / 398.1 MB
Notification: Performance of NFTyping.typeComponents: time 1.893e-05/0.3916, allocations: 0 / 0.5504 GB, free: 11.92 MB / 398.1 MB
Notification: Performance of NFTyping.typeBindings: time 6.121e-06/0.3916, allocations: 0 / 0.5504 GB, free: 11.92 MB / 398.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.002156/0.3938, allocations: 0.7584 MB / 0.5512 GB, free: 11.46 MB / 398.1 MB
Notification: Performance of NFFlatten.flatten: time 4.284e-05/0.3938, allocations: 5.25 kB / 0.5512 GB, free: 11.46 MB / 398.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 3.57e-05/0.3939, allocations: 1.031 kB / 0.5512 GB, free: 11.46 MB / 398.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 1.669e-05/0.3939, allocations: 5.578 kB / 0.5512 GB, free: 11.45 MB / 398.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 1.545e-05/0.3939, allocations: 0 / 0.5512 GB, free: 11.45 MB / 398.1 MB
Notification: Performance of NFPackage.collectConstants: time 5.841e-06/0.3939, allocations: 4 kB / 0.5512 GB, free: 11.45 MB / 398.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.003311/0.3972, allocations: 2.507 MB / 0.5536 GB, free: 10.28 MB / 398.1 MB
Notification: Performance of NFScalarize.scalarize: time 7.764e-06/0.3972, allocations: 1.156 kB / 0.5536 GB, free: 10.28 MB / 398.1 MB
Notification: Performance of NFVerifyModel.verify: time 1.791e-05/0.3972, allocations: 5.125 kB / 0.5536 GB, free: 10.28 MB / 398.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0004507/0.3977, allocations: 360.6 kB / 0.554 GB, free: 10.13 MB / 398.1 MB
Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.3977, allocations: 0 / 0.554 GB, free: 10.13 MB / 398.1 MB
Notification: Performance of FrontEnd: time 1.743e-06/0.3977, allocations: 1.375 kB / 0.554 GB, free: 10.13 MB / 398.1 MB
Notification: Performance of Transformations before backend: time 5.38e-06/0.3977, allocations: 0 / 0.554 GB, free: 10.13 MB / 398.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.000465/0.3982, allocations: 304.8 kB / 0.5543 GB, free: 9.812 MB / 398.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.072e-05/0.3982, allocations: 10.08 kB / 0.5543 GB, free: 9.812 MB / 398.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 3.138e-05/0.3982, allocations: 1.25 kB / 0.5543 GB, free: 9.812 MB / 398.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001164/0.3984, allocations: 102.7 kB / 0.5544 GB, free: 9.688 MB / 398.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.245e-05/0.3984, allocations: 11.92 kB / 0.5544 GB, free: 9.676 MB / 398.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 1.428e-05/0.3984, allocations: 1.5 kB / 0.5544 GB, free: 9.676 MB / 398.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001092/0.3985, allocations: 32.08 kB / 0.5544 GB, free: 9.641 MB / 398.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 9.748e-06/0.3985, allocations: 0 / 0.5544 GB, free: 9.641 MB / 398.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.926e-06/0.3985, allocations: 0 / 0.5544 GB, free: 9.641 MB / 398.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.378e-06/0.3985, allocations: 0 / 0.5544 GB, free: 9.641 MB / 398.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 2.621e-05/0.3985, allocations: 9.984 kB / 0.5544 GB, free: 9.633 MB / 398.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001424/0.3987, allocations: 117.8 kB / 0.5545 GB, free: 9.477 MB / 398.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 5.671e-05/0.3987, allocations: 24.52 kB / 0.5546 GB, free: 9.445 MB / 398.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 1.511e-05/0.3988, allocations: 5.797 kB / 0.5546 GB, free: 9.438 MB / 398.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 4.749e-06/0.3988, allocations: 4.656 kB / 0.5546 GB, free: 9.434 MB / 398.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.879e-05/0.3988, allocations: 57.92 kB / 0.5546 GB, free: 9.363 MB / 398.1 MB
Notification: Performance of pre-optimization done (n=1): time 8.72e-07/0.3988, allocations: 0 / 0.5546 GB, free: 9.363 MB / 398.1 MB
Notification: Performance of matching and sorting (n=1): time 0.000185/0.399, allocations: 70.23 kB / 0.5547 GB, free: 9.289 MB / 398.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 6.908e-05/0.3991, allocations: 78.08 kB / 0.5548 GB, free: 9.195 MB / 398.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.14e-05/0.3991, allocations: 94.95 kB / 0.5549 GB, free: 9.094 MB / 398.1 MB
Notification: Performance of collectPreVariables (initialization): time 1.394e-05/0.3991, allocations: 25.7 kB / 0.5549 GB, free: 9.062 MB / 398.1 MB
Notification: Performance of collectInitialEqns (initialization): time 4.418e-05/0.3992, allocations: 80.14 kB / 0.555 GB, free: 8.98 MB / 398.1 MB
Notification: Performance of collectInitialBindings (initialization): time 2.263e-05/0.3992, allocations: 1.094 kB / 0.555 GB, free: 8.98 MB / 398.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 2.781e-05/0.3992, allocations: 12 kB / 0.555 GB, free: 8.965 MB / 398.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001516/0.3994, allocations: 319.9 kB / 0.5553 GB, free: 8.645 MB / 398.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 1.028e-05/0.3994, allocations: 0 / 0.5553 GB, free: 8.645 MB / 398.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 6.973e-06/0.3994, allocations: 4.156 kB / 0.5553 GB, free: 8.641 MB / 398.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 5.489e-05/0.3995, allocations: 64.33 kB / 0.5554 GB, free: 8.562 MB / 398.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.3995, allocations: 0 / 0.5554 GB, free: 8.562 MB / 398.1 MB
Notification: Performance of matching and sorting (n=1) (initialization): time 8.222e-05/0.3995, allocations: 63.28 kB / 0.5554 GB, free: 8.488 MB / 398.1 MB
Notification: Performance of prepare postOptimizeDAE: time 3.791e-05/0.3996, allocations: 37.69 kB / 0.5554 GB, free: 8.445 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.3996, allocations: 0 / 0.5554 GB, free: 8.445 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.864e-05/0.3996, allocations: 0 / 0.5554 GB, free: 8.445 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.156e-06/0.3996, allocations: 4 kB / 0.5555 GB, free: 8.441 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.489e-06/0.3996, allocations: 0 / 0.5555 GB, free: 8.441 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.381e-05/0.3996, allocations: 0 / 0.5555 GB, free: 8.441 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.052e-06/0.3996, allocations: 0 / 0.5555 GB, free: 8.441 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 0.0001005/0.3997, allocations: 151.5 kB / 0.5556 GB, free: 8.277 MB / 398.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 9.458e-06/0.3997, allocations: 3.953 kB / 0.5556 GB, free: 8.273 MB / 398.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.482e-05/0.3998, allocations: 6.953 kB / 0.5556 GB, free: 8.262 MB / 398.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.002e-06/0.3998, allocations: 0 / 0.5556 GB, free: 8.262 MB / 398.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 6.713e-06/0.3998, allocations: 7.984 kB / 0.5556 GB, free: 8.254 MB / 398.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.094e-06/0.3998, allocations: 0 / 0.5556 GB, free: 8.254 MB / 398.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001085/0.3999, allocations: 116.7 kB / 0.5557 GB, free: 8.098 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.82e-07/0.3999, allocations: 0 / 0.5557 GB, free: 8.098 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.51e-07/0.3999, allocations: 0 / 0.5557 GB, free: 8.098 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.3999, allocations: 8 kB / 0.5557 GB, free: 8.09 MB / 398.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.384e-06/0.3999, allocations: 0 / 0.5557 GB, free: 8.09 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.3999, allocations: 3.938 kB / 0.5557 GB, free: 8.086 MB / 398.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.3999, allocations: 0 / 0.5557 GB, free: 8.086 MB / 398.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001483/0.4, allocations: 106.6 kB / 0.5558 GB, free: 7.957 MB / 398.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 4.238e-06/0.4, allocations: 0 / 0.5558 GB, free: 7.957 MB / 398.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.188e-05/0.4001, allocations: 0 / 0.5558 GB, free: 7.957 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.756e-06/0.4001, allocations: 0 / 0.5558 GB, free: 7.957 MB / 398.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 1.899e-05/0.4001, allocations: 8.016 kB / 0.5558 GB, free: 7.949 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.099e-06/0.4001, allocations: 8 kB / 0.5559 GB, free: 7.941 MB / 398.1 MB
Notification: Performance of sorting global known variables: time 3.799e-05/0.4001, allocations: 75.28 kB / 0.5559 GB, free: 7.867 MB / 398.1 MB
Notification: Performance of sort global known variables: time 7e-08/0.4001, allocations: 0 / 0.5559 GB, free: 7.867 MB / 398.1 MB
Notification: Performance of remove unused functions: time 0.000363/0.4005, allocations: 51.8 kB / 0.556 GB, free: 7.816 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.001582/0.4021, allocations: 0.5328 MB / 0.5565 GB, free: 7.34 MB / 398.1 MB
Notification: Performance of simCode: created initialization part: time 0.0001139/0.4022, allocations: 67.33 kB / 0.5566 GB, free: 7.262 MB / 398.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.4022, allocations: 0 / 0.5566 GB, free: 7.262 MB / 398.1 MB
Notification: Performance of simCode: created simulation system equations: time 4.01e-05/0.4022, allocations: 59.41 kB / 0.5566 GB, free: 7.191 MB / 398.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001241/0.4024, allocations: 3.938 kB / 0.5566 GB, free: 7.188 MB / 398.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002118/0.4026, allocations: 73.2 kB / 0.5567 GB, free: 7.09 MB / 398.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003141/0.4029, allocations: 0.6766 MB / 0.5574 GB, free: 6.387 MB / 398.1 MB
Notification: Performance of simCode: alias equations: time 5.4e-06/0.4029, allocations: 0 / 0.5574 GB, free: 6.387 MB / 398.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 1.524e-05/0.4029, allocations: 11.44 kB / 0.5574 GB, free: 6.375 MB / 398.1 MB
Notification: Performance of SimCode: time 3.11e-07/0.4029, allocations: 3.938 kB / 0.5574 GB, free: 6.371 MB / 398.1 MB
Notification: Performance of Templates: time 0.006173/0.4091, allocations: 2.145 MB / 0.5595 GB, free: 4.223 MB / 398.1 MB
"
[Timeout remaining time 660]
make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.makefile [Timeout 660]
(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) [Timeout 480]
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) [Timeout 660]
""
[Timeout remaining time 660]
Reference file matches
[Calling sys.exit(0), Time elapsed: 5.278845011256635]