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.001268/0.001269, allocations: 103.2 kB / 17.32 MB, free: 6.027 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.001031/0.001031, allocations: 193.3 kB / 18.25 MB, free: 5.113 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.329/1.329, allocations: 222.9 MB / 241.9 MB, free: 13.7 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.1961/0.1961, allocations: 44.18 MB / 336.3 MB, free: 2.719 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00123/0.00123, allocations: 60.81 kB / 408 MB, free: 27.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1309/0.1322, allocations: 60.83 MB / 468.8 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.002054/0.1343, allocations: 0.5489 MB / 469.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00205/0.1364, allocations: 1.15 MB / 470.5 MB, free: 12.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.752e-05/0.1364, allocations: 0 / 470.5 MB, free: 12.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.396e-05/0.1365, allocations: 0 / 470.5 MB, free: 12.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.37e-06/0.1365, allocations: 0 / 470.5 MB, free: 12.91 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.002016/0.1385, allocations: 0.6508 MB / 471.2 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.589e-05/0.1386, allocations: 0 / 471.2 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.878e-05/0.1386, allocations: 4 kB / 471.2 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.44e-05/0.1386, allocations: 0 / 471.2 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.162e-05/0.1387, allocations: 7.938 kB / 471.2 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.143e-06/0.1387, allocations: 0 / 471.2 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003124/0.1418, allocations: 2.605 MB / 473.8 MB, free: 9.645 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.222e-05/0.1418, allocations: 3.984 kB / 473.8 MB, free: 9.641 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.991e-05/0.1419, allocations: 0 / 473.8 MB, free: 9.641 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005723/0.1424, allocations: 431.3 kB / 474.2 MB, free: 9.219 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.1425, allocations: 4 kB / 474.2 MB, free: 9.215 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.1425, allocations: 0 / 474.2 MB, free: 9.215 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.702e-05/0.1425, allocations: 0 / 474.2 MB, free: 9.215 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.0004554/0.1429, allocations: 381 kB / 474.6 MB, free: 8.789 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.511e-05/0.143, allocations: 8.031 kB / 474.6 MB, free: 8.781 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.176e-05/0.143, allocations: 34.56 kB / 474.6 MB, free: 8.738 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.703e-05/0.1431, allocations: 3.938 kB / 474.6 MB, free: 8.734 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001082/0.1432, allocations: 167 kB / 474.8 MB, free: 8.531 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.021e-05/0.1432, allocations: 4 kB / 474.8 MB, free: 8.527 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.939e-06/0.1432, allocations: 0 / 474.8 MB, free: 8.527 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001085/0.1433, allocations: 29.7 kB / 474.8 MB, free: 8.492 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.043e-06/0.1433, allocations: 0 / 474.8 MB, free: 8.492 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.267e-06/0.1434, allocations: 4 kB / 474.8 MB, free: 8.488 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.959e-06/0.1434, allocations: 0 / 474.8 MB, free: 8.488 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.006e-05/0.1434, allocations: 7.875 kB / 474.8 MB, free: 8.48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001341/0.1435, allocations: 149.7 kB / 475 MB, free: 8.285 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.257e-05/0.1436, allocations: 22.56 kB / 475 MB, free: 8.254 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.48e-05/0.1436, allocations: 4.859 kB / 475 MB, free: 8.246 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.035e-06/0.1436, allocations: 4.094 kB / 475 MB, free: 8.242 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.647e-05/0.1437, allocations: 56.27 kB / 475.1 MB, free: 8.172 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.002e-06/0.1437, allocations: 0 / 475.1 MB, free: 8.172 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001699/0.1439, allocations: 71.33 kB / 475.1 MB, free: 8.09 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.831e-05/0.1439, allocations: 81.05 kB / 475.2 MB, free: 7.992 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.859e-05/0.144, allocations: 97.92 kB / 475.3 MB, free: 7.887 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.189e-05/0.144, allocations: 25.7 kB / 475.3 MB, free: 7.855 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.388e-05/0.144, allocations: 80.14 kB / 475.4 MB, free: 7.773 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.343e-05/0.144, allocations: 0 / 475.4 MB, free: 7.773 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.467e-05/0.1441, allocations: 13.72 kB / 475.4 MB, free: 7.754 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000107/0.1442, allocations: 314.8 kB / 475.7 MB, free: 7.438 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.257e-06/0.1442, allocations: 0 / 475.7 MB, free: 7.438 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.225e-06/0.1442, allocations: 4 kB / 475.7 MB, free: 7.434 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.288e-05/0.1443, allocations: 68.25 kB / 475.8 MB, free: 7.352 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.1443, allocations: 7.938 kB / 475.8 MB, free: 7.344 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.179e-05/0.1444, allocations: 55.41 kB / 475.9 MB, free: 7.277 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.151e-05/0.1444, allocations: 37.7 kB / 475.9 MB, free: 7.234 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-06/0.1444, allocations: 0 / 475.9 MB, free: 7.234 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.07e-05/0.1444, allocations: 0 / 475.9 MB, free: 7.234 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.82e-07/0.1444, allocations: 0 / 475.9 MB, free: 7.234 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.923e-06/0.1444, allocations: 3.938 kB / 475.9 MB, free: 7.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.678e-05/0.1445, allocations: 0 / 475.9 MB, free: 7.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.092e-06/0.1445, allocations: 0 / 475.9 MB, free: 7.23 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 7.654e-05/0.1446, allocations: 143.6 kB / 476 MB, free: 7.074 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.364e-06/0.1446, allocations: 0 / 476 MB, free: 7.074 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.867e-06/0.1446, allocations: 7.078 kB / 476.1 MB, free: 7.07 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.1446, allocations: 3.984 kB / 476.1 MB, free: 7.066 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.25e-05/0.1446, allocations: 7.938 kB / 476.1 MB, free: 7.059 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.783e-06/0.1446, allocations: 0 / 476.1 MB, free: 7.059 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.522e-05/0.1447, allocations: 145.7 kB / 476.2 MB, free: 6.867 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.1447, allocations: 0 / 476.2 MB, free: 6.867 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.01e-07/0.1447, allocations: 0 / 476.2 MB, free: 6.867 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.262e-06/0.1447, allocations: 4 kB / 476.2 MB, free: 6.863 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.475e-06/0.1447, allocations: 4 kB / 476.2 MB, free: 6.859 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.1447, allocations: 0 / 476.2 MB, free: 6.859 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.419e-06/0.1447, allocations: 7.875 kB / 476.2 MB, free: 6.852 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.772e-05/0.1448, allocations: 90.73 kB / 476.3 MB, free: 6.738 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.417e-05/0.1449, allocations: 81.11 kB / 476.4 MB, free: 6.641 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.126e-05/0.1449, allocations: 0 / 476.4 MB, free: 6.641 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.251e-05/0.1449, allocations: 8.031 kB / 476.4 MB, free: 6.633 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.021e-05/0.1449, allocations: 7.938 kB / 476.4 MB, free: 6.625 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.206e-06/0.145, allocations: 3.938 kB / 476.4 MB, free: 6.621 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.315e-05/0.145, allocations: 75.28 kB / 476.5 MB, free: 6.547 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.145, allocations: 4 kB / 476.5 MB, free: 6.543 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003141/0.1453, allocations: 47.98 kB / 476.5 MB, free: 6.496 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.002088/0.1474, allocations: 1.066 MB / 477.6 MB, free: 5.469 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001628/0.1476, allocations: 63.41 kB / 477.7 MB, free: 5.395 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.1476, allocations: 4.062 kB / 477.7 MB, free: 5.391 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.224e-05/0.1476, allocations: 55.41 kB / 477.7 MB, free: 5.324 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001209/0.1478, allocations: 3.938 kB / 477.7 MB, free: 5.32 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003681/0.1481, allocations: 138.6 kB / 477.9 MB, free: 5.145 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002619/0.1484, allocations: 0.669 MB / 478.5 MB, free: 4.449 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.372e-06/0.1484, allocations: 0 / 478.5 MB, free: 4.449 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.406e-05/0.1485, allocations: 11.44 kB / 478.5 MB, free: 4.441 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1485, allocations: 3.938 kB / 478.5 MB, free: 4.438 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01496/0.1634, allocations: 2.956 MB / 481.5 MB, free: 1.574 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002382/0.1637, allocations: 231.9 kB / 481.7 MB, free: 1.32 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.021/2.185, allocations: 0 / 481.7 MB, free: 1.32 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