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.001366/0.001366, allocations: 112.2 kB / 21.19 MB, free: 0.7578 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.001518/0.001518, allocations: 209.8 kB / 24.5 MB, free: 4.133 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.479/1.479, allocations: 230.6 MB / 258.3 MB, free: 8.023 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.2163/0.2163, allocations: 46.94 MB / 361.6 MB, free: 4.359 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.00213/0.00213, allocations: 71.89 kB / 0.4974 GB, free: 7.434 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3447/0.3469, allocations: 66.02 MB / 0.5618 GB, free: 4.434 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001758/0.3486, allocations: 0.4931 MB / 0.5623 GB, free: 3.938 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002141/0.3507, allocations: 1.186 MB / 0.5635 GB, free: 2.746 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.535e-05/0.3508, allocations: 0 / 0.5635 GB, free: 2.746 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.461e-05/0.3508, allocations: 4 kB / 0.5635 GB, free: 2.742 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.302e-06/0.3508, allocations: 0 / 0.5635 GB, free: 2.742 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.002161/0.353, allocations: 0.7388 MB / 0.5642 GB, free: 2.008 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.885e-05/0.353, allocations: 8 kB / 0.5642 GB, free: 2 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.561e-05/0.3531, allocations: 7.969 kB / 0.5642 GB, free: 1.992 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.599e-05/0.3531, allocations: 0 / 0.5642 GB, free: 1.992 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.618e-05/0.3531, allocations: 0 / 0.5642 GB, free: 1.992 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.161e-06/0.3531, allocations: 0 / 0.5642 GB, free: 1.992 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003326/0.3564, allocations: 2.507 MB / 0.5667 GB, free: 15.48 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.084e-05/0.3564, allocations: 7.984 kB / 0.5667 GB, free: 15.48 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.114e-05/0.3564, allocations: 0 / 0.5667 GB, free: 15.48 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000435/0.3569, allocations: 355.4 kB / 0.567 GB, free: 15.13 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.3569, allocations: 8 kB / 0.567 GB, free: 15.12 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3569, allocations: 0 / 0.567 GB, free: 15.12 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.23e-06/0.3569, allocations: 0 / 0.567 GB, free: 15.12 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.0004341/0.3573, allocations: 299.5 kB / 0.5673 GB, free: 14.79 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.789e-05/0.3574, allocations: 8.031 kB / 0.5673 GB, free: 14.79 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.6e-05/0.3574, allocations: 4 kB / 0.5673 GB, free: 14.78 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.448e-05/0.3575, allocations: 109.2 kB / 0.5674 GB, free: 14.65 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.558e-06/0.3575, allocations: 3.938 kB / 0.5674 GB, free: 14.64 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.227e-05/0.3575, allocations: 0 / 0.5674 GB, free: 14.64 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000101/0.3576, allocations: 41.62 kB / 0.5675 GB, free: 14.6 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.366e-06/0.3576, allocations: 0 / 0.5675 GB, free: 14.6 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.945e-06/0.3576, allocations: 0 / 0.5675 GB, free: 14.6 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.188e-06/0.3576, allocations: 0 / 0.5675 GB, free: 14.6 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.721e-05/0.3577, allocations: 3.938 kB / 0.5675 GB, free: 14.59 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000142/0.3578, allocations: 120.8 kB / 0.5676 GB, free: 14.43 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.807e-05/0.3578, allocations: 22.52 kB / 0.5676 GB, free: 14.4 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.814e-05/0.3579, allocations: 8.844 kB / 0.5676 GB, free: 14.39 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.458e-06/0.3579, allocations: 4.094 kB / 0.5676 GB, free: 14.39 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.981e-05/0.3579, allocations: 64.2 kB / 0.5677 GB, free: 14.31 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 9.02e-07/0.3579, allocations: 0 / 0.5677 GB, free: 14.31 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001859/0.3581, allocations: 59.41 kB / 0.5677 GB, free: 14.24 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.156e-05/0.3582, allocations: 85.05 kB / 0.5678 GB, free: 14.14 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.744e-05/0.3582, allocations: 97.8 kB / 0.5679 GB, free: 14.03 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.523e-05/0.3582, allocations: 25.7 kB / 0.5679 GB, free: 14 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.048e-05/0.3583, allocations: 84.27 kB / 0.568 GB, free: 13.91 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.96e-05/0.3583, allocations: 0 / 0.568 GB, free: 13.91 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.926e-05/0.3583, allocations: 13.72 kB / 0.568 GB, free: 13.89 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001369/0.3585, allocations: 310.8 kB / 0.5683 GB, free: 13.58 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.022e-05/0.3585, allocations: 0 / 0.5683 GB, free: 13.58 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.013e-06/0.3585, allocations: 4 kB / 0.5683 GB, free: 13.58 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.338e-05/0.3585, allocations: 64.2 kB / 0.5684 GB, free: 13.5 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.3585, allocations: 0 / 0.5684 GB, free: 13.5 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.302e-05/0.3586, allocations: 71.39 kB / 0.5685 GB, free: 13.42 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.884e-05/0.3587, allocations: 36.05 kB / 0.5685 GB, free: 13.38 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.3587, allocations: 0 / 0.5685 GB, free: 13.38 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.71e-05/0.3587, allocations: 0 / 0.5685 GB, free: 13.38 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.212e-06/0.3587, allocations: 0 / 0.5685 GB, free: 13.38 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.06e-06/0.3587, allocations: 0 / 0.5685 GB, free: 13.38 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.382e-05/0.3587, allocations: 0 / 0.5685 GB, free: 13.38 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.861e-06/0.3587, allocations: 0 / 0.5685 GB, free: 13.38 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.0001032/0.3588, allocations: 147.4 kB / 0.5686 GB, free: 13.22 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.137e-06/0.3588, allocations: 8.031 kB / 0.5687 GB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.919e-06/0.3588, allocations: 3 kB / 0.5687 GB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.42e-07/0.3588, allocations: 0 / 0.5687 GB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.3588, allocations: 0 / 0.5687 GB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.054e-06/0.3588, allocations: 7.938 kB / 0.5687 GB, free: 13.2 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.647e-05/0.3589, allocations: 116.7 kB / 0.5688 GB, free: 13.04 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.3589, allocations: 0 / 0.5688 GB, free: 13.04 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.595e-06/0.3589, allocations: 3.984 kB / 0.5688 GB, free: 13.04 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.153e-06/0.3589, allocations: 3.938 kB / 0.5688 GB, free: 13.04 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.815e-06/0.3589, allocations: 4 kB / 0.5688 GB, free: 13.03 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.3589, allocations: 0 / 0.5688 GB, free: 13.03 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.3589, allocations: 4 kB / 0.5688 GB, free: 13.03 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.654e-05/0.359, allocations: 86.78 kB / 0.5689 GB, free: 12.92 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.816e-05/0.3591, allocations: 7.984 kB / 0.5689 GB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.099e-05/0.3591, allocations: 0 / 0.5689 GB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.985e-06/0.3591, allocations: 0 / 0.5689 GB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.053e-05/0.3591, allocations: 0 / 0.5689 GB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.372e-06/0.3591, allocations: 8 kB / 0.5689 GB, free: 12.9 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.436e-05/0.3591, allocations: 79.31 kB / 0.569 GB, free: 12.82 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3591, allocations: 0 / 0.569 GB, free: 12.82 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003105/0.3594, allocations: 51.8 kB / 0.569 GB, free: 12.77 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.001527/0.361, allocations: 0.5501 MB / 0.5695 GB, free: 12.28 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001156/0.3611, allocations: 55.41 kB / 0.5696 GB, free: 12.21 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.3611, allocations: 4 kB / 0.5696 GB, free: 12.21 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.393e-05/0.3611, allocations: 51.41 kB / 0.5697 GB, free: 12.15 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001238/0.3612, allocations: 7.938 kB / 0.5697 GB, free: 12.14 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002125/0.3615, allocations: 106.8 kB / 0.5698 GB, free: 12 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002965/0.3617, allocations: 0.669 MB / 0.5704 GB, free: 11.31 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.278e-05/0.3618, allocations: 15.5 kB / 0.5704 GB, free: 11.29 MB / 414.1 MB Notification: Performance of SimCode: time 3e-07/0.3618, allocations: 0 / 0.5704 GB, free: 11.29 MB / 414.1 MB Notification: Performance of Templates: time 0.004762/0.3665, allocations: 2.591 MB / 0.573 GB, free: 8.699 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/TestColorMapToSvg/TestColorMapToSvg.csv","/var/lib/jenkins1/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: 7.885158286895603]