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.001732/0.001732, allocations: 108.4 kB / 21.17 MB, free: 0.7852 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.00159/0.00159, allocations: 216.5 kB / 24.47 MB, free: 4.359 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.42/1.42, allocations: 230.2 MB / 257.8 MB, free: 8.512 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.233/0.233, allocations: 46.89 MB / 361.1 MB, free: 4.66 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.002428/0.002428, allocations: 75.88 kB / 0.4967 GB, free: 7.863 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3688/0.3713, allocations: 65.98 MB / 0.5612 GB, free: 5.059 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.002474/0.3737, allocations: 0.4893 MB / 0.5617 GB, free: 4.57 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003416/0.3772, allocations: 1.181 MB / 0.5628 GB, free: 3.383 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.48e-05/0.3772, allocations: 0 / 0.5628 GB, free: 3.383 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.904e-05/0.3772, allocations: 7.875 kB / 0.5628 GB, free: 3.375 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.733e-06/0.3772, allocations: 0 / 0.5628 GB, free: 3.375 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.003149/0.3804, allocations: 0.6707 MB / 0.5635 GB, free: 2.711 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.52e-05/0.3804, allocations: 0 / 0.5635 GB, free: 2.711 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.403e-05/0.3805, allocations: 4 kB / 0.5635 GB, free: 2.707 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.774e-05/0.3805, allocations: 11.98 kB / 0.5635 GB, free: 2.695 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.024e-05/0.3805, allocations: 0 / 0.5635 GB, free: 2.695 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.872e-06/0.3805, allocations: 3.938 kB / 0.5635 GB, free: 2.691 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004711/0.3852, allocations: 2.463 MB / 0.5659 GB, free: 232 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.518e-06/0.3853, allocations: 0 / 0.5659 GB, free: 232 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.686e-05/0.3853, allocations: 4 kB / 0.5659 GB, free: 228 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008257/0.3861, allocations: 363.3 kB / 0.5662 GB, free: 15.87 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.808e-06/0.3861, allocations: 0 / 0.5662 GB, free: 15.87 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.3861, allocations: 0 / 0.5662 GB, free: 15.87 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.033e-06/0.3861, allocations: 0 / 0.5662 GB, free: 15.87 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.0007276/0.3868, allocations: 380.7 kB / 0.5666 GB, free: 15.44 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.031e-05/0.3869, allocations: 8.031 kB / 0.5666 GB, free: 15.43 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.753e-05/0.387, allocations: 0 / 0.5666 GB, free: 15.43 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001999/0.3872, allocations: 167.1 kB / 0.5668 GB, free: 15.23 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.187e-05/0.3872, allocations: 0 / 0.5668 GB, free: 15.23 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.127e-05/0.3872, allocations: 4 kB / 0.5668 GB, free: 15.23 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001529/0.3874, allocations: 29.64 kB / 0.5668 GB, free: 15.19 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.484e-05/0.3874, allocations: 3.938 kB / 0.5668 GB, free: 15.19 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.373e-05/0.3874, allocations: 0 / 0.5668 GB, free: 15.19 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.008e-05/0.3874, allocations: 4 kB / 0.5668 GB, free: 15.18 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.065e-05/0.3874, allocations: 4 kB / 0.5668 GB, free: 15.18 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002219/0.3877, allocations: 149.7 kB / 0.567 GB, free: 14.98 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.04e-05/0.3877, allocations: 26.55 kB / 0.567 GB, free: 14.95 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.513e-05/0.3878, allocations: 4.859 kB / 0.567 GB, free: 14.94 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.867e-05/0.3878, allocations: 3.938 kB / 0.567 GB, free: 14.94 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.074e-05/0.3878, allocations: 56.27 kB / 0.567 GB, free: 14.87 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 1.283e-06/0.3878, allocations: 0 / 0.567 GB, free: 14.87 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002201/0.3881, allocations: 71.39 kB / 0.5671 GB, free: 14.79 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.848e-05/0.3881, allocations: 81.23 kB / 0.5672 GB, free: 14.69 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.159e-05/0.3882, allocations: 93.81 kB / 0.5673 GB, free: 14.59 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.12e-05/0.3882, allocations: 25.7 kB / 0.5673 GB, free: 14.55 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.794e-05/0.3883, allocations: 84.14 kB / 0.5674 GB, free: 14.47 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.985e-05/0.3883, allocations: 0 / 0.5674 GB, free: 14.47 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.273e-05/0.3884, allocations: 9.719 kB / 0.5674 GB, free: 14.45 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001964/0.3886, allocations: 310.8 kB / 0.5677 GB, free: 14.14 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.445e-05/0.3886, allocations: 4 kB / 0.5677 GB, free: 14.14 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.687e-05/0.3886, allocations: 8 kB / 0.5677 GB, free: 14.13 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.197e-05/0.3887, allocations: 68.19 kB / 0.5678 GB, free: 14.05 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.3887, allocations: 0 / 0.5678 GB, free: 14.05 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.000122/0.3888, allocations: 59.34 kB / 0.5678 GB, free: 13.98 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.631e-05/0.3888, allocations: 33.7 kB / 0.5679 GB, free: 13.94 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.291e-06/0.3888, allocations: 0 / 0.5679 GB, free: 13.94 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.205e-05/0.3889, allocations: 0 / 0.5679 GB, free: 13.94 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.11e-06/0.3889, allocations: 3.984 kB / 0.5679 GB, free: 13.93 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.263e-06/0.3889, allocations: 3.938 kB / 0.5679 GB, free: 13.93 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.887e-05/0.3889, allocations: 8.094 kB / 0.5679 GB, free: 13.92 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.127e-06/0.3889, allocations: 0 / 0.5679 GB, free: 13.92 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.0001438/0.3891, allocations: 135.5 kB / 0.568 GB, free: 13.77 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.472e-05/0.3891, allocations: 7.938 kB / 0.568 GB, free: 13.77 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.15e-05/0.3891, allocations: 3.125 kB / 0.568 GB, free: 13.76 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.3891, allocations: 0 / 0.568 GB, free: 13.76 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.3891, allocations: 0 / 0.568 GB, free: 13.76 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.3891, allocations: 0 / 0.568 GB, free: 13.76 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001692/0.3893, allocations: 145.7 kB / 0.5681 GB, free: 13.57 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.989e-06/0.3893, allocations: 7.984 kB / 0.5682 GB, free: 13.56 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.991e-06/0.3893, allocations: 7.938 kB / 0.5682 GB, free: 13.55 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.467e-06/0.3893, allocations: 0 / 0.5682 GB, free: 13.55 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.738e-06/0.3893, allocations: 0 / 0.5682 GB, free: 13.55 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/0.3893, allocations: 7.875 kB / 0.5682 GB, free: 13.54 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.3893, allocations: 0 / 0.5682 GB, free: 13.54 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001583/0.3895, allocations: 90.83 kB / 0.5683 GB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.541e-05/0.3895, allocations: 81.05 kB / 0.5683 GB, free: 13.33 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.459e-05/0.3895, allocations: 4.031 kB / 0.5683 GB, free: 13.33 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.365e-05/0.3896, allocations: 0 / 0.5683 GB, free: 13.33 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.605e-05/0.3896, allocations: 8 kB / 0.5683 GB, free: 13.32 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.087e-06/0.3896, allocations: 0 / 0.5683 GB, free: 13.32 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.782e-05/0.3896, allocations: 75.28 kB / 0.5684 GB, free: 13.25 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3896, allocations: 0 / 0.5684 GB, free: 13.25 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000586/0.3902, allocations: 55.8 kB / 0.5685 GB, free: 13.19 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.002278/0.3925, allocations: 0.5357 MB / 0.569 GB, free: 12.71 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001318/0.3926, allocations: 59.34 kB / 0.5691 GB, free: 12.64 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.3926, allocations: 0 / 0.5691 GB, free: 12.64 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.516e-05/0.3927, allocations: 59.39 kB / 0.5691 GB, free: 12.57 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001972/0.3929, allocations: 8.125 kB / 0.5691 GB, free: 12.56 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000253/0.3931, allocations: 81 kB / 0.5692 GB, free: 12.45 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003673/0.3935, allocations: 0.6767 MB / 0.5699 GB, free: 11.75 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.291e-06/0.3935, allocations: 0 / 0.5699 GB, free: 11.75 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.76e-05/0.3935, allocations: 7.438 kB / 0.5699 GB, free: 11.74 MB / 414.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3935, allocations: 3.938 kB / 0.5699 GB, free: 11.74 MB / 414.1 MB Notification: Performance of Templates: time 0.008356/0.4019, allocations: 2.145 MB / 0.572 GB, free: 9.586 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/TestColorMapToSvg/TestColorMapToSvg.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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.203129608184099]