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.0007744/0.0007745, allocations: 93.09 kB / 17.35 MB, free: 6.371 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.0009676/0.000968, allocations: 172.4 kB / 18.25 MB, free: 5.523 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.321/1.321, allocations: 223.3 MB / 242.3 MB, free: 228 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2055/0.2055, allocations: 44.24 MB / 337.7 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000437/0.0004373, allocations: 9.031 kB / 410.4 MB, free: 27.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.118/0.1184, allocations: 61.93 MB / 472.4 MB, free: 13.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.0005507/0.119, allocations: 214.9 kB / 472.6 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001922/0.1209, allocations: 1.177 MB / 473.7 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.167e-06/0.121, allocations: 0 / 473.7 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.49e-05/0.121, allocations: 4 kB / 473.7 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.809e-06/0.121, allocations: 3.938 kB / 473.7 MB, free: 11.86 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.00188/0.1229, allocations: 0.629 MB / 474.4 MB, free: 11.24 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 2.767e-05/0.1229, allocations: 0 / 474.4 MB, free: 11.24 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.185e-05/0.123, allocations: 4 kB / 474.4 MB, free: 11.24 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.292e-05/0.123, allocations: 0 / 474.4 MB, free: 11.24 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.841e-05/0.123, allocations: 7.922 kB / 474.4 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.875e-06/0.123, allocations: 0 / 474.4 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002849/0.1259, allocations: 2.597 MB / 477 MB, free: 8.629 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.026e-06/0.1259, allocations: 0 / 477 MB, free: 8.629 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.897e-05/0.1259, allocations: 25.7 kB / 477 MB, free: 8.598 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005414/0.1265, allocations: 427.4 kB / 477.4 MB, free: 8.18 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.1265, allocations: 4 kB / 477.4 MB, free: 8.176 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1265, allocations: 0 / 477.4 MB, free: 8.176 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.887e-06/0.1265, allocations: 0 / 477.4 MB, free: 8.176 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.0004235/0.1269, allocations: 381 kB / 477.8 MB, free: 7.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.175e-05/0.127, allocations: 8.031 kB / 477.8 MB, free: 7.742 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.401e-05/0.127, allocations: 34.56 kB / 477.8 MB, free: 7.699 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.297e-05/0.1271, allocations: 3.938 kB / 477.8 MB, free: 7.695 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.779e-05/0.1272, allocations: 167 kB / 478 MB, free: 7.492 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.095e-06/0.1272, allocations: 0 / 478 MB, free: 7.492 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.338e-06/0.1272, allocations: 0 / 478 MB, free: 7.492 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.088e-05/0.1273, allocations: 33.7 kB / 478 MB, free: 7.453 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.093e-06/0.1273, allocations: 0 / 478 MB, free: 7.453 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.905e-06/0.1273, allocations: 0 / 478 MB, free: 7.453 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.378e-06/0.1273, allocations: 0 / 478 MB, free: 7.453 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.911e-05/0.1273, allocations: 7.938 kB / 478.1 MB, free: 7.445 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000134/0.1275, allocations: 149.7 kB / 478.2 MB, free: 7.25 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.265e-05/0.1275, allocations: 18.52 kB / 478.2 MB, free: 7.223 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.504e-05/0.1275, allocations: 8.859 kB / 478.2 MB, free: 7.211 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.191e-06/0.1275, allocations: 4.094 kB / 478.2 MB, free: 7.207 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.721e-05/0.1276, allocations: 60.2 kB / 478.3 MB, free: 7.133 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 2.335e-06/0.1276, allocations: 3.984 kB / 478.3 MB, free: 7.129 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001586/0.1278, allocations: 71.33 kB / 478.4 MB, free: 7.047 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.814e-05/0.1278, allocations: 81.05 kB / 478.4 MB, free: 6.949 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.368e-05/0.1279, allocations: 89.86 kB / 478.5 MB, free: 6.852 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.263e-05/0.1279, allocations: 25.83 kB / 478.6 MB, free: 6.82 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.572e-05/0.1279, allocations: 88.08 kB / 478.6 MB, free: 6.73 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.558e-05/0.1279, allocations: 0 / 478.6 MB, free: 6.73 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.173e-05/0.128, allocations: 13.72 kB / 478.7 MB, free: 6.711 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.23e-05/0.1281, allocations: 314.8 kB / 479 MB, free: 6.395 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.604e-06/0.1281, allocations: 0 / 479 MB, free: 6.395 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.699e-06/0.1281, allocations: 0 / 479 MB, free: 6.395 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.678e-05/0.1281, allocations: 60.27 kB / 479 MB, free: 6.32 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.1281, allocations: 64 / 479 MB, free: 6.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.84e-05/0.1282, allocations: 71.33 kB / 479.1 MB, free: 6.238 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.089e-05/0.1283, allocations: 33.7 kB / 479.1 MB, free: 6.199 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.968e-06/0.1283, allocations: 0 / 479.1 MB, free: 6.199 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.117e-06/0.1283, allocations: 0 / 479.1 MB, free: 6.199 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.124e-06/0.1283, allocations: 4 kB / 479.1 MB, free: 6.195 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.6e-06/0.1283, allocations: 3.938 kB / 479.1 MB, free: 6.191 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.376e-05/0.1283, allocations: 0 / 479.1 MB, free: 6.191 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.851e-06/0.1283, allocations: 0 / 479.1 MB, free: 6.191 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.93e-05/0.1284, allocations: 143.6 kB / 479.3 MB, free: 6.035 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.304e-06/0.1284, allocations: 0 / 479.3 MB, free: 6.035 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.684e-06/0.1284, allocations: 7.078 kB / 479.3 MB, free: 6.031 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.1284, allocations: 0 / 479.3 MB, free: 6.031 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.1284, allocations: 3.938 kB / 479.3 MB, free: 6.027 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.1285, allocations: 0 / 479.3 MB, free: 6.027 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.027e-05/0.1285, allocations: 149.7 kB / 479.4 MB, free: 5.832 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.1285, allocations: 0 / 479.4 MB, free: 5.832 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.002e-06/0.1285, allocations: 0 / 479.4 MB, free: 5.832 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.1286, allocations: 0 / 479.4 MB, free: 5.832 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.991e-06/0.1286, allocations: 0 / 479.4 MB, free: 5.832 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.765e-06/0.1286, allocations: 8 kB / 479.4 MB, free: 5.824 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.1286, allocations: 3.938 kB / 479.4 MB, free: 5.82 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.577e-05/0.1287, allocations: 98.67 kB / 479.5 MB, free: 5.699 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.827e-05/0.1287, allocations: 77.11 kB / 479.6 MB, free: 5.605 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.174e-05/0.1287, allocations: 0 / 479.6 MB, free: 5.605 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.084e-05/0.1287, allocations: 4 kB / 479.6 MB, free: 5.602 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.512e-05/0.1288, allocations: 7.938 kB / 479.6 MB, free: 5.594 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.915e-06/0.1288, allocations: 4.031 kB / 479.6 MB, free: 5.59 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.647e-05/0.1288, allocations: 75.28 kB / 479.7 MB, free: 5.516 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1288, allocations: 7.875 kB / 479.7 MB, free: 5.508 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003864/0.1292, allocations: 47.98 kB / 479.8 MB, free: 5.461 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.001977/0.1312, allocations: 1.066 MB / 480.8 MB, free: 4.434 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.896e-05/0.1313, allocations: 63.34 kB / 480.9 MB, free: 4.359 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.1313, allocations: 0 / 480.9 MB, free: 4.359 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.706e-05/0.1313, allocations: 59.47 kB / 480.9 MB, free: 4.289 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001316/0.1315, allocations: 7.938 kB / 480.9 MB, free: 4.281 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003375/0.1318, allocations: 136.3 kB / 481.1 MB, free: 4.105 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002053/0.132, allocations: 0.6731 MB / 481.8 MB, free: 3.406 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.13e-06/0.132, allocations: 0 / 481.8 MB, free: 3.406 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.34e-05/0.132, allocations: 7.438 kB / 481.8 MB, free: 3.402 MB / 350.1 MB Notification: Performance of SimCode: time 3.4e-07/0.1321, allocations: 0 / 481.8 MB, free: 3.402 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01248/0.1445, allocations: 2.828 MB / 484.6 MB, free: 0.668 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002142/0.1448, allocations: 228.5 kB / 484.8 MB, free: 424 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.838/1.982, allocations: 3.938 kB / 484.8 MB, free: 420 kB / 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