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.005936/0.005936, allocations: 99.86 kB / 15.87 MB, free: 6.309 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.00115/0.00115, allocations: 194.3 kB / 16.78 MB, free: 6.238 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.597/1.597, allocations: 205.1 MB / 222.7 MB, free: 4.734 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3401/0.3401, allocations: 43.49 MB / 313.5 MB, free: 8.539 MB / 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.002517/0.002517, allocations: 67.91 kB / 382 MB, free: 8.734 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1432/0.1457, allocations: 57.79 MB / 439.8 MB, free: 14.84 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001694/0.1475, allocations: 0.5464 MB / 440.4 MB, free: 14.29 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001878/0.1494, allocations: 1.198 MB / 441.6 MB, free: 13.09 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.162e-05/0.1494, allocations: 0 / 441.6 MB, free: 13.09 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.69e-05/0.1494, allocations: 0 / 441.6 MB, free: 13.09 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.118e-06/0.1495, allocations: 0 / 441.6 MB, free: 13.09 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001765/0.1512, allocations: 0.6395 MB / 442.2 MB, free: 12.45 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 3.275e-05/0.1513, allocations: 3.984 kB / 442.2 MB, free: 12.45 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.386e-05/0.1513, allocations: 8 kB / 442.2 MB, free: 12.44 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.406e-05/0.1513, allocations: 3.938 kB / 442.2 MB, free: 12.43 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.713e-05/0.1514, allocations: 3.984 kB / 442.2 MB, free: 12.43 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.179e-06/0.1514, allocations: 0 / 442.2 MB, free: 12.43 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003251/0.1546, allocations: 2.593 MB / 444.8 MB, free: 9.832 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.107e-05/0.1547, allocations: 4 kB / 444.8 MB, free: 9.828 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.107e-05/0.1547, allocations: 0 / 444.8 MB, free: 9.828 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005199/0.1552, allocations: 427.3 kB / 445.2 MB, free: 9.41 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.1552, allocations: 3.938 kB / 445.2 MB, free: 9.406 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1552, allocations: 0 / 445.2 MB, free: 9.406 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.118e-06/0.1552, allocations: 0 / 445.2 MB, free: 9.406 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.0004906/0.1557, allocations: 385 kB / 445.6 MB, free: 8.977 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.542e-05/0.1558, allocations: 8.031 kB / 445.6 MB, free: 8.969 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.995e-05/0.1558, allocations: 7.938 kB / 445.6 MB, free: 8.961 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.852e-05/0.1559, allocations: 159.1 kB / 445.8 MB, free: 8.766 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.095e-05/0.1559, allocations: 0 / 445.8 MB, free: 8.766 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.002e-05/0.1559, allocations: 4 kB / 445.8 MB, free: 8.762 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.001e-05/0.156, allocations: 25.7 kB / 445.8 MB, free: 8.73 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.576e-06/0.156, allocations: 3.984 kB / 445.8 MB, free: 8.727 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.546e-06/0.1561, allocations: 0 / 445.8 MB, free: 8.727 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.1561, allocations: 4 kB / 445.8 MB, free: 8.723 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.884e-05/0.1561, allocations: 7.875 kB / 445.8 MB, free: 8.715 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000119/0.1562, allocations: 149.6 kB / 446 MB, free: 8.52 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.047e-05/0.1563, allocations: 22.61 kB / 446 MB, free: 8.488 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.221e-05/0.1563, allocations: 4.859 kB / 446 MB, free: 8.48 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.404e-06/0.1563, allocations: 0 / 446 MB, free: 8.48 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.091e-05/0.1563, allocations: 60.25 kB / 446.1 MB, free: 8.406 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 2.134e-06/0.1563, allocations: 0 / 446.1 MB, free: 8.406 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001729/0.1565, allocations: 71.34 kB / 446.1 MB, free: 8.324 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.817e-05/0.1566, allocations: 85.11 kB / 446.2 MB, free: 8.223 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.025e-05/0.1566, allocations: 93.8 kB / 446.3 MB, free: 8.121 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.2e-05/0.1567, allocations: 25.7 kB / 446.3 MB, free: 8.09 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.67e-05/0.1567, allocations: 80.14 kB / 446.4 MB, free: 8.008 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.358e-05/0.1567, allocations: 0 / 446.4 MB, free: 8.008 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.773e-05/0.1567, allocations: 17.7 kB / 446.4 MB, free: 7.984 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000112/0.1569, allocations: 310.8 kB / 446.7 MB, free: 7.672 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.173e-05/0.1569, allocations: 8.062 kB / 446.7 MB, free: 7.664 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.849e-06/0.1569, allocations: 0 / 446.7 MB, free: 7.664 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.306e-05/0.157, allocations: 64.27 kB / 446.8 MB, free: 7.586 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.157, allocations: 0 / 446.8 MB, free: 7.586 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.776e-05/0.157, allocations: 67.33 kB / 446.9 MB, free: 7.508 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.932e-05/0.1571, allocations: 29.7 kB / 446.9 MB, free: 7.473 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/0.1571, allocations: 0 / 446.9 MB, free: 7.473 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.288e-05/0.1571, allocations: 0 / 446.9 MB, free: 7.473 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.915e-06/0.1571, allocations: 4 kB / 446.9 MB, free: 7.469 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.1571, allocations: 8.094 kB / 446.9 MB, free: 7.461 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.57e-05/0.1571, allocations: 3.938 kB / 446.9 MB, free: 7.457 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.013e-06/0.1572, allocations: 0 / 446.9 MB, free: 7.457 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 9.544e-05/0.1573, allocations: 135.5 kB / 447 MB, free: 7.309 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.484e-06/0.1573, allocations: 4 kB / 447 MB, free: 7.305 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.365e-05/0.1573, allocations: 7.109 kB / 447.1 MB, free: 7.297 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-06/0.1573, allocations: 0 / 447.1 MB, free: 7.297 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.1573, allocations: 0 / 447.1 MB, free: 7.297 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.1573, allocations: 3.938 kB / 447.1 MB, free: 7.293 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001713/0.1575, allocations: 149.7 kB / 447.2 MB, free: 7.098 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.21e-07/0.1575, allocations: 0 / 447.2 MB, free: 7.098 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.3e-07/0.1575, allocations: 0 / 447.2 MB, free: 7.098 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.102e-06/0.1575, allocations: 0 / 447.2 MB, free: 7.098 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.753e-06/0.1575, allocations: 0 / 447.2 MB, free: 7.098 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.1575, allocations: 3.984 kB / 447.2 MB, free: 7.094 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-07/0.1575, allocations: 0 / 447.2 MB, free: 7.094 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.605e-05/0.1576, allocations: 94.72 kB / 447.3 MB, free: 6.977 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.359e-05/0.1577, allocations: 85.12 kB / 447.4 MB, free: 6.875 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.351e-05/0.1577, allocations: 0 / 447.4 MB, free: 6.875 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.059e-05/0.1577, allocations: 7.938 kB / 447.4 MB, free: 6.867 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.379e-05/0.1577, allocations: 3.938 kB / 447.4 MB, free: 6.863 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.265e-06/0.1577, allocations: 0 / 447.4 MB, free: 6.863 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.342e-05/0.1577, allocations: 75.28 kB / 447.5 MB, free: 6.789 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1578, allocations: 0 / 447.5 MB, free: 6.789 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003293/0.1581, allocations: 51.98 kB / 447.5 MB, free: 6.738 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.001783/0.1599, allocations: 0.5377 MB / 448.1 MB, free: 6.219 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001158/0.16, allocations: 59.39 kB / 448.1 MB, free: 6.148 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.16, allocations: 3.938 kB / 448.1 MB, free: 6.145 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.895e-05/0.1601, allocations: 63.33 kB / 448.2 MB, free: 6.07 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001212/0.1602, allocations: 4 kB / 448.2 MB, free: 6.066 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001884/0.1604, allocations: 82.69 kB / 448.3 MB, free: 5.957 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002315/0.1606, allocations: 0.6731 MB / 448.9 MB, free: 5.258 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.851e-06/0.1606, allocations: 4.125 kB / 448.9 MB, free: 5.254 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.007e-05/0.1607, allocations: 7.438 kB / 449 MB, free: 5.246 MB / 382.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1607, allocations: 0 / 449 MB, free: 5.246 MB / 382.1 MB Notification: Performance of Templates: time 0.006121/0.1668, allocations: 2.125 MB / 451.1 MB, free: 3.117 MB / 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","../files/ModelicaTest_3.2.3_ModelicaTest.Math.TestColorMapToSvg.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches