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: translateModel(ModelicaTest.Math.TestColorMapToSvg,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Math.TestColorMapToSvg") translateModel(ModelicaTest.Math.TestColorMapToSvg,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Math.TestColorMapToSvg") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00195/0.001959, allocations: 106.5 kB / 16.41 MB, free: 6.492 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.001904/0.001904, allocations: 185.5 kB / 17.34 MB, free: 5.762 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.642/1.642, 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.2544/0.2544, allocations: 43.53 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.001362/0.001362, allocations: 67.91 kB / 441.8 MB, free: 5.676 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1306/0.1319, allocations: 57.78 MB / 499.6 MB, free: 11.82 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.002036/0.134, allocations: 0.4949 MB / 0.4883 GB, free: 11.33 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002247/0.1363, allocations: 1.146 MB / 0.4895 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.571e-05/0.1363, allocations: 0 / 0.4895 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.905e-05/0.1364, allocations: 0 / 0.4895 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.903e-06/0.1364, allocations: 0 / 0.4895 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002498/0.1389, allocations: 0.68 MB / 0.4901 GB, free: 9.5 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 7.314e-05/0.139, allocations: 4 kB / 0.4901 GB, free: 9.496 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.168e-05/0.139, allocations: 0 / 0.4901 GB, free: 9.496 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.158e-05/0.1391, allocations: 11.97 kB / 0.4901 GB, free: 9.484 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.811e-05/0.1391, allocations: 0 / 0.4901 GB, free: 9.484 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.564e-06/0.1391, allocations: 0 / 0.4901 GB, free: 9.484 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002999/0.1421, allocations: 2.456 MB / 0.4925 GB, free: 7.02 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.055e-06/0.1421, allocations: 0 / 0.4925 GB, free: 7.02 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.307e-05/0.1422, allocations: 0 / 0.4925 GB, free: 7.02 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004809/0.1426, allocations: 359.5 kB / 0.4929 GB, free: 6.668 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.261e-06/0.1427, allocations: 4 kB / 0.4929 GB, free: 6.664 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1427, allocations: 0 / 0.4929 GB, free: 6.664 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.22e-06/0.1427, allocations: 0 / 0.4929 GB, free: 6.664 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.0004901/0.1432, allocations: 373 kB / 0.4932 GB, free: 6.246 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.227e-05/0.1432, allocations: 15.89 kB / 0.4933 GB, free: 6.23 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.107e-05/0.1433, allocations: 3.906 kB / 0.4933 GB, free: 6.227 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001277/0.1434, allocations: 175 kB / 0.4934 GB, free: 6.016 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.119e-05/0.1434, allocations: 7.938 kB / 0.4934 GB, free: 6.008 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.246e-05/0.1435, allocations: 3.938 kB / 0.4934 GB, free: 6.004 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000135/0.1436, allocations: 29.7 kB / 0.4935 GB, free: 5.969 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.323e-05/0.1436, allocations: 0 / 0.4935 GB, free: 5.969 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.366e-05/0.1436, allocations: 0 / 0.4935 GB, free: 5.969 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.1437, allocations: 0 / 0.4935 GB, free: 5.969 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.895e-05/0.1437, allocations: 3.984 kB / 0.4935 GB, free: 5.965 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001775/0.1439, allocations: 149.6 kB / 0.4936 GB, free: 5.77 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.213e-05/0.1439, allocations: 22.52 kB / 0.4936 GB, free: 5.738 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.186e-05/0.144, allocations: 12.8 kB / 0.4937 GB, free: 5.723 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.394e-05/0.144, allocations: 4.094 kB / 0.4937 GB, free: 5.719 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.46e-05/0.1441, allocations: 56.27 kB / 0.4937 GB, free: 5.648 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.483e-06/0.1441, allocations: 0 / 0.4937 GB, free: 5.648 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002173/0.1443, allocations: 63.39 kB / 0.4938 GB, free: 5.574 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.877e-05/0.1444, allocations: 81.23 kB / 0.4938 GB, free: 5.477 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.114e-05/0.1444, allocations: 89.86 kB / 0.4939 GB, free: 5.379 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.459e-05/0.1444, allocations: 25.7 kB / 0.494 GB, free: 5.348 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.469e-05/0.1445, allocations: 84.14 kB / 0.494 GB, free: 5.262 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.852e-05/0.1445, allocations: 0 / 0.494 GB, free: 5.262 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.286e-05/0.1446, allocations: 13.72 kB / 0.4941 GB, free: 5.242 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.1447, allocations: 314.8 kB / 0.4944 GB, free: 4.926 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.452e-05/0.1447, allocations: 3.938 kB / 0.4944 GB, free: 4.922 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.052e-05/0.1447, allocations: 8 kB / 0.4944 GB, free: 4.914 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.495e-05/0.1448, allocations: 56.27 kB / 0.4944 GB, free: 4.844 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.538e-06/0.1448, allocations: 4 kB / 0.4944 GB, free: 4.84 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.752e-05/0.1449, allocations: 63.34 kB / 0.4945 GB, free: 4.766 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.877e-05/0.145, allocations: 37.69 kB / 0.4945 GB, free: 4.723 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.145, allocations: 0 / 0.4945 GB, free: 4.723 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.833e-05/0.145, allocations: 0 / 0.4945 GB, free: 4.723 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.243e-06/0.145, allocations: 3.938 kB / 0.4945 GB, free: 4.719 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.995e-06/0.145, allocations: 0 / 0.4945 GB, free: 4.719 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.855e-05/0.145, allocations: 4.094 kB / 0.4945 GB, free: 4.715 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.011e-06/0.1451, allocations: 0 / 0.4945 GB, free: 4.715 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.0001098/0.1452, allocations: 147.4 kB / 0.4947 GB, free: 4.555 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.887e-06/0.1452, allocations: 0 / 0.4947 GB, free: 4.555 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.273e-05/0.1452, allocations: 3.125 kB / 0.4947 GB, free: 4.551 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.1452, allocations: 3.984 kB / 0.4947 GB, free: 4.547 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.543e-06/0.1452, allocations: 4 kB / 0.4947 GB, free: 4.543 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-06/0.1452, allocations: 0 / 0.4947 GB, free: 4.543 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001101/0.1453, allocations: 149.6 kB / 0.4948 GB, free: 4.348 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.1454, allocations: 4 kB / 0.4948 GB, free: 4.344 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.91e-07/0.1454, allocations: 3.938 kB / 0.4948 GB, free: 4.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.179e-06/0.1454, allocations: 3.984 kB / 0.4948 GB, free: 4.336 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.929e-06/0.1454, allocations: 4 kB / 0.4948 GB, free: 4.332 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.1454, allocations: 0 / 0.4948 GB, free: 4.332 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.1454, allocations: 0 / 0.4948 GB, free: 4.332 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001081/0.1455, allocations: 90.77 kB / 0.4949 GB, free: 4.219 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.716e-05/0.1456, allocations: 81.11 kB / 0.495 GB, free: 4.121 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.892e-05/0.1456, allocations: 12.02 kB / 0.495 GB, free: 4.109 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.163e-05/0.1456, allocations: 0 / 0.495 GB, free: 4.109 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.144e-05/0.1456, allocations: 0 / 0.495 GB, free: 4.109 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.896e-06/0.1456, allocations: 0 / 0.495 GB, free: 4.109 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.866e-05/0.1457, allocations: 79.22 kB / 0.4951 GB, free: 4.031 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1457, allocations: 4 kB / 0.4951 GB, free: 4.027 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000428/0.1461, allocations: 47.98 kB / 0.4951 GB, free: 3.98 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.001451/0.1476, allocations: 0.5188 MB / 0.4956 GB, free: 3.473 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000114/0.1477, allocations: 71.39 kB / 0.4957 GB, free: 3.391 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.1477, allocations: 0 / 0.4957 GB, free: 3.391 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.638e-05/0.1478, allocations: 55.41 kB / 0.4958 GB, free: 3.324 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000132/0.1479, allocations: 3.938 kB / 0.4958 GB, free: 3.32 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000231/0.1482, allocations: 88.92 kB / 0.4959 GB, free: 3.207 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003311/0.1485, allocations: 0.6729 MB / 0.4965 GB, free: 2.508 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.905e-06/0.1485, allocations: 0 / 0.4965 GB, free: 2.508 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.765e-05/0.1485, allocations: 11.44 kB / 0.4965 GB, free: 2.496 MB / 382.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1485, allocations: 4.125 kB / 0.4965 GB, free: 2.492 MB / 382.1 MB Notification: Performance of Templates: time 0.005909/0.1545, allocations: 2.137 MB / 0.4986 GB, free: 360 kB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Math.TestColorMapToSvg.makefile (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 & ./ModelicaTest_3.2.3_ModelicaTest.Math.TestColorMapToSvg -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Math.TestColorMapToSvg.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Math.TestColorMapToSvg_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/TestColorMapToSvg/TestColorMapToSvg.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Math.TestColorMapToSvg.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches