Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001525/0.001525, allocations: 84.55 kB / 20.68 MB, free: 1.023 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.001638/0.001638, allocations: 163.9 kB / 23.95 MB, free: 4.156 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.398/1.398, allocations: 177.1 MB / 204.3 MB, free: 9.188 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2009/0.2009, allocations: 32.81 MB / 293.5 MB, free: 44 kB / 270.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.0.0_ModelicaTest.Math.TestColorMapToSvg") translateModel(ModelicaTest.Math.TestColorMapToSvg,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 0 / 440.1 MB, free: 8.199 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.462e-05/2.617e-05, allocations: 2.281 kB / 440.1 MB, free: 8.195 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001427/0.001453, allocations: 0.4933 MB / 440.6 MB, free: 7.703 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002109/0.003562, allocations: 1.112 MB / 441.7 MB, free: 6.582 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.487e-05/0.003587, allocations: 7.938 kB / 441.7 MB, free: 6.574 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.267e-05/0.003599, allocations: 0 / 441.7 MB, free: 6.574 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 6.342e-06/0.003606, allocations: 4 kB / 441.7 MB, free: 6.57 MB / 366.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.0.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.002123/0.005729, allocations: 0.7443 MB / 442.4 MB, free: 5.832 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 4.2e-05/0.005771, allocations: 4 kB / 442.4 MB, free: 5.828 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.72e-05/0.005798, allocations: 0 / 442.4 MB, free: 5.828 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.109e-05/0.005819, allocations: 3.938 kB / 442.4 MB, free: 5.824 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.606e-05/0.005835, allocations: 0 / 442.4 MB, free: 5.824 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.791e-06/0.005841, allocations: 0 / 442.4 MB, free: 5.824 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003613/0.009454, allocations: 2.462 MB / 444.9 MB, free: 3.359 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.335e-06/0.009462, allocations: 3.984 kB / 444.9 MB, free: 3.355 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.193e-05/0.009484, allocations: 0 / 444.9 MB, free: 3.355 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004992/0.009983, allocations: 387.3 kB / 445.3 MB, free: 2.977 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.009986, allocations: 0 / 445.3 MB, free: 2.977 MB / 366.1 MB Notification: Performance of FrontEnd: time 8.92e-07/0.009987, allocations: 0 / 445.3 MB, free: 2.977 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.587e-06/0.009991, allocations: 0 / 445.3 MB, free: 2.977 MB / 366.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.0004266/0.01042, allocations: 299.6 kB / 445.6 MB, free: 2.648 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.378e-05/0.01045, allocations: 8.031 kB / 445.6 MB, free: 2.641 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.44e-05/0.01049, allocations: 0 / 445.6 MB, free: 2.641 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.238e-05/0.01058, allocations: 101.2 kB / 445.7 MB, free: 2.516 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.228e-05/0.01059, allocations: 4 kB / 445.7 MB, free: 2.512 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.263e-06/0.0106, allocations: 0 / 445.7 MB, free: 2.512 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001119/0.01071, allocations: 67.27 kB / 445.8 MB, free: 2.434 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.889e-06/0.01072, allocations: 7.938 kB / 445.8 MB, free: 2.426 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.205e-06/0.01073, allocations: 0 / 445.8 MB, free: 2.426 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.647e-06/0.01073, allocations: 0 / 445.8 MB, free: 2.426 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.909e-05/0.01076, allocations: 25.7 kB / 445.8 MB, free: 2.395 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001257/0.01089, allocations: 101.3 kB / 445.9 MB, free: 2.266 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.803e-05/0.01095, allocations: 40.28 kB / 445.9 MB, free: 2.211 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.147e-05/0.01099, allocations: 38.64 kB / 446 MB, free: 2.164 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.676e-06/0.01099, allocations: 0 / 446 MB, free: 2.164 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.001e-05/0.01104, allocations: 56.27 kB / 446 MB, free: 2.094 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 3.186e-06/0.01105, allocations: 7.922 kB / 446 MB, free: 2.086 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001972/0.01124, allocations: 130.7 kB / 446.1 MB, free: 1.934 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.08e-05/0.01131, allocations: 81.11 kB / 446.2 MB, free: 1.836 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.89e-05/0.01136, allocations: 89.86 kB / 446.3 MB, free: 1.738 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.641e-05/0.01138, allocations: 25.7 kB / 446.3 MB, free: 1.707 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.49e-05/0.01142, allocations: 80.14 kB / 446.4 MB, free: 1.625 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.657e-05/0.01143, allocations: 3.953 kB / 446.4 MB, free: 1.621 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.734e-05/0.01146, allocations: 13.72 kB / 446.4 MB, free: 1.602 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001501/0.01161, allocations: 314.8 kB / 446.7 MB, free: 1.285 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.37e-05/0.01163, allocations: 25.7 kB / 446.8 MB, free: 1.254 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.082e-05/0.01165, allocations: 29.83 kB / 446.8 MB, free: 1.219 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.654e-05/0.01171, allocations: 72.25 kB / 446.9 MB, free: 1.133 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.01171, allocations: 0 / 446.9 MB, free: 1.133 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.201e-05/0.0118, allocations: 85.11 kB / 447 MB, free: 1.031 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.448e-05/0.01184, allocations: 33.7 kB / 447 MB, free: 0.9922 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.604e-06/0.01185, allocations: 7.922 kB / 447 MB, free: 0.9844 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.256e-05/0.01186, allocations: 0 / 447 MB, free: 0.9844 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.01e-07/0.01186, allocations: 0 / 447 MB, free: 0.9844 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.238e-06/0.01186, allocations: 0 / 447 MB, free: 0.9844 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.346e-05/0.01188, allocations: 0 / 447 MB, free: 0.9844 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.484e-06/0.01188, allocations: 4.031 kB / 447 MB, free: 0.9805 MB / 366.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 8.665e-05/0.01197, allocations: 135.5 kB / 447.1 MB, free: 0.832 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.233e-06/0.01198, allocations: 0 / 447.1 MB, free: 0.832 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.072e-05/0.01199, allocations: 10.94 kB / 447.1 MB, free: 0.8203 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.61e-07/0.01199, allocations: 0 / 447.1 MB, free: 0.8203 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.012, allocations: 4 kB / 447.1 MB, free: 0.8164 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.903e-06/0.012, allocations: 0 / 447.1 MB, free: 0.8164 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.237e-05/0.01208, allocations: 101.3 kB / 447.2 MB, free: 0.6875 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.02e-07/0.01208, allocations: 0 / 447.2 MB, free: 0.6875 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.01208, allocations: 4 kB / 447.2 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.062e-06/0.01208, allocations: 0 / 447.2 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.761e-06/0.01209, allocations: 7.938 kB / 447.3 MB, free: 0.6758 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.348e-06/0.01209, allocations: 7.875 kB / 447.3 MB, free: 0.668 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.01209, allocations: 0 / 447.3 MB, free: 0.668 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001215/0.01221, allocations: 120.5 kB / 447.4 MB, free: 0.5195 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.516e-06/0.01222, allocations: 0 / 447.4 MB, free: 0.5195 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.278e-05/0.01223, allocations: 7.938 kB / 447.4 MB, free: 0.5117 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.352e-05/0.01224, allocations: 7.938 kB / 447.4 MB, free: 0.5039 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.057e-06/0.01225, allocations: 0 / 447.4 MB, free: 0.5039 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.355e-06/0.01226, allocations: 0 / 447.4 MB, free: 0.5039 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.323e-05/0.01229, allocations: 75.28 kB / 447.5 MB, free: 440 kB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.01229, allocations: 4.031 kB / 447.5 MB, free: 436 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003133/0.0126, allocations: 55.73 kB / 447.5 MB, free: 380 kB / 366.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.1676/0.1802, allocations: 0.5459 MB / 448.1 MB, free: 21.76 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001293/0.1803, allocations: 116.2 kB / 448.2 MB, free: 21.63 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.1803, allocations: 3.125 kB / 448.2 MB, free: 21.63 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.265e-05/0.1803, allocations: 81.95 kB / 448.3 MB, free: 21.54 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001315/0.1805, allocations: 7.969 kB / 448.3 MB, free: 21.54 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001721/0.1806, allocations: 111.5 kB / 448.4 MB, free: 21.41 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.571e-05/0.1807, allocations: 55.95 kB / 448.4 MB, free: 21.34 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.67e-06/0.1807, allocations: 0 / 448.4 MB, free: 21.34 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.06e-05/0.1807, allocations: 9.656 kB / 448.5 MB, free: 21.34 MB / 366.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1807, allocations: 0 / 448.5 MB, free: 21.34 MB / 366.1 MB Notification: Performance of Templates: time 0.005515/0.1862, allocations: 2.189 MB / 450.6 MB, free: 21.16 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_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_4.0.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: 4.576832793653011]