Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001928/0.001928, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002383/0.002383, allocations: 215.9 kB / 23.73 MB, free: 4.16 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.5/1.5, allocations: 230.6 MB / 257.5 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2332/0.2332, allocations: 46.95 MB / 360.9 MB, free: 4.062 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+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.TestColorMapToSvg,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg") translateModel(ModelicaTest.Math.TestColorMapToSvg,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002185/0.002185, allocations: 67.91 kB / 0.4966 GB, free: 7.254 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3893/0.3915, allocations: 66.03 MB / 0.5611 GB, free: 4.211 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001622/0.3931, allocations: 499.9 kB / 0.5615 GB, free: 3.723 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002189/0.3953, allocations: 1.108 MB / 0.5626 GB, free: 2.609 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.849e-05/0.3953, allocations: 0 / 0.5626 GB, free: 2.609 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.251e-05/0.3953, allocations: 0 / 0.5626 GB, free: 2.609 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.593e-06/0.3953, allocations: 0 / 0.5626 GB, free: 2.609 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.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.1.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.002334/0.3977, allocations: 0.7309 MB / 0.5633 GB, free: 1.883 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.378e-05/0.3977, allocations: 0 / 0.5633 GB, free: 1.883 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.472e-05/0.3978, allocations: 7.938 kB / 0.5633 GB, free: 1.875 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.789e-05/0.3978, allocations: 7.984 kB / 0.5634 GB, free: 1.867 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.85e-05/0.3978, allocations: 3.984 kB / 0.5634 GB, free: 1.863 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.711e-06/0.3978, allocations: 0 / 0.5634 GB, free: 1.863 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00322/0.401, allocations: 2.453 MB / 0.5657 GB, free: 15.41 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.466e-06/0.401, allocations: 0 / 0.5657 GB, free: 15.41 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.539e-05/0.4011, allocations: 7.922 kB / 0.5658 GB, free: 15.4 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004707/0.4015, allocations: 347.4 kB / 0.5661 GB, free: 15.06 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.4015, allocations: 4 kB / 0.5661 GB, free: 15.06 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.4015, allocations: 3.938 kB / 0.5661 GB, free: 15.05 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.709e-06/0.4015, allocations: 0 / 0.5661 GB, free: 15.05 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.0004037/0.4019, allocations: 295.5 kB / 0.5664 GB, free: 14.73 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.947e-05/0.402, allocations: 12.02 kB / 0.5664 GB, free: 14.72 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.97e-05/0.402, allocations: 4 kB / 0.5664 GB, free: 14.71 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.002e-05/0.4021, allocations: 105.2 kB / 0.5665 GB, free: 14.59 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.48e-05/0.4021, allocations: 7.938 kB / 0.5665 GB, free: 14.58 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.044e-05/0.4021, allocations: 0 / 0.5665 GB, free: 14.58 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001101/0.4022, allocations: 59.34 kB / 0.5666 GB, free: 14.51 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.388e-06/0.4022, allocations: 0 / 0.5666 GB, free: 14.51 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.655e-06/0.4022, allocations: 0 / 0.5666 GB, free: 14.51 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.597e-06/0.4022, allocations: 0 / 0.5666 GB, free: 14.51 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.292e-05/0.4023, allocations: 29.7 kB / 0.5666 GB, free: 14.47 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001112/0.4024, allocations: 97.31 kB / 0.5667 GB, free: 14.35 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.64e-05/0.4025, allocations: 48.31 kB / 0.5667 GB, free: 14.29 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.865e-05/0.4025, allocations: 38.5 kB / 0.5668 GB, free: 14.24 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.404e-06/0.4025, allocations: 0 / 0.5668 GB, free: 14.24 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.832e-05/0.4025, allocations: 64.27 kB / 0.5668 GB, free: 14.16 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 8.71e-07/0.4025, allocations: 0 / 0.5668 GB, free: 14.16 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.000209/0.4028, allocations: 118.8 kB / 0.5669 GB, free: 14.02 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.532e-05/0.4028, allocations: 77.11 kB / 0.567 GB, free: 13.93 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.104e-05/0.4029, allocations: 97.75 kB / 0.5671 GB, free: 13.82 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.515e-05/0.4029, allocations: 25.7 kB / 0.5671 GB, free: 13.79 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.399e-05/0.4029, allocations: 80.14 kB / 0.5672 GB, free: 13.71 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.013e-05/0.4029, allocations: 4 kB / 0.5672 GB, free: 13.7 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.602e-05/0.403, allocations: 13.84 kB / 0.5672 GB, free: 13.68 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001309/0.4031, allocations: 314.8 kB / 0.5675 GB, free: 13.37 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.823e-05/0.4031, allocations: 33.7 kB / 0.5676 GB, free: 13.33 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.462e-05/0.4031, allocations: 33.64 kB / 0.5676 GB, free: 13.29 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.78e-05/0.4032, allocations: 60.27 kB / 0.5676 GB, free: 13.21 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.4032, allocations: 0 / 0.5676 GB, free: 13.21 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.356e-05/0.4033, allocations: 93.03 kB / 0.5677 GB, free: 13.11 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.474e-05/0.4033, allocations: 33.7 kB / 0.5678 GB, free: 13.07 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.4034, allocations: 0 / 0.5678 GB, free: 13.07 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.358e-05/0.4034, allocations: 96 / 0.5678 GB, free: 13.07 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.52e-07/0.4034, allocations: 8 kB / 0.5678 GB, free: 13.06 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.2e-06/0.4034, allocations: 0 / 0.5678 GB, free: 13.06 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.47e-05/0.4034, allocations: 0 / 0.5678 GB, free: 13.06 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.46e-06/0.4034, allocations: 0 / 0.5678 GB, free: 13.06 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.0001029/0.4035, allocations: 147.5 kB / 0.5679 GB, free: 12.9 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.839e-06/0.4035, allocations: 3.938 kB / 0.5679 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.156e-05/0.4035, allocations: 3 kB / 0.5679 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-06/0.4035, allocations: 0 / 0.5679 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.4035, allocations: 3.938 kB / 0.5679 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.4035, allocations: 0 / 0.5679 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.975e-05/0.4036, allocations: 101.3 kB / 0.568 GB, free: 12.76 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.4036, allocations: 0 / 0.568 GB, free: 12.76 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.61e-07/0.4036, allocations: 0 / 0.568 GB, free: 12.76 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.14e-06/0.4036, allocations: 3.938 kB / 0.568 GB, free: 12.75 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.636e-06/0.4036, allocations: 3.984 kB / 0.568 GB, free: 12.75 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.71e-07/0.4036, allocations: 0 / 0.568 GB, free: 12.75 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/0.4036, allocations: 7.984 kB / 0.568 GB, free: 12.74 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001141/0.4037, allocations: 112.5 kB / 0.5681 GB, free: 12.6 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.904e-06/0.4037, allocations: 7.922 kB / 0.5681 GB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.163e-05/0.4038, allocations: 0 / 0.5681 GB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.016e-05/0.4038, allocations: 8.031 kB / 0.5682 GB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.491e-05/0.4038, allocations: 4 kB / 0.5682 GB, free: 12.58 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.765e-06/0.4038, allocations: 3.938 kB / 0.5682 GB, free: 12.58 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.598e-05/0.4038, allocations: 75.28 kB / 0.5682 GB, free: 12.5 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4038, allocations: 0 / 0.5682 GB, free: 12.5 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003089/0.4041, allocations: 51.8 kB / 0.5683 GB, free: 12.45 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.001648/0.4058, allocations: 0.5555 MB / 0.5688 GB, free: 11.97 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001378/0.4059, allocations: 114.8 kB / 0.5689 GB, free: 11.83 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.4059, allocations: 0 / 0.5689 GB, free: 11.83 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.458e-05/0.406, allocations: 81.11 kB / 0.569 GB, free: 11.73 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001323/0.4061, allocations: 7.938 kB / 0.569 GB, free: 11.73 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002258/0.4063, allocations: 106.7 kB / 0.5691 GB, free: 11.59 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.26e-05/0.4064, allocations: 51.48 kB / 0.5692 GB, free: 11.52 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.61e-06/0.4064, allocations: 4 kB / 0.5692 GB, free: 11.52 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.735e-05/0.4064, allocations: 11.44 kB / 0.5692 GB, free: 11.5 MB / 414.1 MB Notification: Performance of SimCode: time 3.41e-07/0.4064, allocations: 0 / 0.5692 GB, free: 11.5 MB / 414.1 MB Notification: Performance of Templates: time 0.00661/0.413, allocations: 2.148 MB / 0.5713 GB, free: 9.352 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg.sim & ./ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_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_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.365974605083466]