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.001747/0.001747, allocations: 112.2 kB / 18.49 MB, free: 4.539 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.002037/0.002037, allocations: 219 kB / 21.46 MB, free: 1.586 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.437/1.437, allocations: 230.6 MB / 254.8 MB, free: 15.08 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.2462/0.2462, allocations: 46.91 MB / 357.8 MB, free: 10.29 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: "" <> buildModelFMU(ModelicaTest.Math.TestColorMapToSvg,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_TestColorMapToSvg",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestColorMapToSvg,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_TestColorMapToSvg",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002039/0.002039, allocations: 63.91 kB / 0.4916 GB, free: 7.945 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1351/0.1371, allocations: 65.99 MB / 0.556 GB, free: 5.828 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001991/0.1391, allocations: 498.2 kB / 0.5565 GB, free: 5.34 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002347/0.1415, allocations: 1.165 MB / 0.5577 GB, free: 4.168 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.344e-05/0.1415, allocations: 0 / 0.5577 GB, free: 4.168 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.875e-05/0.1415, allocations: 0 / 0.5577 GB, free: 4.168 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 9.117e-06/0.1415, allocations: 3.938 kB / 0.5577 GB, free: 4.164 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.002513/0.144, allocations: 0.6689 MB / 0.5583 GB, free: 3.5 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.097e-05/0.1441, allocations: 4 kB / 0.5583 GB, free: 3.496 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.094e-05/0.1441, allocations: 4 kB / 0.5583 GB, free: 3.492 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.778e-05/0.1441, allocations: 4 kB / 0.5583 GB, free: 3.488 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.642e-05/0.1442, allocations: 0 / 0.5583 GB, free: 3.488 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 8.676e-06/0.1442, allocations: 4 kB / 0.5583 GB, free: 3.484 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003314/0.1475, allocations: 2.445 MB / 0.5607 GB, free: 1.035 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.088e-05/0.1475, allocations: 0 / 0.5607 GB, free: 1.035 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.87e-05/0.1475, allocations: 7.984 kB / 0.5607 GB, free: 1.027 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006112/0.1481, allocations: 363.3 kB / 0.5611 GB, free: 0.6719 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.955e-06/0.1481, allocations: 0 / 0.5611 GB, free: 0.6719 MB / 414.1 MB Notification: Performance of FrontEnd: time 9.02e-07/0.1481, allocations: 0 / 0.5611 GB, free: 0.6719 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.021e-06/0.1481, allocations: 0 / 0.5611 GB, free: 0.6719 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.0006419/0.1488, allocations: 380.7 kB / 0.5614 GB, free: 252 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.239e-05/0.1488, allocations: 8.031 kB / 0.5614 GB, free: 244 kB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.585e-05/0.1488, allocations: 4 kB / 0.5614 GB, free: 240 kB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.133e-05/0.1489, allocations: 30.56 kB / 0.5615 GB, free: 200 kB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.515e-05/0.1489, allocations: 0 / 0.5615 GB, free: 200 kB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001458/0.1491, allocations: 163.3 kB / 0.5616 GB, free: 15.99 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.439e-05/0.1491, allocations: 7.938 kB / 0.5616 GB, free: 15.98 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.734e-06/0.1491, allocations: 3.938 kB / 0.5616 GB, free: 15.98 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.766e-05/0.1492, allocations: 37.61 kB / 0.5617 GB, free: 15.94 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.044e-05/0.1492, allocations: 4 kB / 0.5617 GB, free: 15.93 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.255e-06/0.1492, allocations: 0 / 0.5617 GB, free: 15.93 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.118e-06/0.1492, allocations: 4 kB / 0.5617 GB, free: 15.93 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.864e-05/0.1492, allocations: 0 / 0.5617 GB, free: 15.93 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001646/0.1494, allocations: 149.6 kB / 0.5618 GB, free: 15.73 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.962e-05/0.1494, allocations: 22.61 kB / 0.5618 GB, free: 15.7 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.575e-05/0.1495, allocations: 8.797 kB / 0.5619 GB, free: 15.69 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.247e-06/0.1495, allocations: 0 / 0.5619 GB, free: 15.69 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.833e-05/0.1495, allocations: 68.25 kB / 0.5619 GB, free: 15.61 MB / 430.1 MB Notification: Performance of pre-optimization done (n=1): time 9.21e-07/0.1495, allocations: 4 kB / 0.5619 GB, free: 15.61 MB / 430.1 MB Notification: Performance of matching and sorting (n=1): time 0.000188/0.1497, allocations: 59.41 kB / 0.562 GB, free: 15.54 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.708e-05/0.1498, allocations: 81.11 kB / 0.5621 GB, free: 15.44 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.917e-05/0.1498, allocations: 93.81 kB / 0.5621 GB, free: 15.34 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.828e-05/0.1499, allocations: 25.7 kB / 0.5622 GB, free: 15.3 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.149e-05/0.1499, allocations: 80.14 kB / 0.5622 GB, free: 15.22 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.249e-05/0.1499, allocations: 0 / 0.5622 GB, free: 15.22 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.744e-05/0.15, allocations: 17.7 kB / 0.5623 GB, free: 15.2 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000164/0.1501, allocations: 319 kB / 0.5626 GB, free: 14.88 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.919e-06/0.1501, allocations: 0 / 0.5626 GB, free: 14.88 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.33e-06/0.1501, allocations: 0 / 0.5626 GB, free: 14.88 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.247e-05/0.1502, allocations: 64.2 kB / 0.5626 GB, free: 14.8 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.1502, allocations: 3.938 kB / 0.5626 GB, free: 14.8 MB / 430.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.381e-05/0.1503, allocations: 63.39 kB / 0.5627 GB, free: 14.72 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.114e-05/0.1503, allocations: 29.7 kB / 0.5627 GB, free: 14.69 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.1503, allocations: 0 / 0.5627 GB, free: 14.69 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.494e-05/0.1504, allocations: 4.094 kB / 0.5627 GB, free: 14.68 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.056e-06/0.1504, allocations: 4 kB / 0.5627 GB, free: 14.68 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5e-06/0.1504, allocations: 0 / 0.5627 GB, free: 14.68 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.727e-05/0.1504, allocations: 4 kB / 0.5627 GB, free: 14.68 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.215e-06/0.1504, allocations: 3.984 kB / 0.5627 GB, free: 14.67 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 0.0001076/0.1505, allocations: 141.7 kB / 0.5629 GB, free: 14.52 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.415e-06/0.1505, allocations: 0 / 0.5629 GB, free: 14.52 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.316e-05/0.1505, allocations: 7.109 kB / 0.5629 GB, free: 14.51 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-06/0.1505, allocations: 0 / 0.5629 GB, free: 14.51 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.1505, allocations: 11.92 kB / 0.5629 GB, free: 14.5 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.1505, allocations: 0 / 0.5629 GB, free: 14.5 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001349/0.1507, allocations: 149.6 kB / 0.563 GB, free: 14.3 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.1507, allocations: 3.938 kB / 0.563 GB, free: 14.3 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.61e-07/0.1507, allocations: 0 / 0.563 GB, free: 14.3 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.1507, allocations: 0 / 0.563 GB, free: 14.3 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.187e-06/0.1507, allocations: 3.984 kB / 0.563 GB, free: 14.3 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.1507, allocations: 0 / 0.563 GB, free: 14.3 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.1507, allocations: 0 / 0.563 GB, free: 14.3 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001171/0.1508, allocations: 94.78 kB / 0.5631 GB, free: 14.18 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.249e-05/0.1508, allocations: 85.09 kB / 0.5632 GB, free: 14.08 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.278e-05/0.1509, allocations: 0 / 0.5632 GB, free: 14.08 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.749e-06/0.1509, allocations: 4 kB / 0.5632 GB, free: 14.07 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.129e-05/0.1509, allocations: 0 / 0.5632 GB, free: 14.07 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.939e-06/0.1509, allocations: 7.938 kB / 0.5632 GB, free: 14.07 MB / 430.1 MB Notification: Performance of sorting global known variables: time 8.888e-05/0.151, allocations: 75.28 kB / 0.5633 GB, free: 13.99 MB / 430.1 MB Notification: Performance of sort global known variables: time 6e-08/0.151, allocations: 0 / 0.5633 GB, free: 13.99 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0003894/0.1514, allocations: 55.73 kB / 0.5634 GB, free: 13.94 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.00198/0.1533, allocations: 1.066 MB / 0.5644 GB, free: 12.91 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.000107/0.1535, allocations: 63.39 kB / 0.5645 GB, free: 12.84 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.1535, allocations: 3.938 kB / 0.5645 GB, free: 12.83 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 4.605e-05/0.1535, allocations: 55.41 kB / 0.5645 GB, free: 12.77 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001285/0.1536, allocations: 4 kB / 0.5645 GB, free: 12.76 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004264/0.1541, allocations: 138.4 kB / 0.5646 GB, free: 12.59 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000328/0.1544, allocations: 0.6769 MB / 0.5653 GB, free: 11.88 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 7.174e-06/0.1544, allocations: 0 / 0.5653 GB, free: 11.88 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.991e-05/0.1544, allocations: 11.44 kB / 0.5653 GB, free: 11.87 MB / 430.1 MB Notification: Performance of SimCode: time 5.51e-07/0.1544, allocations: 0 / 0.5653 GB, free: 11.87 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02124/0.1756, allocations: 3.092 MB / 0.5683 GB, free: 8.859 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.098/8.274, allocations: 10.5 kB / 0.5683 GB, free: 8.852 MB / 430.1 MB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Math_TestColorMapToSvg_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Math_TestColorMapToSvg.fmu > ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg.pipe 2>&1) [Timeout 52.5] 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: 11.237108293978963]