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.001787/0.001787, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.002398/0.002398, allocations: 205.4 kB / 23.73 MB, free: 4.379 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.526/1.526, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.2438/0.2438, allocations: 46.96 MB / 360.9 MB, free: 4.027 MB / 286.1 MB " [Timeout remaining time 179] 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.002036/0.002036, allocations: 71.91 kB / 0.4966 GB, free: 7.219 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4016/0.4036, allocations: 66.03 MB / 0.5611 GB, free: 4.168 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001645/0.4053, allocations: 0.4922 MB / 0.5615 GB, free: 3.676 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00216/0.4074, allocations: 1.108 MB / 0.5626 GB, free: 2.562 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.02e-05/0.4074, allocations: 0 / 0.5626 GB, free: 2.562 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.324e-05/0.4074, allocations: 4 kB / 0.5626 GB, free: 2.559 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.523e-06/0.4075, allocations: 0 / 0.5626 GB, free: 2.559 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.00222/0.4097, allocations: 0.747 MB / 0.5634 GB, free: 1.816 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.554e-05/0.4097, allocations: 0 / 0.5634 GB, free: 1.816 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.007e-05/0.4098, allocations: 3.938 kB / 0.5634 GB, free: 1.812 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.471e-05/0.4098, allocations: 7.984 kB / 0.5634 GB, free: 1.805 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.498e-05/0.4098, allocations: 0 / 0.5634 GB, free: 1.805 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.805e-06/0.4098, allocations: 0 / 0.5634 GB, free: 1.805 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003856/0.4137, allocations: 2.468 MB / 0.5658 GB, free: 15.34 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.473e-05/0.4137, allocations: 3.984 kB / 0.5658 GB, free: 15.33 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.251e-05/0.4137, allocations: 0 / 0.5658 GB, free: 15.33 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005365/0.4143, allocations: 343.5 kB / 0.5661 GB, free: 15 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.4143, allocations: 4 kB / 0.5661 GB, free: 14.99 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.4143, allocations: 3.938 kB / 0.5661 GB, free: 14.99 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.252e-06/0.4143, allocations: 0 / 0.5661 GB, free: 14.99 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.0004666/0.4148, allocations: 303.5 kB / 0.5664 GB, free: 14.66 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.4148, allocations: 11.97 kB / 0.5664 GB, free: 14.64 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.374e-05/0.4148, allocations: 0 / 0.5664 GB, free: 14.64 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.228e-05/0.4149, allocations: 105.2 kB / 0.5665 GB, free: 14.52 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.542e-05/0.4149, allocations: 3.938 kB / 0.5665 GB, free: 14.51 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.386e-05/0.4149, allocations: 0 / 0.5665 GB, free: 14.51 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001299/0.4151, allocations: 63.33 kB / 0.5666 GB, free: 14.44 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.4151, allocations: 0 / 0.5666 GB, free: 14.44 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.905e-06/0.4151, allocations: 4 kB / 0.5666 GB, free: 14.43 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.255e-06/0.4151, allocations: 0 / 0.5666 GB, free: 14.43 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.269e-05/0.4151, allocations: 29.7 kB / 0.5666 GB, free: 14.4 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001221/0.4153, allocations: 97.33 kB / 0.5667 GB, free: 14.27 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.993e-05/0.4153, allocations: 56.22 kB / 0.5668 GB, free: 14.2 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.04e-05/0.4154, allocations: 34.5 kB / 0.5668 GB, free: 14.16 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.237e-06/0.4154, allocations: 0 / 0.5668 GB, free: 14.16 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.747e-05/0.4154, allocations: 68.31 kB / 0.5669 GB, free: 14.08 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 8.32e-07/0.4154, allocations: 0 / 0.5669 GB, free: 14.08 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002111/0.4156, allocations: 118.9 kB / 0.567 GB, free: 13.94 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.394e-05/0.4157, allocations: 85.08 kB / 0.5671 GB, free: 13.84 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.041e-05/0.4158, allocations: 97.75 kB / 0.5671 GB, free: 13.73 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.906e-05/0.4158, allocations: 25.7 kB / 0.5672 GB, free: 13.7 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.076e-05/0.4158, allocations: 80.14 kB / 0.5672 GB, free: 13.62 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.768e-05/0.4158, allocations: 0 / 0.5672 GB, free: 13.62 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.927e-05/0.4159, allocations: 17.72 kB / 0.5673 GB, free: 13.59 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001333/0.416, allocations: 310.8 kB / 0.5676 GB, free: 13.28 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.784e-05/0.416, allocations: 29.7 kB / 0.5676 GB, free: 13.25 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.976e-05/0.4161, allocations: 29.69 kB / 0.5676 GB, free: 13.21 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.213e-05/0.4161, allocations: 64.33 kB / 0.5677 GB, free: 13.13 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.4161, allocations: 0 / 0.5677 GB, free: 13.13 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.982e-05/0.4162, allocations: 93.05 kB / 0.5678 GB, free: 13.02 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.759e-05/0.4162, allocations: 33.69 kB / 0.5678 GB, free: 12.98 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-06/0.4162, allocations: 3.938 kB / 0.5678 GB, free: 12.98 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.787e-05/0.4163, allocations: 0 / 0.5678 GB, free: 12.98 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.202e-06/0.4163, allocations: 0 / 0.5678 GB, free: 12.98 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.055e-06/0.4163, allocations: 4 kB / 0.5678 GB, free: 12.98 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.533e-05/0.4163, allocations: 0 / 0.5678 GB, free: 12.98 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.133e-06/0.4163, allocations: 0 / 0.5678 GB, free: 12.98 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.0001015/0.4164, allocations: 139.6 kB / 0.5679 GB, free: 12.82 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.497e-06/0.4164, allocations: 3.938 kB / 0.5679 GB, free: 12.82 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.159e-05/0.4164, allocations: 3 kB / 0.5679 GB, free: 12.82 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-06/0.4164, allocations: 0 / 0.5679 GB, free: 12.82 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.676e-06/0.4164, allocations: 0 / 0.5679 GB, free: 12.82 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.4164, allocations: 3.984 kB / 0.568 GB, free: 12.81 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.34e-05/0.4165, allocations: 101.3 kB / 0.568 GB, free: 12.68 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.4165, allocations: 0 / 0.568 GB, free: 12.68 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-07/0.4165, allocations: 0 / 0.568 GB, free: 12.68 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.489e-06/0.4165, allocations: 3.938 kB / 0.5681 GB, free: 12.68 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.523e-06/0.4165, allocations: 0 / 0.5681 GB, free: 12.68 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.4165, allocations: 7.938 kB / 0.5681 GB, free: 12.67 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.4165, allocations: 0 / 0.5681 GB, free: 12.67 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001237/0.4167, allocations: 120.5 kB / 0.5682 GB, free: 12.52 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.314e-06/0.4167, allocations: 7.938 kB / 0.5682 GB, free: 12.52 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.075e-05/0.4167, allocations: 0 / 0.5682 GB, free: 12.52 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.765e-06/0.4167, allocations: 0 / 0.5682 GB, free: 12.52 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.525e-05/0.4167, allocations: 0 / 0.5682 GB, free: 12.52 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.649e-06/0.4167, allocations: 7.938 kB / 0.5682 GB, free: 12.51 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.327e-05/0.4167, allocations: 75.28 kB / 0.5683 GB, free: 12.43 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4167, allocations: 0 / 0.5683 GB, free: 12.43 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003236/0.4171, allocations: 51.8 kB / 0.5683 GB, free: 12.38 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.001609/0.4187, allocations: 0.5614 MB / 0.5689 GB, free: 11.89 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001547/0.4188, allocations: 110.8 kB / 0.569 GB, free: 11.76 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.4188, allocations: 4.062 kB / 0.569 GB, free: 11.75 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.63e-05/0.4189, allocations: 81.11 kB / 0.569 GB, free: 11.66 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001253/0.419, allocations: 4 kB / 0.569 GB, free: 11.65 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002171/0.4192, allocations: 114.6 kB / 0.5692 GB, free: 11.51 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.054e-05/0.4193, allocations: 51.36 kB / 0.5692 GB, free: 11.44 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.63e-06/0.4193, allocations: 0 / 0.5692 GB, free: 11.44 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.543e-05/0.4193, allocations: 11.44 kB / 0.5692 GB, free: 11.43 MB / 414.1 MB Notification: Performance of SimCode: time 4.81e-07/0.4193, allocations: 0 / 0.5692 GB, free: 11.43 MB / 414.1 MB Notification: Performance of Templates: time 0.005923/0.4252, allocations: 2.145 MB / 0.5713 GB, free: 9.273 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.504487729165703]