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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.TestColorMapToSvg,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestColorMapToSvg",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestColorMapToSvg,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestColorMapToSvg",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001145/0.001145, allocations: 105.2 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001175/0.001175, allocations: 192 kB / 18.56 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.36/1.36, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1938/0.1938, allocations: 44.18 MB / 336.6 MB, free: 2.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 69.17 kB / 408.5 MB, free: 27.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1203/0.1215, allocations: 60.83 MB / 469.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001829/0.1234, allocations: 483.8 kB / 469.8 MB, free: 13.81 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001804/0.1252, allocations: 1.146 MB / 471 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.805e-05/0.1253, allocations: 0 / 471 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.168e-05/0.1253, allocations: 3.938 kB / 471 MB, free: 12.65 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.977e-06/0.1253, allocations: 0 / 471 MB, free: 12.65 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.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.001806/0.1271, allocations: 0.693 MB / 471.7 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.846e-05/0.1272, allocations: 4 kB / 471.7 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.077e-05/0.1272, allocations: 4 kB / 471.7 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.152e-05/0.1272, allocations: 0 / 471.7 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.385e-05/0.1273, allocations: 3.938 kB / 471.7 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.638e-06/0.1273, allocations: 4 kB / 471.7 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002717/0.13, allocations: 2.449 MB / 474.1 MB, free: 9.496 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.144e-06/0.13, allocations: 0 / 474.1 MB, free: 9.496 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.736e-05/0.13, allocations: 4 kB / 474.1 MB, free: 9.492 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004146/0.1305, allocations: 351.5 kB / 474.5 MB, free: 9.148 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.083e-06/0.1305, allocations: 8 kB / 474.5 MB, free: 9.141 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.522e-06/0.1305, allocations: 0 / 474.5 MB, free: 9.141 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.718e-06/0.1305, allocations: 0 / 474.5 MB, free: 9.141 MB / 350.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.0003878/0.1309, allocations: 377 kB / 474.9 MB, free: 8.719 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.419e-05/0.1309, allocations: 8.031 kB / 474.9 MB, free: 8.711 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.045e-05/0.131, allocations: 30.56 kB / 474.9 MB, free: 8.672 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.277e-05/0.131, allocations: 8 kB / 474.9 MB, free: 8.664 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.307e-05/0.1311, allocations: 159.1 kB / 475.1 MB, free: 8.469 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.052e-05/0.1311, allocations: 7.938 kB / 475.1 MB, free: 8.461 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.911e-06/0.1311, allocations: 0 / 475.1 MB, free: 8.461 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.381e-05/0.1312, allocations: 37.64 kB / 475.1 MB, free: 8.418 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.292e-06/0.1312, allocations: 0 / 475.1 MB, free: 8.418 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.57e-06/0.1312, allocations: 0 / 475.1 MB, free: 8.418 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.536e-06/0.1312, allocations: 0 / 475.1 MB, free: 8.418 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.792e-05/0.1312, allocations: 3.984 kB / 475.1 MB, free: 8.414 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001161/0.1314, allocations: 149.6 kB / 475.3 MB, free: 8.219 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.408e-05/0.1314, allocations: 22.58 kB / 475.3 MB, free: 8.188 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.28e-05/0.1314, allocations: 4.859 kB / 475.3 MB, free: 8.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.025e-06/0.1314, allocations: 4.094 kB / 475.3 MB, free: 8.176 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.591e-05/0.1315, allocations: 60.2 kB / 475.3 MB, free: 8.102 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.92e-07/0.1315, allocations: 0 / 475.3 MB, free: 8.102 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.000144/0.1316, allocations: 63.39 kB / 475.4 MB, free: 8.027 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.477e-05/0.1317, allocations: 77.11 kB / 475.5 MB, free: 7.934 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.22e-05/0.1317, allocations: 97.98 kB / 475.6 MB, free: 7.828 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.174e-05/0.1317, allocations: 25.7 kB / 475.6 MB, free: 7.797 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.119e-05/0.1318, allocations: 84.08 kB / 475.7 MB, free: 7.711 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.387e-05/0.1318, allocations: 0 / 475.7 MB, free: 7.711 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.066e-05/0.1318, allocations: 17.66 kB / 475.7 MB, free: 7.688 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.065e-05/0.1319, allocations: 314.8 kB / 476 MB, free: 7.371 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.085e-06/0.1319, allocations: 0 / 476 MB, free: 7.371 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.935e-06/0.132, allocations: 4 kB / 476 MB, free: 7.367 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.824e-05/0.132, allocations: 68.27 kB / 476.1 MB, free: 7.285 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.132, allocations: 3.938 kB / 476.1 MB, free: 7.281 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.698e-05/0.1321, allocations: 59.41 kB / 476.1 MB, free: 7.211 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.921e-05/0.1321, allocations: 37.69 kB / 476.2 MB, free: 7.168 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.987e-06/0.1321, allocations: 0 / 476.2 MB, free: 7.168 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.448e-06/0.1321, allocations: 0 / 476.2 MB, free: 7.168 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.42e-07/0.1321, allocations: 0 / 476.2 MB, free: 7.168 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.517e-06/0.1321, allocations: 0 / 476.2 MB, free: 7.168 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.31e-05/0.1322, allocations: 0 / 476.2 MB, free: 7.168 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.019e-06/0.1322, allocations: 4.031 kB / 476.2 MB, free: 7.164 MB / 350.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 6.655e-05/0.1322, allocations: 139.5 kB / 476.3 MB, free: 7.012 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.604e-06/0.1323, allocations: 0 / 476.3 MB, free: 7.012 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.256e-06/0.1323, allocations: 7.078 kB / 476.3 MB, free: 7.008 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.494e-06/0.1323, allocations: 3.984 kB / 476.3 MB, free: 7.004 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.293e-06/0.1323, allocations: 4 kB / 476.3 MB, free: 7 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.693e-06/0.1323, allocations: 7.938 kB / 476.3 MB, free: 6.992 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.014e-05/0.1324, allocations: 149.6 kB / 476.5 MB, free: 6.797 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.1324, allocations: 0 / 476.5 MB, free: 6.797 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.62e-07/0.1324, allocations: 4 kB / 476.5 MB, free: 6.793 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.332e-06/0.1324, allocations: 0 / 476.5 MB, free: 6.793 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.009e-06/0.1324, allocations: 0 / 476.5 MB, free: 6.793 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.1324, allocations: 4 kB / 476.5 MB, free: 6.789 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.1324, allocations: 0 / 476.5 MB, free: 6.789 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.843e-05/0.1325, allocations: 98.66 kB / 476.6 MB, free: 6.668 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.701e-05/0.1325, allocations: 77.11 kB / 476.7 MB, free: 6.574 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.27e-05/0.1326, allocations: 7.984 kB / 476.7 MB, free: 6.566 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.917e-06/0.1326, allocations: 4.031 kB / 476.7 MB, free: 6.562 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.396e-06/0.1326, allocations: 0 / 476.7 MB, free: 6.562 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.545e-06/0.1326, allocations: 0 / 476.7 MB, free: 6.562 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.002e-05/0.1326, allocations: 75.28 kB / 476.7 MB, free: 6.488 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1326, allocations: 3.938 kB / 476.8 MB, free: 6.484 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003332/0.133, allocations: 55.92 kB / 476.8 MB, free: 6.43 MB / 350.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.001871/0.1349, allocations: 1.068 MB / 477.9 MB, free: 5.402 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.053e-05/0.135, allocations: 63.39 kB / 477.9 MB, free: 5.328 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.135, allocations: 0 / 477.9 MB, free: 5.328 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.615e-05/0.135, allocations: 55.41 kB / 478 MB, free: 5.262 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001135/0.1351, allocations: 0 / 478 MB, free: 5.262 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003197/0.1354, allocations: 146.5 kB / 478.1 MB, free: 5.078 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001917/0.1356, allocations: 0.669 MB / 478.8 MB, free: 4.383 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.859e-06/0.1357, allocations: 0 / 478.8 MB, free: 4.383 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.123e-05/0.1357, allocations: 11.44 kB / 478.8 MB, free: 4.375 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1357, allocations: 0 / 478.8 MB, free: 4.375 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0537/0.1894, allocations: 3.018 MB / 481.8 MB, free: 1.402 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.623/9.813, allocations: 4.969 kB / 481.8 MB, free: 1.398 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_TestColorMapToSvg_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_TestColorMapToSvg.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestColorMapToSvg/TestColorMapToSvg.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches