Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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.001316/0.001316, allocations: 106.9 kB / 19.8 MB, free: 2.5 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.001932/0.001932, allocations: 219.7 kB / 23 MB, free: 5.574 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.534/1.534, allocations: 230.2 MB / 256.2 MB, free: 8.547 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.239/0.239, allocations: 46.91 MB / 359.4 MB, free: 4.875 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_ModelicaTest.Math.TestColorMapToSvg") translateModel(ModelicaTest.Math.TestColorMapToSvg,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002261/0.002261, allocations: 83.86 kB / 0.4946 GB, free: 8.48 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4254/0.4277, allocations: 65.98 MB / 0.5591 GB, free: 5.027 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001866/0.4295, allocations: 0.4893 MB / 0.5595 GB, free: 4.535 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00245/0.432, allocations: 1.169 MB / 0.5607 GB, free: 3.359 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.923e-05/0.432, allocations: 3.938 kB / 0.5607 GB, free: 3.355 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.421e-05/0.432, allocations: 0 / 0.5607 GB, free: 3.355 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 8.857e-06/0.432, allocations: 0 / 0.5607 GB, free: 3.355 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 trunk/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.00236/0.4344, allocations: 0.6836 MB / 0.5614 GB, free: 2.68 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.791e-05/0.4344, allocations: 8 kB / 0.5614 GB, free: 2.672 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.646e-05/0.4345, allocations: 0 / 0.5614 GB, free: 2.672 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.344e-05/0.4345, allocations: 7.984 kB / 0.5614 GB, free: 2.664 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.152e-05/0.4345, allocations: 3.984 kB / 0.5614 GB, free: 2.66 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.103e-06/0.4345, allocations: 3.938 kB / 0.5614 GB, free: 2.656 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003282/0.4378, allocations: 2.467 MB / 0.5638 GB, free: 196 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.03e-05/0.4378, allocations: 0 / 0.5638 GB, free: 196 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.277e-05/0.4378, allocations: 0 / 0.5638 GB, free: 196 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005227/0.4384, allocations: 359.4 kB / 0.5641 GB, free: 15.84 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.4384, allocations: 0 / 0.5641 GB, free: 15.84 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.4384, allocations: 4 kB / 0.5641 GB, free: 15.84 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.223e-06/0.4384, allocations: 0 / 0.5641 GB, free: 15.84 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.0005913/0.439, allocations: 383.4 kB / 0.5645 GB, free: 15.41 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.173e-05/0.439, allocations: 8.031 kB / 0.5645 GB, free: 15.4 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.261e-05/0.4391, allocations: 0 / 0.5645 GB, free: 15.4 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001576/0.4392, allocations: 163.1 kB / 0.5647 GB, free: 15.2 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.761e-05/0.4393, allocations: 4 kB / 0.5647 GB, free: 15.2 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.149e-05/0.4393, allocations: 0 / 0.5647 GB, free: 15.2 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001516/0.4394, allocations: 33.62 kB / 0.5647 GB, free: 15.16 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.1e-05/0.4394, allocations: 0 / 0.5647 GB, free: 15.16 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.23e-05/0.4394, allocations: 4 kB / 0.5647 GB, free: 15.16 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.4394, allocations: 0 / 0.5647 GB, free: 15.16 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.578e-05/0.4395, allocations: 3.938 kB / 0.5647 GB, free: 15.15 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002191/0.4397, allocations: 153.6 kB / 0.5648 GB, free: 14.95 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.152e-05/0.4398, allocations: 22.61 kB / 0.5649 GB, free: 14.92 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.064e-05/0.4398, allocations: 4.859 kB / 0.5649 GB, free: 14.91 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.553e-05/0.4398, allocations: 3.938 kB / 0.5649 GB, free: 14.91 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.687e-05/0.4399, allocations: 60.31 kB / 0.5649 GB, free: 14.84 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 1.212e-06/0.4399, allocations: 4 kB / 0.5649 GB, free: 14.83 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002148/0.4401, allocations: 63.34 kB / 0.565 GB, free: 14.76 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.22e-05/0.4402, allocations: 85.23 kB / 0.5651 GB, free: 14.66 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.065e-05/0.4402, allocations: 93.81 kB / 0.5652 GB, free: 14.55 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.653e-05/0.4402, allocations: 25.7 kB / 0.5652 GB, free: 14.52 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.734e-05/0.4403, allocations: 80.14 kB / 0.5653 GB, free: 14.44 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.184e-05/0.4403, allocations: 0 / 0.5653 GB, free: 14.44 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.371e-05/0.4403, allocations: 17.7 kB / 0.5653 GB, free: 14.42 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.00014/0.4405, allocations: 314.8 kB / 0.5656 GB, free: 14.1 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.268e-06/0.4405, allocations: 0 / 0.5656 GB, free: 14.1 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.903e-06/0.4405, allocations: 4 kB / 0.5656 GB, free: 14.1 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.83e-05/0.4406, allocations: 60.27 kB / 0.5657 GB, free: 14.02 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.4406, allocations: 0 / 0.5657 GB, free: 14.02 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.144e-05/0.4406, allocations: 71.27 kB / 0.5657 GB, free: 13.94 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.626e-05/0.4407, allocations: 29.7 kB / 0.5657 GB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.05e-06/0.4407, allocations: 0 / 0.5657 GB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.725e-05/0.4407, allocations: 3.984 kB / 0.5658 GB, free: 13.9 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.69e-06/0.4407, allocations: 4 kB / 0.5658 GB, free: 13.9 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.24e-06/0.4407, allocations: 3.938 kB / 0.5658 GB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.535e-05/0.4407, allocations: 4.094 kB / 0.5658 GB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.849e-06/0.4407, allocations: 4 kB / 0.5658 GB, free: 13.89 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.0001326/0.4409, allocations: 135.5 kB / 0.5659 GB, free: 13.74 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.361e-05/0.4409, allocations: 7.922 kB / 0.5659 GB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.411e-05/0.4409, allocations: 3.125 kB / 0.5659 GB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.22e-07/0.4409, allocations: 0 / 0.5659 GB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.938e-06/0.4409, allocations: 0 / 0.5659 GB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-06/0.4409, allocations: 0 / 0.5659 GB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001217/0.441, allocations: 145.7 kB / 0.566 GB, free: 13.54 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.01e-07/0.441, allocations: 4 kB / 0.566 GB, free: 13.53 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.757e-06/0.441, allocations: 3.938 kB / 0.5661 GB, free: 13.53 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.441, allocations: 3.984 kB / 0.5661 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.396e-06/0.441, allocations: 3.938 kB / 0.5661 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.72e-07/0.441, allocations: 0 / 0.5661 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.441, allocations: 0 / 0.5661 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001136/0.4412, allocations: 90.78 kB / 0.5661 GB, free: 13.41 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.977e-05/0.4412, allocations: 85.03 kB / 0.5662 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.273e-05/0.4412, allocations: 4.031 kB / 0.5662 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.236e-05/0.4412, allocations: 4 kB / 0.5662 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.259e-05/0.4412, allocations: 0 / 0.5662 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.033e-06/0.4413, allocations: 8 kB / 0.5662 GB, free: 13.29 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.68e-05/0.4413, allocations: 75.28 kB / 0.5663 GB, free: 13.21 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4413, allocations: 0 / 0.5663 GB, free: 13.21 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003492/0.4416, allocations: 51.8 kB / 0.5664 GB, free: 13.16 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.001627/0.4433, allocations: 0.5342 MB / 0.5669 GB, free: 12.67 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001327/0.4434, allocations: 59.34 kB / 0.5669 GB, free: 12.6 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.568e-06/0.4434, allocations: 4 kB / 0.5669 GB, free: 12.6 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.186e-05/0.4435, allocations: 55.41 kB / 0.567 GB, free: 12.53 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001312/0.4436, allocations: 8.125 kB / 0.567 GB, free: 12.52 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002472/0.4438, allocations: 88.92 kB / 0.5671 GB, free: 12.41 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003521/0.4442, allocations: 0.669 MB / 0.5677 GB, free: 11.71 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.655e-06/0.4442, allocations: 0 / 0.5677 GB, free: 11.71 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.655e-05/0.4442, allocations: 11.38 kB / 0.5678 GB, free: 11.7 MB / 414.1 MB Notification: Performance of SimCode: time 4.61e-07/0.4442, allocations: 0 / 0.5678 GB, free: 11.7 MB / 414.1 MB Notification: Performance of Templates: time 0.006417/0.4506, allocations: 2.141 MB / 0.5698 GB, free: 9.555 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.sim & ./ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_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_trunk_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.424977934919298]