Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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 trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_ModelicaTest.Math.TestColorMapToSvg") translateModel(ModelicaTest.Math.TestColorMapToSvg,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008797/0.0008799, allocations: 102.7 kB / 17 MB, free: 6.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009383/0.0009384, allocations: 192.5 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.486/1.486, allocations: 227.7 MB / 246.4 MB, free: 9.801 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2198/0.2198, allocations: 46.19 MB / 344.8 MB, free: 11.33 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002587/0.0002587, allocations: 11.98 kB / 418.8 MB, free: 20.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1211/0.1214, allocations: 63.57 MB / 482.4 MB, free: 4.535 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.0005594/0.122, allocations: 213.2 kB / 482.6 MB, free: 4.324 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001833/0.1238, allocations: 1.074 MB / 483.7 MB, free: 3.246 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.296e-05/0.1238, allocations: 4 kB / 483.7 MB, free: 3.242 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.26e-05/0.1239, allocations: 7.875 kB / 483.7 MB, free: 3.234 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.093e-06/0.1239, allocations: 0 / 483.7 MB, free: 3.234 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 trunk/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.00149/0.1254, allocations: 0.6196 MB / 484.3 MB, free: 2.617 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.326e-05/0.1254, allocations: 4 kB / 484.3 MB, free: 2.613 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.105e-05/0.1255, allocations: 0 / 484.3 MB, free: 2.613 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.48e-05/0.1255, allocations: 0 / 484.3 MB, free: 2.613 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.482e-05/0.1255, allocations: 0 / 484.3 MB, free: 2.613 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.129e-06/0.1255, allocations: 0 / 484.3 MB, free: 2.613 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002888/0.1284, allocations: 2.242 MB / 486.6 MB, free: 380 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.791e-06/0.1284, allocations: 0 / 486.6 MB, free: 380 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.994e-05/0.1284, allocations: 25.7 kB / 486.6 MB, free: 348 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003292/0.1288, allocations: 319.6 kB / 486.9 MB, free: 28 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.1288, allocations: 3.984 kB / 486.9 MB, free: 24 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1288, allocations: 0 / 486.9 MB, free: 24 kB / 350.1 MB Notification: Performance of Transformations before backend: time 3.286e-06/0.1288, allocations: 0 / 486.9 MB, free: 24 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.0003896/0.1292, allocations: 389.3 kB / 487.3 MB, free: 15.59 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.42e-05/0.1292, allocations: 8.031 kB / 487.3 MB, free: 15.58 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.819e-05/0.1293, allocations: 0 / 487.3 MB, free: 15.58 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.283e-05/0.1294, allocations: 167 kB / 487.5 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.226e-05/0.1294, allocations: 0 / 487.5 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.706e-06/0.1294, allocations: 4 kB / 487.5 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.001e-05/0.1295, allocations: 37.61 kB / 487.5 MB, free: 15.33 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.991e-06/0.1295, allocations: 0 / 487.5 MB, free: 15.33 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.418e-06/0.1295, allocations: 0 / 487.5 MB, free: 15.33 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.927e-06/0.1295, allocations: 0 / 487.5 MB, free: 15.33 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.504e-05/0.1295, allocations: 4 kB / 487.5 MB, free: 15.33 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001309/0.1297, allocations: 153.6 kB / 487.6 MB, free: 15.13 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.06e-05/0.1297, allocations: 26.59 kB / 487.7 MB, free: 15.09 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.378e-05/0.1298, allocations: 4.859 kB / 487.7 MB, free: 15.09 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.711e-06/0.1298, allocations: 0 / 487.7 MB, free: 15.09 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.18e-05/0.1298, allocations: 60.2 kB / 487.7 MB, free: 15.01 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 8.01e-07/0.1298, allocations: 0 / 487.7 MB, free: 15.01 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001735/0.13, allocations: 63.47 kB / 487.8 MB, free: 14.94 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.65e-05/0.1301, allocations: 85.22 kB / 487.9 MB, free: 14.84 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.286e-05/0.1301, allocations: 89.86 kB / 488 MB, free: 14.74 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.658e-05/0.1302, allocations: 29.7 kB / 488 MB, free: 14.7 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.653e-05/0.1302, allocations: 84.08 kB / 488.1 MB, free: 14.62 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.699e-05/0.1302, allocations: 3.938 kB / 488.1 MB, free: 14.61 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.264e-06/0.1302, allocations: 0 / 488.1 MB, free: 14.61 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001148/0.1303, allocations: 310.8 kB / 488.4 MB, free: 14.3 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.925e-06/0.1304, allocations: 0 / 488.4 MB, free: 14.3 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.043e-06/0.1304, allocations: 4 kB / 488.4 MB, free: 14.3 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.008e-05/0.1304, allocations: 29.77 kB / 488.4 MB, free: 14.26 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.1304, allocations: 3.938 kB / 488.4 MB, free: 14.26 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.171e-05/0.1305, allocations: 71.34 kB / 488.5 MB, free: 14.18 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.849e-05/0.1305, allocations: 29.7 kB / 488.5 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.1305, allocations: 3.984 kB / 488.5 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.546e-06/0.1305, allocations: 0 / 488.5 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.02e-07/0.1305, allocations: 0 / 488.5 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.677e-06/0.1306, allocations: 4 kB / 488.5 MB, free: 14.13 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.366e-05/0.1306, allocations: 0 / 488.5 MB, free: 14.13 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.209e-06/0.1306, allocations: 4.031 kB / 488.5 MB, free: 14.13 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.96e-05/0.1307, allocations: 135.5 kB / 488.7 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.124e-05/0.1307, allocations: 7.938 kB / 488.7 MB, free: 13.97 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.493e-06/0.1307, allocations: 3.125 kB / 488.7 MB, free: 13.97 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.273e-06/0.1307, allocations: 0 / 488.7 MB, free: 13.97 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.1307, allocations: 0 / 488.7 MB, free: 13.97 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.553e-06/0.1307, allocations: 0 / 488.7 MB, free: 13.97 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.646e-05/0.1308, allocations: 149.7 kB / 488.8 MB, free: 13.78 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.11e-07/0.1308, allocations: 0 / 488.8 MB, free: 13.78 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.1308, allocations: 0 / 488.8 MB, free: 13.78 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.1308, allocations: 7.953 kB / 488.8 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.324e-05/0.1308, allocations: 3.984 kB / 488.8 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.52e-07/0.1308, allocations: 0 / 488.8 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.1309, allocations: 3.938 kB / 488.8 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.439e-05/0.1309, allocations: 86.84 kB / 488.9 MB, free: 13.65 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.225e-05/0.131, allocations: 81.09 kB / 489 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.282e-05/0.131, allocations: 3.953 kB / 489 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.009e-05/0.131, allocations: 8.031 kB / 489 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.447e-06/0.131, allocations: 0 / 489 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.244e-06/0.131, allocations: 0 / 489 MB, free: 13.54 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.948e-05/0.1311, allocations: 75.28 kB / 489.1 MB, free: 13.47 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.136e-06/0.1311, allocations: 0 / 489.1 MB, free: 13.47 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003458/0.1314, allocations: 71.92 kB / 489.2 MB, free: 13.4 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001462/0.1329, allocations: 0.4953 MB / 489.7 MB, free: 12.95 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 8.27e-05/0.133, allocations: 63.34 kB / 489.7 MB, free: 12.87 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.133, allocations: 0 / 489.7 MB, free: 12.87 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.62e-05/0.133, allocations: 51.41 kB / 489.8 MB, free: 12.81 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001197/0.1332, allocations: 7.984 kB / 489.8 MB, free: 12.8 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001553/0.1333, allocations: 78.8 kB / 489.8 MB, free: 12.7 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002462/0.1336, allocations: 0.6731 MB / 490.5 MB, free: 12 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.949e-06/0.1336, allocations: 3.938 kB / 490.5 MB, free: 11.99 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.538e-06/0.1336, allocations: 7.438 kB / 490.5 MB, free: 11.99 MB / 366.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1336, allocations: 0 / 490.5 MB, free: 11.99 MB / 366.1 MB Notification: Performance of Templates: time 0.006508/0.1401, allocations: 2.619 MB / 493.2 MB, free: 9.359 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.sim & ./ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestColorMapToSvg/TestColorMapToSvg.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches