Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestColorMapToSvg.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Math.TestColorMapToSvg,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestColorMapToSvg") translateModel(ModelicaTest.Math.TestColorMapToSvg,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestColorMapToSvg") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001343/0.001343, allocations: 117.2 kB / 17.33 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001312/0.001312, allocations: 205.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.476/1.476, allocations: 227.4 MB / 246.5 MB, free: 10.8 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2188/0.2188, allocations: 46.13 MB / 343.8 MB, free: 11.75 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002357/0.002358, allocations: 80.23 kB / 417.1 MB, free: 20.06 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1396/0.1419, allocations: 62.45 MB / 479.6 MB, free: 5.594 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001995/0.144, allocations: 0.5526 MB / 480.1 MB, free: 5.035 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002031/0.146, allocations: 1.138 MB / 481.3 MB, free: 3.891 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.946e-05/0.1461, allocations: 0 / 481.3 MB, free: 3.891 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.64e-05/0.1461, allocations: 0 / 481.3 MB, free: 3.891 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.561e-06/0.1461, allocations: 0 / 481.3 MB, free: 3.891 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Mechanics/MultiBody/Visualizers/Colors/colorMapToSvg.mo:2:1-205:18:writable] Warning: Pure function ‘Modelica.Mechanics.MultiBody.Visualizers.Colors.colorMapToSvg‘ contains a call to impure function ‘Modelica.Utilities.Files.remove‘. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/Math.mo:663:3-677:20:writable] Warning: Pure function ‘ModelicaTest.Math.colorMapToSvg‘ contains a call to impure function ‘Modelica.Mechanics.MultiBody.Visualizers.Colors.colorMapToSvg‘. Notification: Performance of NFTyping.typeClassSections: time 0.002091/0.1482, allocations: 0.6447 MB / 481.9 MB, free: 3.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.193e-05/0.1483, allocations: 4 kB / 481.9 MB, free: 3.246 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.956e-05/0.1483, allocations: 3.984 kB / 481.9 MB, free: 3.242 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.19e-05/0.1483, allocations: 3.938 kB / 481.9 MB, free: 3.238 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.905e-05/0.1484, allocations: 7.984 kB / 481.9 MB, free: 3.23 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.562e-06/0.1484, allocations: 0 / 481.9 MB, free: 3.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003298/0.1517, allocations: 2.609 MB / 484.5 MB, free: 0.625 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.135e-06/0.1517, allocations: 0 / 484.5 MB, free: 0.625 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.16e-05/0.1517, allocations: 4 kB / 484.5 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005569/0.1523, allocations: 431.3 kB / 484.9 MB, free: 204 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.1523, allocations: 0 / 484.9 MB, free: 204 kB / 350.1 MB Notification: Performance of FrontEnd: time 3.657e-06/0.1523, allocations: 0 / 484.9 MB, free: 204 kB / 350.1 MB Notification: Performance of Transformations before backend: time 5.551e-06/0.1523, allocations: 3.938 kB / 485 MB, free: 200 kB / 350.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.0005234/0.1528, allocations: 373.1 kB / 485.3 MB, free: 15.78 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.042e-05/0.1529, allocations: 8.031 kB / 485.3 MB, free: 15.77 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.517e-05/0.1529, allocations: 3.938 kB / 485.3 MB, free: 15.77 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001229/0.1531, allocations: 167.1 kB / 485.5 MB, free: 15.56 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.319e-05/0.1531, allocations: 0 / 485.5 MB, free: 15.56 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.699e-05/0.1531, allocations: 7.984 kB / 485.5 MB, free: 15.55 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001073/0.1532, allocations: 25.7 kB / 485.5 MB, free: 15.52 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.887e-06/0.1532, allocations: 0 / 485.5 MB, free: 15.52 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.126e-05/0.1533, allocations: 4 kB / 485.5 MB, free: 15.52 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.948e-06/0.1533, allocations: 0 / 485.5 MB, free: 15.52 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.351e-05/0.1533, allocations: 11.88 kB / 485.5 MB, free: 15.51 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001497/0.1534, allocations: 145.7 kB / 485.7 MB, free: 15.32 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.142e-05/0.1535, allocations: 26.61 kB / 485.7 MB, free: 15.28 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.556e-05/0.1535, allocations: 8.797 kB / 485.7 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.916e-06/0.1536, allocations: 0 / 485.7 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.515e-05/0.1536, allocations: 56.27 kB / 485.8 MB, free: 15.2 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 7.42e-07/0.1536, allocations: 0 / 485.8 MB, free: 15.2 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001929/0.1538, allocations: 67.39 kB / 485.8 MB, free: 15.12 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.121e-05/0.1539, allocations: 85.23 kB / 485.9 MB, free: 15.02 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.716e-05/0.154, allocations: 97.8 kB / 486 MB, free: 14.91 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.563e-05/0.154, allocations: 29.64 kB / 486 MB, free: 14.88 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.525e-05/0.154, allocations: 80.14 kB / 486.1 MB, free: 14.8 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.105e-05/0.1541, allocations: 3.938 kB / 486.1 MB, free: 14.79 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.774e-05/0.1541, allocations: 9.719 kB / 486.1 MB, free: 14.78 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000147/0.1542, allocations: 314.8 kB / 486.4 MB, free: 14.46 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.968e-06/0.1543, allocations: 0 / 486.4 MB, free: 14.46 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.154e-06/0.1543, allocations: 4 kB / 486.4 MB, free: 14.46 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.458e-05/0.1543, allocations: 68.25 kB / 486.5 MB, free: 14.38 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.1543, allocations: 0 / 486.5 MB, free: 14.38 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.97e-05/0.1544, allocations: 63.34 kB / 486.6 MB, free: 14.3 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.697e-05/0.1545, allocations: 31.73 kB / 486.6 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.647e-06/0.1545, allocations: 0 / 486.6 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.244e-05/0.1545, allocations: 0 / 486.6 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.91e-07/0.1545, allocations: 0 / 486.6 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.991e-06/0.1545, allocations: 3.984 kB / 486.6 MB, free: 14.26 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.262e-05/0.1545, allocations: 12.03 kB / 486.6 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.382e-06/0.1546, allocations: 0 / 486.6 MB, free: 14.25 MB / 366.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.402e-05/0.1547, allocations: 131.5 kB / 486.8 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.117e-06/0.1547, allocations: 4 kB / 486.8 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.135e-05/0.1547, allocations: 7.125 kB / 486.8 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-06/0.1547, allocations: 0 / 486.8 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.1547, allocations: 0 / 486.8 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.1547, allocations: 3.938 kB / 486.8 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000123/0.1548, allocations: 145.7 kB / 486.9 MB, free: 13.9 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.856e-06/0.1548, allocations: 4 kB / 486.9 MB, free: 13.9 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.1548, allocations: 4 kB / 486.9 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.122e-06/0.1549, allocations: 0 / 486.9 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.372e-06/0.1549, allocations: 0 / 486.9 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.31e-07/0.1549, allocations: 0 / 486.9 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.1549, allocations: 0 / 486.9 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001108/0.155, allocations: 98.7 kB / 487 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.342e-05/0.155, allocations: 77.11 kB / 487.1 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.108e-05/0.1551, allocations: 4.031 kB / 487.1 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.024e-05/0.1551, allocations: 4 kB / 487.1 MB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.857e-05/0.1551, allocations: 7.938 kB / 487.1 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.338e-06/0.1551, allocations: 3.938 kB / 487.1 MB, free: 13.66 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.326e-05/0.1552, allocations: 79.22 kB / 487.2 MB, free: 13.58 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1552, allocations: 0 / 487.2 MB, free: 13.58 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003243/0.1555, allocations: 51.98 kB / 487.2 MB, free: 13.53 MB / 366.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.001974/0.1575, allocations: 0.5303 MB / 487.8 MB, free: 13.04 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001215/0.1576, allocations: 59.41 kB / 487.8 MB, free: 12.97 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.1576, allocations: 0 / 487.8 MB, free: 12.97 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.36e-05/0.1577, allocations: 59.33 kB / 487.9 MB, free: 12.9 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001316/0.1578, allocations: 12.06 kB / 487.9 MB, free: 12.89 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001932/0.158, allocations: 84.84 kB / 488 MB, free: 12.78 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003718/0.1584, allocations: 0.669 MB / 488.6 MB, free: 12.09 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.172e-06/0.1584, allocations: 0 / 488.6 MB, free: 12.09 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.455e-05/0.1584, allocations: 7.438 kB / 488.7 MB, free: 12.08 MB / 366.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1584, allocations: 0 / 488.7 MB, free: 12.08 MB / 366.1 MB Notification: Performance of Templates: time 0.006333/0.1648, allocations: 2.148 MB / 490.8 MB, free: 9.922 MB / 366.1 MB make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestColorMapToSvg.makefile (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestColorMapToSvg.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestColorMapToSvg.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestColorMapToSvg.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestColorMapToSvg.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestColorMapToSvg -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestColorMapToSvg.pipe 2>&1) diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestColorMapToSvg_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/TestColorMapToSvg/TestColorMapToSvg.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestColorMapToSvg.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches