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.001823/0.001823, allocations: 100.5 kB / 16.4 MB, free: 6.496 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.001912/0.001912, allocations: 192.1 kB / 17.34 MB, free: 5.77 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.444/1.444, allocations: 205.1 MB / 223.2 MB, free: 12.25 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.2107/0.2107, allocations: 43.52 MB / 314.1 MB, free: 460 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.001693/0.001694, allocations: 63.91 kB / 441.3 MB, free: 6.195 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1296/0.1313, allocations: 57.8 MB / 499.1 MB, free: 12.32 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.002147/0.1335, allocations: 494.8 kB / 499.6 MB, free: 11.84 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002179/0.1357, allocations: 1.154 MB / 0.489 GB, free: 10.68 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.337e-05/0.1357, allocations: 0 / 0.489 GB, free: 10.68 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.578e-05/0.1358, allocations: 0 / 0.489 GB, free: 10.68 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.901e-06/0.1358, allocations: 0 / 0.489 GB, free: 10.68 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002466/0.1383, allocations: 0.6768 MB / 0.4896 GB, free: 10.01 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.264e-05/0.1383, allocations: 4 kB / 0.4896 GB, free: 10 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.277e-05/0.1384, allocations: 8 kB / 0.4897 GB, free: 9.996 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.508e-05/0.1384, allocations: 0 / 0.4897 GB, free: 9.996 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.734e-05/0.1384, allocations: 0 / 0.4897 GB, free: 9.996 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.192e-06/0.1384, allocations: 0 / 0.4897 GB, free: 9.996 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003213/0.1417, allocations: 2.456 MB / 0.4921 GB, free: 7.531 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.125e-06/0.1417, allocations: 0 / 0.4921 GB, free: 7.531 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.919e-05/0.1417, allocations: 0 / 0.4921 GB, free: 7.531 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004738/0.1422, allocations: 355.5 kB / 0.4924 GB, free: 7.184 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.1422, allocations: 4 kB / 0.4924 GB, free: 7.18 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.1422, allocations: 0 / 0.4924 GB, free: 7.18 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.021e-06/0.1422, allocations: 0 / 0.4924 GB, free: 7.18 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.0004949/0.1427, allocations: 388.9 kB / 0.4928 GB, free: 6.746 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.26e-05/0.1428, allocations: 11.89 kB / 0.4928 GB, free: 6.734 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.498e-05/0.1428, allocations: 34.56 kB / 0.4928 GB, free: 6.691 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.635e-05/0.1429, allocations: 0 / 0.4928 GB, free: 6.691 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001114/0.143, allocations: 167.1 kB / 0.493 GB, free: 6.488 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.059e-05/0.143, allocations: 7.875 kB / 0.493 GB, free: 6.48 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.087e-05/0.143, allocations: 0 / 0.493 GB, free: 6.48 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.471e-05/0.1431, allocations: 33.64 kB / 0.493 GB, free: 6.441 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.296e-06/0.1431, allocations: 0 / 0.493 GB, free: 6.441 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.744e-06/0.1431, allocations: 0 / 0.493 GB, free: 6.441 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.519e-06/0.1431, allocations: 4 kB / 0.493 GB, free: 6.438 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.237e-05/0.1432, allocations: 7.969 kB / 0.493 GB, free: 6.43 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001606/0.1433, allocations: 153.6 kB / 0.4932 GB, free: 6.23 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.238e-05/0.1434, allocations: 18.52 kB / 0.4932 GB, free: 6.203 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.96e-05/0.1434, allocations: 8.859 kB / 0.4932 GB, free: 6.191 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.298e-06/0.1434, allocations: 4.094 kB / 0.4932 GB, free: 6.188 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.792e-05/0.1435, allocations: 56.27 kB / 0.4933 GB, free: 6.117 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.172e-06/0.1435, allocations: 4 kB / 0.4933 GB, free: 6.113 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001929/0.1437, allocations: 67.38 kB / 0.4933 GB, free: 6.035 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.946e-05/0.1438, allocations: 77.11 kB / 0.4934 GB, free: 5.941 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.491e-05/0.1438, allocations: 89.86 kB / 0.4935 GB, free: 5.844 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.633e-05/0.1438, allocations: 25.7 kB / 0.4935 GB, free: 5.812 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.296e-05/0.1439, allocations: 84.14 kB / 0.4936 GB, free: 5.727 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.958e-05/0.1439, allocations: 0 / 0.4936 GB, free: 5.727 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.18e-05/0.1439, allocations: 13.72 kB / 0.4936 GB, free: 5.707 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001175/0.1441, allocations: 322.9 kB / 0.4939 GB, free: 5.383 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.908e-06/0.1441, allocations: 0 / 0.4939 GB, free: 5.383 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.859e-06/0.1441, allocations: 4 kB / 0.4939 GB, free: 5.379 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.903e-05/0.1442, allocations: 56.27 kB / 0.494 GB, free: 5.309 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.1442, allocations: 7.938 kB / 0.494 GB, free: 5.301 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.242e-05/0.1443, allocations: 59.41 kB / 0.494 GB, free: 5.23 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.974e-05/0.1443, allocations: 37.69 kB / 0.4941 GB, free: 5.188 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.1443, allocations: 0 / 0.4941 GB, free: 5.188 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.524e-05/0.1443, allocations: 4.094 kB / 0.4941 GB, free: 5.184 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.222e-06/0.1443, allocations: 3.938 kB / 0.4941 GB, free: 5.18 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.18e-06/0.1443, allocations: 0 / 0.4941 GB, free: 5.18 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.895e-05/0.1444, allocations: 0 / 0.4941 GB, free: 5.18 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.224e-06/0.1444, allocations: 3.938 kB / 0.4941 GB, free: 5.176 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.0001054/0.1445, allocations: 143.4 kB / 0.4942 GB, free: 5.02 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.025e-05/0.1445, allocations: 0 / 0.4942 GB, free: 5.02 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.22e-05/0.1445, allocations: 3.125 kB / 0.4942 GB, free: 5.016 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.243e-06/0.1445, allocations: 0 / 0.4942 GB, free: 5.016 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.896e-06/0.1445, allocations: 11.98 kB / 0.4942 GB, free: 5.004 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.1446, allocations: 0 / 0.4942 GB, free: 5.004 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001157/0.1447, allocations: 149.6 kB / 0.4944 GB, free: 4.809 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.1447, allocations: 0 / 0.4944 GB, free: 4.809 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.61e-07/0.1447, allocations: 0 / 0.4944 GB, free: 4.809 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.1447, allocations: 0 / 0.4944 GB, free: 4.809 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.127e-06/0.1447, allocations: 4 kB / 0.4944 GB, free: 4.805 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.1447, allocations: 3.938 kB / 0.4944 GB, free: 4.801 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.1447, allocations: 0 / 0.4944 GB, free: 4.801 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001017/0.1448, allocations: 94.77 kB / 0.4945 GB, free: 4.684 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.707e-05/0.1449, allocations: 81.11 kB / 0.4945 GB, free: 4.586 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.23e-05/0.1449, allocations: 0 / 0.4945 GB, free: 4.586 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.206e-05/0.1449, allocations: 3.984 kB / 0.4945 GB, free: 4.582 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.573e-05/0.1449, allocations: 3.938 kB / 0.4946 GB, free: 4.578 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.06e-06/0.1449, allocations: 4 kB / 0.4946 GB, free: 4.574 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.945e-05/0.145, allocations: 75.28 kB / 0.4946 GB, free: 4.5 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.145, allocations: 4 kB / 0.4946 GB, free: 4.496 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000396/0.1454, allocations: 52.02 kB / 0.4947 GB, free: 4.445 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.001668/0.1471, allocations: 1.06 MB / 0.4957 GB, free: 3.375 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001032/0.1472, allocations: 59.39 kB / 0.4958 GB, free: 3.305 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.1472, allocations: 4 kB / 0.4958 GB, free: 3.301 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.358e-05/0.1472, allocations: 59.41 kB / 0.4958 GB, free: 3.23 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001268/0.1474, allocations: 4 kB / 0.4958 GB, free: 3.227 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000386/0.1478, allocations: 142.5 kB / 0.496 GB, free: 3.047 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00024/0.148, allocations: 0.669 MB / 0.4966 GB, free: 2.352 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.414e-06/0.148, allocations: 0 / 0.4966 GB, free: 2.352 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.777e-05/0.1481, allocations: 7.438 kB / 0.4966 GB, free: 2.344 MB / 382.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1481, allocations: 4 kB / 0.4966 GB, free: 2.34 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02454/0.1726, allocations: 3.044 MB / 0.4996 GB, free: 15.28 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.865/8.038, allocations: 64 / 0.4996 GB, free: 15.28 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Math.TestColorMapToSvg_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Math_TestColorMapToSvg_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 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.mat","/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