Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestColorMapToSvg.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001375/0.001375, allocations: 106.5 kB / 21.23 MB, free: 0.6562 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001639/0.001639, allocations: 212 kB / 24.54 MB, free: 4.016 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.518/1.518, allocations: 230.3 MB / 258 MB, free: 8.223 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2396/0.2396, allocations: 46.94 MB / 361.4 MB, free: 4.418 MB / 286.1 MB
"
[Timeout remaining time 180]
Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo)
Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo)
Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo)
Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo)
Running command: translateModel(ModelicaTest.Math.TestColorMapToSvg,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestColorMapToSvg")
translateModel(ModelicaTest.Math.TestColorMapToSvg,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestColorMapToSvg") [Timeout 660]
"Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions.
Notification: Performance of FrontEnd - loaded program: time 0.002653/0.002653, allocations: 83.86 kB / 0.4971 GB, free: 7.543 MB / 366.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.4063/0.4089, allocations: 66.03 MB / 0.5616 GB, free: 4.535 MB / 398.1 MB
Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001941/0.4109, allocations: 0.4965 MB / 0.5621 GB, free: 4.043 MB / 398.1 MB
Notification: Performance of NFInst.instExpressions: time 0.002343/0.4132, allocations: 1.173 MB / 0.5633 GB, free: 2.863 MB / 398.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 2.48e-05/0.4132, allocations: 0 / 0.5633 GB, free: 2.863 MB / 398.1 MB
Notification: Performance of NFTyping.typeComponents: time 1.497e-05/0.4133, allocations: 3.938 kB / 0.5633 GB, free: 2.859 MB / 398.1 MB
Notification: Performance of NFTyping.typeBindings: time 9.167e-06/0.4133, allocations: 3.938 kB / 0.5633 GB, free: 2.855 MB / 398.1 MB
[/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.1.0-beta.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.002374/0.4156, allocations: 0.7465 MB / 0.564 GB, free: 2.113 MB / 398.1 MB
Notification: Performance of NFFlatten.flatten: time 7.104e-05/0.4157, allocations: 7.984 kB / 0.564 GB, free: 2.105 MB / 398.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 4.561e-05/0.4158, allocations: 3.984 kB / 0.564 GB, free: 2.102 MB / 398.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 1.677e-05/0.4158, allocations: 0 / 0.564 GB, free: 2.102 MB / 398.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 1.928e-05/0.4158, allocations: 4 kB / 0.564 GB, free: 2.098 MB / 398.1 MB
Notification: Performance of NFPackage.collectConstants: time 6.993e-06/0.4158, allocations: 0 / 0.564 GB, free: 2.098 MB / 398.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.003467/0.4193, allocations: 2.508 MB / 0.5665 GB, free: 15.59 MB / 414.1 MB
Notification: Performance of NFScalarize.scalarize: time 8.686e-06/0.4193, allocations: 0 / 0.5665 GB, free: 15.59 MB / 414.1 MB
Notification: Performance of NFVerifyModel.verify: time 2.791e-05/0.4193, allocations: 0 / 0.5665 GB, free: 15.59 MB / 414.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0005495/0.4199, allocations: 367.3 kB / 0.5668 GB, free: 15.23 MB / 414.1 MB
Notification: Performance of FrontEnd - DAE generated: time 7.143e-06/0.4199, allocations: 0 / 0.5668 GB, free: 15.23 MB / 414.1 MB
Notification: Performance of FrontEnd: time 2.154e-06/0.4199, allocations: 0 / 0.5668 GB, free: 15.23 MB / 414.1 MB
Notification: Performance of Transformations before backend: time 9.287e-06/0.4199, allocations: 0 / 0.5668 GB, free: 15.23 MB / 414.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.0005311/0.4204, allocations: 303.5 kB / 0.5671 GB, free: 14.9 MB / 414.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.573e-05/0.4204, allocations: 12.03 kB / 0.5671 GB, free: 14.89 MB / 414.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 3.955e-05/0.4205, allocations: 0 / 0.5671 GB, free: 14.89 MB / 414.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 9.045e-05/0.4206, allocations: 101.2 kB / 0.5672 GB, free: 14.76 MB / 414.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.323e-05/0.4206, allocations: 0 / 0.5672 GB, free: 14.76 MB / 414.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 9.468e-06/0.4206, allocations: 0 / 0.5672 GB, free: 14.76 MB / 414.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001079/0.4207, allocations: 37.62 kB / 0.5673 GB, free: 14.72 MB / 414.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 8.707e-06/0.4207, allocations: 0 / 0.5673 GB, free: 14.72 MB / 414.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.447e-06/0.4207, allocations: 3.938 kB / 0.5673 GB, free: 14.71 MB / 414.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.979e-06/0.4207, allocations: 4 kB / 0.5673 GB, free: 14.71 MB / 414.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 2.292e-05/0.4208, allocations: 7.938 kB / 0.5673 GB, free: 14.7 MB / 414.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001624/0.4209, allocations: 116.8 kB / 0.5674 GB, free: 14.55 MB / 414.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 4.803e-05/0.421, allocations: 14.58 kB / 0.5674 GB, free: 14.52 MB / 414.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 1.896e-05/0.421, allocations: 12.94 kB / 0.5674 GB, free: 14.51 MB / 414.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 1.165e-05/0.421, allocations: 3.938 kB / 0.5674 GB, free: 14.5 MB / 414.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.526e-05/0.4211, allocations: 56.27 kB / 0.5675 GB, free: 14.43 MB / 414.1 MB
Notification: Performance of pre-optimization done (n=1): time 8.366e-06/0.4211, allocations: 7.984 kB / 0.5675 GB, free: 14.43 MB / 414.1 MB
Notification: Performance of matching and sorting (n=1): time 0.0002064/0.4213, allocations: 67.34 kB / 0.5675 GB, free: 14.35 MB / 414.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 6.803e-05/0.4213, allocations: 77.11 kB / 0.5676 GB, free: 14.25 MB / 414.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.028e-05/0.4214, allocations: 97.8 kB / 0.5677 GB, free: 14.15 MB / 414.1 MB
Notification: Performance of collectPreVariables (initialization): time 1.648e-05/0.4214, allocations: 25.7 kB / 0.5677 GB, free: 14.12 MB / 414.1 MB
Notification: Performance of collectInitialEqns (initialization): time 4.2e-05/0.4215, allocations: 88.08 kB / 0.5678 GB, free: 14.03 MB / 414.1 MB
Notification: Performance of collectInitialBindings (initialization): time 2.302e-05/0.4215, allocations: 0 / 0.5678 GB, free: 14.03 MB / 414.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 3.075e-05/0.4215, allocations: 9.719 kB / 0.5678 GB, free: 14.01 MB / 414.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001449/0.4217, allocations: 315 kB / 0.5681 GB, free: 13.7 MB / 414.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 1.215e-05/0.4217, allocations: 4 kB / 0.5681 GB, free: 13.69 MB / 414.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 5.43e-06/0.4217, allocations: 0 / 0.5681 GB, free: 13.69 MB / 414.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 6.078e-05/0.4217, allocations: 68.2 kB / 0.5682 GB, free: 13.61 MB / 414.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.4217, allocations: 0 / 0.5682 GB, free: 13.61 MB / 414.1 MB
Notification: Performance of matching and sorting (n=1) (initialization): time 8.039e-05/0.4218, allocations: 63.33 kB / 0.5682 GB, free: 13.54 MB / 414.1 MB
Notification: Performance of prepare postOptimizeDAE: time 4.3e-05/0.4219, allocations: 33.7 kB / 0.5683 GB, free: 13.5 MB / 414.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.4219, allocations: 0 / 0.5683 GB, free: 13.5 MB / 414.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.528e-05/0.4219, allocations: 4.094 kB / 0.5683 GB, free: 13.49 MB / 414.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.31e-07/0.4219, allocations: 0 / 0.5683 GB, free: 13.49 MB / 414.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.009e-06/0.4219, allocations: 0 / 0.5683 GB, free: 13.49 MB / 414.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.732e-05/0.4219, allocations: 0 / 0.5683 GB, free: 13.49 MB / 414.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.248e-06/0.4219, allocations: 4 kB / 0.5683 GB, free: 13.49 MB / 414.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.0001276/0.422, allocations: 140.4 kB / 0.5684 GB, free: 13.34 MB / 414.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 1.121e-05/0.4221, allocations: 3.938 kB / 0.5684 GB, free: 13.33 MB / 414.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.512e-05/0.4221, allocations: 7 kB / 0.5684 GB, free: 13.32 MB / 414.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-06/0.4221, allocations: 0 / 0.5684 GB, free: 13.32 MB / 414.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.4221, allocations: 4 kB / 0.5684 GB, free: 13.32 MB / 414.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.4221, allocations: 0 / 0.5684 GB, free: 13.32 MB / 414.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000119/0.4222, allocations: 116.8 kB / 0.5685 GB, free: 13.16 MB / 414.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.429e-06/0.4222, allocations: 3.984 kB / 0.5686 GB, free: 13.16 MB / 414.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.906e-06/0.4222, allocations: 7.938 kB / 0.5686 GB, free: 13.15 MB / 414.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 1.092e-06/0.4222, allocations: 3.938 kB / 0.5686 GB, free: 13.15 MB / 414.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.007e-06/0.4222, allocations: 0 / 0.5686 GB, free: 13.15 MB / 414.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.909e-06/0.4222, allocations: 7.938 kB / 0.5686 GB, free: 13.14 MB / 414.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.4222, allocations: 0 / 0.5686 GB, free: 13.14 MB / 414.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001155/0.4223, allocations: 94.83 kB / 0.5687 GB, free: 13.02 MB / 414.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 5.851e-06/0.4223, allocations: 3.938 kB / 0.5687 GB, free: 13.02 MB / 414.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.341e-05/0.4224, allocations: 0 / 0.5687 GB, free: 13.02 MB / 414.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.257e-05/0.4224, allocations: 4 kB / 0.5687 GB, free: 13.02 MB / 414.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 1.241e-05/0.4224, allocations: 0 / 0.5687 GB, free: 13.02 MB / 414.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.224e-06/0.4224, allocations: 0 / 0.5687 GB, free: 13.02 MB / 414.1 MB
Notification: Performance of sorting global known variables: time 4.372e-05/0.4224, allocations: 75.28 kB / 0.5687 GB, free: 12.94 MB / 414.1 MB
Notification: Performance of sort global known variables: time 6.1e-08/0.4224, allocations: 0 / 0.5687 GB, free: 12.94 MB / 414.1 MB
Notification: Performance of remove unused functions: time 0.0003337/0.4228, allocations: 55.83 kB / 0.5688 GB, free: 12.89 MB / 414.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.001613/0.4244, allocations: 0.5456 MB / 0.5693 GB, free: 12.38 MB / 414.1 MB
Notification: Performance of simCode: created initialization part: time 0.0001186/0.4245, allocations: 63.34 kB / 0.5694 GB, free: 12.31 MB / 414.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.584e-06/0.4245, allocations: 0 / 0.5694 GB, free: 12.31 MB / 414.1 MB
Notification: Performance of simCode: created simulation system equations: time 4.574e-05/0.4245, allocations: 55.41 kB / 0.5694 GB, free: 12.24 MB / 414.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001344/0.4247, allocations: 0 / 0.5694 GB, free: 12.24 MB / 414.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002076/0.4249, allocations: 84.98 kB / 0.5695 GB, free: 12.13 MB / 414.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003056/0.4252, allocations: 0.669 MB / 0.5702 GB, free: 11.44 MB / 414.1 MB
Notification: Performance of simCode: alias equations: time 6.302e-06/0.4252, allocations: 3.938 kB / 0.5702 GB, free: 11.43 MB / 414.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 1.65e-05/0.4252, allocations: 11.44 kB / 0.5702 GB, free: 11.42 MB / 414.1 MB
Notification: Performance of SimCode: time 3.1e-07/0.4252, allocations: 0 / 0.5702 GB, free: 11.42 MB / 414.1 MB
Notification: Performance of Templates: time 0.006275/0.4315, allocations: 2.141 MB / 0.5723 GB, free: 9.273 MB / 414.1 MB
"
[Timeout remaining time 660]
make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestColorMapToSvg.makefile [Timeout 660]
(rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestColorMapToSvg.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestColorMapToSvg.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestColorMapToSvg.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestColorMapToSvg.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestColorMapToSvg  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestColorMapToSvg.pipe 2>&1) [Timeout 480]
diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestColorMapToSvg_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/TestColorMapToSvg/TestColorMapToSvg.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_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.430585278198123]