Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Math_TestColorMapToSvg",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestColorMapToSvg,fileNamePrefix="ModelicaTest_3_2_3_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.001439/0.00144, allocations: 107.7 kB / 16.41 MB, free: 6.406 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.001345/0.001345, allocations: 189.5 kB / 17.34 MB, free: 5.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.456/1.456, allocations: 205.1 MB / 223.2 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2315/0.2315, allocations: 43.52 MB / 314.1 MB, free: 456 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002031/0.002031, allocations: 73.45 kB / 441.3 MB, free: 6.168 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.13/0.132, allocations: 57.79 MB / 499.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001647/0.1337, allocations: 0.4949 MB / 499.6 MB, free: 11.81 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002328/0.1361, allocations: 1.154 MB / 0.489 GB, free: 10.65 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.474e-05/0.1361, allocations: 0 / 0.489 GB, free: 10.65 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.084e-05/0.1362, allocations: 0 / 0.489 GB, free: 10.65 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.452e-06/0.1362, allocations: 0 / 0.489 GB, free: 10.65 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002507/0.1387, allocations: 0.669 MB / 0.4897 GB, free: 9.984 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.719e-05/0.1388, allocations: 7.984 kB / 0.4897 GB, free: 9.977 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.813e-05/0.1388, allocations: 4 kB / 0.4897 GB, free: 9.973 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.774e-05/0.1388, allocations: 0 / 0.4897 GB, free: 9.973 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.427e-05/0.1389, allocations: 4 kB / 0.4897 GB, free: 9.969 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.321e-06/0.1389, allocations: 4 kB / 0.4897 GB, free: 9.965 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00331/0.1422, allocations: 2.445 MB / 0.4921 GB, free: 7.512 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.795e-06/0.1422, allocations: 0 / 0.4921 GB, free: 7.512 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.569e-05/0.1422, allocations: 4 kB / 0.4921 GB, free: 7.508 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005219/0.1428, allocations: 359.3 kB / 0.4924 GB, free: 7.156 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.1428, allocations: 0 / 0.4924 GB, free: 7.156 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1428, allocations: 0 / 0.4924 GB, free: 7.156 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.262e-06/0.1428, allocations: 4 kB / 0.4924 GB, free: 7.152 MB / 382.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.0006467/0.1435, allocations: 384.6 kB / 0.4928 GB, free: 6.723 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.41e-05/0.1435, allocations: 11.89 kB / 0.4928 GB, free: 6.711 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.237e-05/0.1436, allocations: 30.56 kB / 0.4928 GB, free: 6.672 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.892e-05/0.1436, allocations: 3.953 kB / 0.4928 GB, free: 6.668 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000127/0.1437, allocations: 167 kB / 0.493 GB, free: 6.465 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.442e-05/0.1437, allocations: 3.938 kB / 0.493 GB, free: 6.461 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.485e-05/0.1438, allocations: 7.938 kB / 0.493 GB, free: 6.453 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.955e-05/0.1439, allocations: 29.69 kB / 0.493 GB, free: 6.418 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.606e-06/0.1439, allocations: 4 kB / 0.493 GB, free: 6.414 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.857e-06/0.1439, allocations: 3.984 kB / 0.493 GB, free: 6.41 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.1439, allocations: 4 kB / 0.493 GB, free: 6.406 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.642e-05/0.1439, allocations: 0 / 0.493 GB, free: 6.406 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000162/0.1441, allocations: 149.6 kB / 0.4932 GB, free: 6.211 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.655e-05/0.1442, allocations: 22.55 kB / 0.4932 GB, free: 6.18 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.759e-05/0.1442, allocations: 8.859 kB / 0.4932 GB, free: 6.168 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.294e-05/0.1442, allocations: 7.984 kB / 0.4932 GB, free: 6.16 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.764e-05/0.1443, allocations: 56.27 kB / 0.4933 GB, free: 6.09 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.062e-06/0.1443, allocations: 0 / 0.4933 GB, free: 6.09 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002011/0.1445, allocations: 63.47 kB / 0.4933 GB, free: 6.016 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.647e-05/0.1446, allocations: 77.11 kB / 0.4934 GB, free: 5.922 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.461e-05/0.1446, allocations: 93.86 kB / 0.4935 GB, free: 5.82 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.239e-05/0.1447, allocations: 29.69 kB / 0.4935 GB, free: 5.785 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.69e-05/0.1447, allocations: 80.14 kB / 0.4936 GB, free: 5.703 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.969e-05/0.1448, allocations: 8.062 kB / 0.4936 GB, free: 5.695 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.809e-05/0.1448, allocations: 9.719 kB / 0.4936 GB, free: 5.68 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001629/0.145, allocations: 318.8 kB / 0.4939 GB, free: 5.359 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.04e-05/0.145, allocations: 0 / 0.4939 GB, free: 5.359 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.36e-06/0.145, allocations: 0 / 0.4939 GB, free: 5.359 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.712e-05/0.1451, allocations: 60.27 kB / 0.494 GB, free: 5.285 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.1451, allocations: 3.938 kB / 0.494 GB, free: 5.281 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.726e-05/0.1451, allocations: 67.45 kB / 0.494 GB, free: 5.203 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.943e-05/0.1452, allocations: 29.7 kB / 0.4941 GB, free: 5.168 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.565e-06/0.1452, allocations: 0 / 0.4941 GB, free: 5.168 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.331e-05/0.1452, allocations: 3.938 kB / 0.4941 GB, free: 5.164 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.21e-07/0.1452, allocations: 0 / 0.4941 GB, free: 5.164 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.077e-05/0.1452, allocations: 7.938 kB / 0.4941 GB, free: 5.156 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.705e-05/0.1453, allocations: 0 / 0.4941 GB, free: 5.156 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.164e-06/0.1453, allocations: 0 / 0.4941 GB, free: 5.156 MB / 382.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.0001223/0.1454, allocations: 151.4 kB / 0.4942 GB, free: 4.992 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.384e-06/0.1454, allocations: 4.031 kB / 0.4942 GB, free: 4.988 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.175e-05/0.1454, allocations: 7.125 kB / 0.4942 GB, free: 4.98 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-06/0.1454, allocations: 0 / 0.4942 GB, free: 4.98 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.1455, allocations: 0 / 0.4942 GB, free: 4.98 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.254e-06/0.1455, allocations: 0 / 0.4942 GB, free: 4.98 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001321/0.1456, allocations: 149.6 kB / 0.4944 GB, free: 4.785 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.1456, allocations: 0 / 0.4944 GB, free: 4.785 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.186e-06/0.1456, allocations: 3.984 kB / 0.4944 GB, free: 4.781 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.42e-07/0.1456, allocations: 0 / 0.4944 GB, free: 4.781 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.464e-06/0.1456, allocations: 3.938 kB / 0.4944 GB, free: 4.777 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.42e-07/0.1456, allocations: 0 / 0.4944 GB, free: 4.777 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1456, allocations: 4 kB / 0.4944 GB, free: 4.773 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001169/0.1458, allocations: 94.77 kB / 0.4945 GB, free: 4.656 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.642e-05/0.1458, allocations: 77.11 kB / 0.4946 GB, free: 4.562 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.122e-05/0.1458, allocations: 0 / 0.4946 GB, free: 4.562 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.312e-05/0.1459, allocations: 4 kB / 0.4946 GB, free: 4.559 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.632e-05/0.1459, allocations: 3.938 kB / 0.4946 GB, free: 4.555 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.585e-06/0.1459, allocations: 0 / 0.4946 GB, free: 4.555 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.053e-05/0.1459, allocations: 79.31 kB / 0.4946 GB, free: 4.477 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1459, allocations: 0 / 0.4946 GB, free: 4.477 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003481/0.1463, allocations: 59.73 kB / 0.4947 GB, free: 4.418 MB / 382.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.001956/0.1483, allocations: 1.055 MB / 0.4957 GB, free: 3.348 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001266/0.1484, allocations: 67.39 kB / 0.4958 GB, free: 3.27 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.1484, allocations: 3.938 kB / 0.4958 GB, free: 3.266 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 5.753e-05/0.1485, allocations: 55.41 kB / 0.4958 GB, free: 3.199 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000132/0.1486, allocations: 3.938 kB / 0.4958 GB, free: 3.195 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003815/0.149, allocations: 138.3 kB / 0.496 GB, free: 3.02 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003542/0.1494, allocations: 0.6729 MB / 0.4966 GB, free: 2.32 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.843e-06/0.1494, allocations: 0 / 0.4966 GB, free: 2.32 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.825e-05/0.1494, allocations: 11.44 kB / 0.4966 GB, free: 2.309 MB / 382.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1494, allocations: 128 / 0.4966 GB, free: 2.309 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02815/0.1776, allocations: 3.045 MB / 0.4996 GB, free: 15.24 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.07/8.247, allocations: 3.938 kB / 0.4996 GB, free: 15.24 MB / 398.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.TestColorMapToSvg.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.TestColorMapToSvg.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.TestColorMapToSvg.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.TestColorMapToSvg.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Math.TestColorMapToSvg_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_3_2_3_ModelicaTest_Math_TestColorMapToSvg.fmu > ModelicaTest_3.2.3_ModelicaTest.Math.TestColorMapToSvg.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Math.TestColorMapToSvg_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/TestColorMapToSvg/TestColorMapToSvg.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Math.TestColorMapToSvg.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches