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.001305/0.001305, allocations: 104.4 kB / 16.4 MB, free: 6.512 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.001186/0.001186, allocations: 189.5 kB / 17.34 MB, free: 5.738 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.453/1.453, allocations: 205.1 MB / 223.2 MB, free: 12.22 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.246/0.246, allocations: 43.52 MB / 314.1 MB, free: 428 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.001474/0.001474, allocations: 73.45 kB / 441.8 MB, free: 5.645 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1495/0.151, allocations: 57.78 MB / 499.6 MB, free: 11.79 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.0016/0.1526, allocations: 0.4949 MB / 0.4884 GB, free: 11.3 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001916/0.1545, allocations: 1.158 MB / 0.4895 GB, free: 10.13 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.485e-05/0.1546, allocations: 0 / 0.4895 GB, free: 10.13 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.318e-05/0.1546, allocations: 0 / 0.4895 GB, free: 10.13 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.242e-06/0.1546, allocations: 0 / 0.4895 GB, free: 10.13 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001959/0.1566, allocations: 0.6688 MB / 0.4901 GB, free: 9.469 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.882e-05/0.1567, allocations: 4 kB / 0.4901 GB, free: 9.465 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.567e-05/0.1567, allocations: 0 / 0.4901 GB, free: 9.465 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.965e-05/0.1567, allocations: 4 kB / 0.4901 GB, free: 9.461 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.79e-05/0.1567, allocations: 4 kB / 0.4901 GB, free: 9.457 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.972e-06/0.1568, allocations: 0 / 0.4901 GB, free: 9.457 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002915/0.1597, allocations: 2.448 MB / 0.4925 GB, free: 7 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.346e-06/0.1597, allocations: 4 kB / 0.4925 GB, free: 6.996 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.151e-05/0.1597, allocations: 0 / 0.4925 GB, free: 6.996 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000494/0.1602, allocations: 367.3 kB / 0.4929 GB, free: 6.637 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.1602, allocations: 0 / 0.4929 GB, free: 6.637 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1602, allocations: 0 / 0.4929 GB, free: 6.637 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.243e-05/0.1603, allocations: 0 / 0.4929 GB, free: 6.637 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.00076/0.161, allocations: 376.7 kB / 0.4933 GB, free: 6.215 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.108e-05/0.1611, allocations: 15.89 kB / 0.4933 GB, free: 6.199 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.734e-05/0.1611, allocations: 3.953 kB / 0.4933 GB, free: 6.195 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001423/0.1613, allocations: 171.1 kB / 0.4934 GB, free: 5.988 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.865e-05/0.1613, allocations: 3.938 kB / 0.4934 GB, free: 5.984 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.634e-05/0.1613, allocations: 0 / 0.4934 GB, free: 5.984 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001248/0.1615, allocations: 37.58 kB / 0.4935 GB, free: 5.941 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.159e-05/0.1615, allocations: 0 / 0.4935 GB, free: 5.941 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.367e-05/0.1615, allocations: 0 / 0.4935 GB, free: 5.941 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/0.1615, allocations: 0 / 0.4935 GB, free: 5.941 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.475e-05/0.1615, allocations: 0 / 0.4935 GB, free: 5.941 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000178/0.1617, allocations: 149.7 kB / 0.4936 GB, free: 5.746 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.966e-05/0.1618, allocations: 30.48 kB / 0.4936 GB, free: 5.707 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.426e-05/0.1618, allocations: 8.891 kB / 0.4937 GB, free: 5.695 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.047e-05/0.1618, allocations: 4 kB / 0.4937 GB, free: 5.691 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.732e-05/0.1619, allocations: 56.27 kB / 0.4937 GB, free: 5.621 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 8.72e-07/0.1619, allocations: 0 / 0.4937 GB, free: 5.621 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.000231/0.1621, allocations: 63.41 kB / 0.4938 GB, free: 5.547 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.747e-05/0.1622, allocations: 81.22 kB / 0.4938 GB, free: 5.449 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.788e-05/0.1623, allocations: 93.86 kB / 0.4939 GB, free: 5.348 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.652e-05/0.1623, allocations: 25.7 kB / 0.494 GB, free: 5.316 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.935e-05/0.1624, allocations: 80.14 kB / 0.494 GB, free: 5.234 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.382e-05/0.1624, allocations: 0 / 0.494 GB, free: 5.234 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.819e-05/0.1624, allocations: 13.72 kB / 0.4941 GB, free: 5.215 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001454/0.1626, allocations: 314.8 kB / 0.4944 GB, free: 4.898 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.456e-05/0.1626, allocations: 4 kB / 0.4944 GB, free: 4.895 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.725e-06/0.1626, allocations: 7.938 kB / 0.4944 GB, free: 4.887 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.953e-05/0.1627, allocations: 60.33 kB / 0.4944 GB, free: 4.812 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.1627, allocations: 4 kB / 0.4944 GB, free: 4.809 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.945e-05/0.1628, allocations: 63.33 kB / 0.4945 GB, free: 4.734 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.768e-05/0.1628, allocations: 33.7 kB / 0.4945 GB, free: 4.695 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.1629, allocations: 0 / 0.4945 GB, free: 4.695 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.374e-05/0.1629, allocations: 0 / 0.4945 GB, free: 4.695 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.472e-06/0.1629, allocations: 3.938 kB / 0.4945 GB, free: 4.691 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.546e-06/0.1629, allocations: 0 / 0.4945 GB, free: 4.691 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.426e-05/0.1629, allocations: 0 / 0.4945 GB, free: 4.691 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.306e-05/0.163, allocations: 4.031 kB / 0.4945 GB, free: 4.688 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.0001736/0.1632, allocations: 155.4 kB / 0.4947 GB, free: 4.52 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.677e-06/0.1632, allocations: 3.938 kB / 0.4947 GB, free: 4.516 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.869e-05/0.1632, allocations: 3.125 kB / 0.4947 GB, free: 4.512 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.92e-07/0.1632, allocations: 0 / 0.4947 GB, free: 4.512 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.9e-06/0.1632, allocations: 4 kB / 0.4947 GB, free: 4.508 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.816e-06/0.1632, allocations: 0 / 0.4947 GB, free: 4.508 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001198/0.1633, allocations: 149.6 kB / 0.4948 GB, free: 4.312 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-07/0.1633, allocations: 0 / 0.4948 GB, free: 4.312 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.1634, allocations: 4 kB / 0.4948 GB, free: 4.309 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.252e-06/0.1634, allocations: 0 / 0.4948 GB, free: 4.309 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.154e-05/0.1634, allocations: 4 kB / 0.4948 GB, free: 4.305 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.21e-07/0.1634, allocations: 3.938 kB / 0.4948 GB, free: 4.301 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.1634, allocations: 0 / 0.4948 GB, free: 4.301 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001089/0.1635, allocations: 90.77 kB / 0.4949 GB, free: 4.188 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.014e-05/0.1636, allocations: 81.11 kB / 0.495 GB, free: 4.09 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.452e-05/0.1636, allocations: 0 / 0.495 GB, free: 4.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.135e-06/0.1636, allocations: 4.031 kB / 0.495 GB, free: 4.086 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.677e-05/0.1636, allocations: 0 / 0.495 GB, free: 4.086 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.344e-06/0.1636, allocations: 0 / 0.495 GB, free: 4.086 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.365e-05/0.1637, allocations: 79.28 kB / 0.4951 GB, free: 4.008 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1637, allocations: 3.938 kB / 0.4951 GB, free: 4.004 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003191/0.164, allocations: 59.73 kB / 0.4951 GB, free: 3.945 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.001407/0.1654, allocations: 0.5202 MB / 0.4956 GB, free: 3.438 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001221/0.1655, allocations: 63.41 kB / 0.4957 GB, free: 3.363 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.1656, allocations: 0 / 0.4957 GB, free: 3.363 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.399e-05/0.1656, allocations: 55.41 kB / 0.4958 GB, free: 3.297 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001335/0.1657, allocations: 15.86 kB / 0.4958 GB, free: 3.281 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002048/0.1659, allocations: 84.83 kB / 0.4959 GB, free: 3.172 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000261/0.1662, allocations: 0.669 MB / 0.4965 GB, free: 2.477 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.202e-06/0.1662, allocations: 0 / 0.4965 GB, free: 2.477 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.361e-05/0.1662, allocations: 11.44 kB / 0.4965 GB, free: 2.465 MB / 382.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1663, allocations: 128 / 0.4965 GB, free: 2.465 MB / 382.1 MB Notification: Performance of Templates: time 0.005548/0.1718, allocations: 2.145 MB / 0.4986 GB, free: 324 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