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.001303/0.001303, allocations: 114 kB / 18.46 MB, free: 4.621 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.001469/0.001469, allocations: 208.3 kB / 21.41 MB, free: 1.668 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.452/1.452, allocations: 230.6 MB / 254.8 MB, free: 15.09 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.2311/0.2311, allocations: 46.92 MB / 357.8 MB, free: 10.3 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.001993/0.001993, allocations: 63.91 kB / 0.492 GB, free: 7.469 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.125/0.127, allocations: 66.01 MB / 0.5565 GB, free: 5.336 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001737/0.1287, allocations: 482.9 kB / 0.557 GB, free: 4.863 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002126/0.1309, allocations: 1.165 MB / 0.5581 GB, free: 3.691 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.97e-05/0.1309, allocations: 0 / 0.5581 GB, free: 3.691 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.53e-05/0.1309, allocations: 0 / 0.5581 GB, free: 3.691 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.4e-06/0.1309, allocations: 0 / 0.5581 GB, free: 3.691 MB / 414.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.002181/0.1331, allocations: 0.6796 MB / 0.5588 GB, free: 3.016 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 4.877e-05/0.1331, allocations: 3.984 kB / 0.5588 GB, free: 3.012 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.898e-05/0.1332, allocations: 8 kB / 0.5588 GB, free: 3.004 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.356e-05/0.1332, allocations: 0 / 0.5588 GB, free: 3.004 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.61e-05/0.1332, allocations: 0 / 0.5588 GB, free: 3.004 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 4.929e-06/0.1332, allocations: 0 / 0.5588 GB, free: 3.004 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00308/0.1363, allocations: 2.448 MB / 0.5612 GB, free: 0.5508 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.296e-06/0.1363, allocations: 0 / 0.5612 GB, free: 0.5508 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.986e-05/0.1363, allocations: 0 / 0.5612 GB, free: 0.5508 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004278/0.1367, allocations: 367.3 kB / 0.5615 GB, free: 196 kB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.1368, allocations: 4 kB / 0.5615 GB, free: 192 kB / 414.1 MB Notification: Performance of FrontEnd: time 2.235e-06/0.1368, allocations: 0 / 0.5615 GB, free: 192 kB / 414.1 MB Notification: Performance of Transformations before backend: time 4.639e-06/0.1368, allocations: 0 / 0.5615 GB, free: 192 kB / 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.0004937/0.1373, allocations: 384.6 kB / 0.5619 GB, free: 15.76 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.522e-05/0.1373, allocations: 8.031 kB / 0.5619 GB, free: 15.75 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.467e-05/0.1373, allocations: 4 kB / 0.5619 GB, free: 15.75 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001087/0.1374, allocations: 159.1 kB / 0.5621 GB, free: 15.55 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.918e-05/0.1375, allocations: 3.938 kB / 0.5621 GB, free: 15.55 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.696e-06/0.1375, allocations: 0 / 0.5621 GB, free: 15.55 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.668e-05/0.1376, allocations: 33.64 kB / 0.5621 GB, free: 15.51 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.1376, allocations: 3.938 kB / 0.5621 GB, free: 15.5 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.123e-05/0.1376, allocations: 3.984 kB / 0.5621 GB, free: 15.5 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.907e-06/0.1376, allocations: 0 / 0.5621 GB, free: 15.5 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.574e-05/0.1376, allocations: 4 kB / 0.5621 GB, free: 15.5 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001438/0.1378, allocations: 149.7 kB / 0.5623 GB, free: 15.3 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.556e-05/0.1378, allocations: 22.52 kB / 0.5623 GB, free: 15.27 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.578e-05/0.1378, allocations: 4.859 kB / 0.5623 GB, free: 15.26 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.727e-06/0.1378, allocations: 0 / 0.5623 GB, free: 15.26 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.209e-05/0.1379, allocations: 64.27 kB / 0.5623 GB, free: 15.18 MB / 430.1 MB Notification: Performance of pre-optimization done (n=1): time 1.132e-06/0.1379, allocations: 4 kB / 0.5623 GB, free: 15.18 MB / 430.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001718/0.138, allocations: 67.39 kB / 0.5624 GB, free: 15.1 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.784e-05/0.1381, allocations: 77.11 kB / 0.5625 GB, free: 15.01 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.809e-05/0.1382, allocations: 93.81 kB / 0.5626 GB, free: 14.91 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.414e-05/0.1382, allocations: 25.7 kB / 0.5626 GB, free: 14.88 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.667e-05/0.1382, allocations: 80.14 kB / 0.5627 GB, free: 14.79 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.912e-05/0.1382, allocations: 0 / 0.5627 GB, free: 14.79 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.819e-05/0.1383, allocations: 17.7 kB / 0.5627 GB, free: 14.77 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001246/0.1384, allocations: 315 kB / 0.563 GB, free: 14.45 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.438e-06/0.1384, allocations: 0 / 0.563 GB, free: 14.45 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.781e-06/0.1384, allocations: 0 / 0.563 GB, free: 14.45 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.489e-05/0.1385, allocations: 68.2 kB / 0.5631 GB, free: 14.37 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.1385, allocations: 0 / 0.5631 GB, free: 14.37 MB / 430.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.865e-05/0.1385, allocations: 67.33 kB / 0.5631 GB, free: 14.29 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.195e-05/0.1386, allocations: 29.7 kB / 0.5631 GB, free: 14.26 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.1386, allocations: 0 / 0.5631 GB, free: 14.26 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.486e-05/0.1386, allocations: 8.094 kB / 0.5632 GB, free: 14.25 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.51e-07/0.1386, allocations: 0 / 0.5632 GB, free: 14.25 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.1386, allocations: 3.984 kB / 0.5632 GB, free: 14.25 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.528e-05/0.1386, allocations: 0 / 0.5632 GB, free: 14.25 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.831e-06/0.1386, allocations: 0 / 0.5632 GB, free: 14.25 MB / 430.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 9.335e-05/0.1387, allocations: 143.5 kB / 0.5633 GB, free: 14.09 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.574e-06/0.1387, allocations: 0 / 0.5633 GB, free: 14.09 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.052e-05/0.1387, allocations: 7.109 kB / 0.5633 GB, free: 14.08 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-06/0.1387, allocations: 0 / 0.5633 GB, free: 14.08 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.1387, allocations: 4 kB / 0.5633 GB, free: 14.08 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.673e-06/0.1387, allocations: 7.875 kB / 0.5633 GB, free: 14.07 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001073/0.1388, allocations: 153.6 kB / 0.5635 GB, free: 13.87 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.1388, allocations: 4 kB / 0.5635 GB, free: 13.87 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.81e-07/0.1388, allocations: 0 / 0.5635 GB, free: 13.87 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.202e-06/0.1388, allocations: 0 / 0.5635 GB, free: 13.87 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.845e-06/0.1389, allocations: 3.984 kB / 0.5635 GB, free: 13.86 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.654e-06/0.1389, allocations: 3.984 kB / 0.5635 GB, free: 13.86 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.1389, allocations: 0 / 0.5635 GB, free: 13.86 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.383e-05/0.1389, allocations: 94.78 kB / 0.5636 GB, free: 13.74 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.957e-05/0.139, allocations: 77.11 kB / 0.5636 GB, free: 13.65 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.871e-05/0.139, allocations: 7.984 kB / 0.5636 GB, free: 13.64 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.606e-06/0.139, allocations: 0 / 0.5636 GB, free: 13.64 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.038e-05/0.139, allocations: 0 / 0.5636 GB, free: 13.64 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.374e-06/0.139, allocations: 0 / 0.5636 GB, free: 13.64 MB / 430.1 MB Notification: Performance of sorting global known variables: time 2.984e-05/0.1391, allocations: 75.28 kB / 0.5637 GB, free: 13.57 MB / 430.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1391, allocations: 0 / 0.5637 GB, free: 13.57 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0003377/0.1394, allocations: 55.73 kB / 0.5638 GB, free: 13.51 MB / 430.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.001474/0.1409, allocations: 0.5391 MB / 0.5643 GB, free: 13.03 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 9.735e-05/0.141, allocations: 59.39 kB / 0.5644 GB, free: 12.96 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.141, allocations: 4.062 kB / 0.5644 GB, free: 12.96 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 3.817e-05/0.141, allocations: 55.41 kB / 0.5644 GB, free: 12.89 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001288/0.1411, allocations: 7.875 kB / 0.5644 GB, free: 12.88 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001934/0.1413, allocations: 106.8 kB / 0.5645 GB, free: 12.75 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002801/0.1416, allocations: 0.669 MB / 0.5652 GB, free: 12.05 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.116e-05/0.1416, allocations: 11.44 kB / 0.5652 GB, free: 12.04 MB / 430.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1416, allocations: 3.938 kB / 0.5652 GB, free: 12.04 MB / 430.1 MB Notification: Performance of Templates: time 0.004645/0.1463, allocations: 2.583 MB / 0.5677 GB, free: 9.449 MB / 430.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: 8.23558727800264]