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: "" <> buildModelFMU(ModelicaTest.Math.TestColorMapToSvg,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestColorMapToSvg",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestColorMapToSvg,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestColorMapToSvg",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009354/0.0009354, allocations: 95.73 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009453/0.0009453, allocations: 201.6 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.321/1.321, allocations: 227.7 MB / 246.8 MB, free: 11.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2135/0.2135, allocations: 46.18 MB / 345.2 MB, free: 11.39 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003327/0.0003327, allocations: 8 kB / 419.6 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1182/0.1185, allocations: 63.57 MB / 483.2 MB, free: 4.055 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.0005659/0.1191, allocations: 214.9 kB / 483.4 MB, free: 3.844 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001924/0.1211, allocations: 1.178 MB / 484.6 MB, free: 2.66 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.809e-06/0.1211, allocations: 0 / 484.6 MB, free: 2.66 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.298e-05/0.1211, allocations: 0 / 484.6 MB, free: 2.66 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.67e-06/0.1211, allocations: 0 / 484.6 MB, free: 2.66 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.002382/0.1235, allocations: 0.6331 MB / 485.2 MB, free: 2.035 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.895e-05/0.1236, allocations: 4 kB / 485.2 MB, free: 2.031 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.405e-05/0.1236, allocations: 4 kB / 485.2 MB, free: 2.027 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.245e-05/0.1237, allocations: 3.938 kB / 485.2 MB, free: 2.023 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.439e-05/0.1237, allocations: 0 / 485.2 MB, free: 2.023 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.125e-06/0.1237, allocations: 0 / 485.2 MB, free: 2.023 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003444/0.1272, allocations: 2.589 MB / 487.8 MB, free: 15.44 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.055e-05/0.1272, allocations: 0 / 487.8 MB, free: 15.44 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 3.813e-05/0.1273, allocations: 33.69 kB / 487.8 MB, free: 15.4 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006432/0.1279, allocations: 431.3 kB / 488.2 MB, free: 14.98 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.785e-06/0.1279, allocations: 0 / 488.2 MB, free: 14.98 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.856e-06/0.1279, allocations: 0 / 488.2 MB, free: 14.98 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.795e-06/0.1279, allocations: 3.938 kB / 488.3 MB, free: 14.97 MB / 366.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.0005213/0.1285, allocations: 375.4 kB / 488.6 MB, free: 14.55 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.991e-05/0.1285, allocations: 8.875 kB / 488.6 MB, free: 14.55 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.625e-05/0.1286, allocations: 30.56 kB / 488.7 MB, free: 14.51 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.005e-05/0.1286, allocations: 3.938 kB / 488.7 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001049/0.1287, allocations: 167 kB / 488.8 MB, free: 14.3 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.185e-05/0.1287, allocations: 8 kB / 488.8 MB, free: 14.29 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.778e-06/0.1288, allocations: 0 / 488.8 MB, free: 14.29 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001033/0.1289, allocations: 25.7 kB / 488.9 MB, free: 14.26 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.187e-06/0.1289, allocations: 4 kB / 488.9 MB, free: 14.26 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.917e-06/0.1289, allocations: 0 / 488.9 MB, free: 14.26 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.068e-06/0.1289, allocations: 0 / 488.9 MB, free: 14.26 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.362e-05/0.1289, allocations: 7.875 kB / 488.9 MB, free: 14.25 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001593/0.1291, allocations: 149.7 kB / 489 MB, free: 14.05 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.254e-05/0.1291, allocations: 22.61 kB / 489 MB, free: 14.02 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.537e-05/0.1292, allocations: 4.859 kB / 489 MB, free: 14.02 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.116e-06/0.1292, allocations: 0 / 489 MB, free: 14.02 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.729e-05/0.1292, allocations: 60.33 kB / 489.1 MB, free: 13.94 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 1.543e-06/0.1292, allocations: 0 / 489.1 MB, free: 13.94 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002007/0.1294, allocations: 67.33 kB / 489.2 MB, free: 13.86 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.521e-05/0.1295, allocations: 85.05 kB / 489.2 MB, free: 13.76 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.504e-05/0.1296, allocations: 93.92 kB / 489.3 MB, free: 13.66 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.142e-05/0.1296, allocations: 33.64 kB / 489.4 MB, free: 13.62 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.868e-05/0.1296, allocations: 84.12 kB / 489.5 MB, free: 13.54 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.822e-05/0.1297, allocations: 0 / 489.5 MB, free: 13.54 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.306e-05/0.1297, allocations: 9.719 kB / 489.5 MB, free: 13.52 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001254/0.1298, allocations: 310.8 kB / 489.8 MB, free: 13.21 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.002e-05/0.1298, allocations: 4 kB / 489.8 MB, free: 13.2 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.734e-06/0.1298, allocations: 4 kB / 489.8 MB, free: 13.2 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.495e-05/0.1299, allocations: 68.31 kB / 489.8 MB, free: 13.12 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.1299, allocations: 0 / 489.8 MB, free: 13.12 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.631e-05/0.13, allocations: 63.34 kB / 489.9 MB, free: 13.04 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.244e-05/0.1301, allocations: 29.7 kB / 489.9 MB, free: 13.01 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.142e-06/0.1301, allocations: 0 / 489.9 MB, free: 13.01 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.684e-05/0.1301, allocations: 4 kB / 489.9 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.793e-06/0.1301, allocations: 0 / 489.9 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.005e-05/0.1301, allocations: 3.938 kB / 489.9 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.141e-05/0.1301, allocations: 0 / 489.9 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.063e-05/0.1302, allocations: 7.984 kB / 490 MB, free: 12.99 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 0.0001385/0.1303, allocations: 139.6 kB / 490.1 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.163e-05/0.1303, allocations: 4 kB / 490.1 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.438e-06/0.1303, allocations: 3.125 kB / 490.1 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/0.1303, allocations: 3.984 kB / 490.1 MB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.1304, allocations: 3.938 kB / 490.1 MB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.954e-06/0.1304, allocations: 0 / 490.1 MB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001001/0.1305, allocations: 145.7 kB / 490.2 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.1305, allocations: 0 / 490.2 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.855e-06/0.1305, allocations: 4 kB / 490.2 MB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.416e-06/0.1305, allocations: 4 kB / 490.3 MB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.322e-06/0.1305, allocations: 0 / 490.3 MB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.1305, allocations: 0 / 490.3 MB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.1305, allocations: 3.938 kB / 490.3 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001023/0.1306, allocations: 94.77 kB / 490.3 MB, free: 12.51 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.605e-05/0.1307, allocations: 81.02 kB / 490.4 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.219e-05/0.1307, allocations: 0 / 490.4 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.267e-06/0.1307, allocations: 0 / 490.4 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.623e-05/0.1307, allocations: 11.97 kB / 490.4 MB, free: 12.4 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.208e-06/0.1307, allocations: 3.938 kB / 490.4 MB, free: 12.39 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.678e-05/0.1308, allocations: 75.28 kB / 490.5 MB, free: 12.32 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1308, allocations: 0 / 490.5 MB, free: 12.32 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003772/0.1312, allocations: 51.98 kB / 490.6 MB, free: 12.27 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.002204/0.1334, allocations: 1.063 MB / 491.6 MB, free: 11.22 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 9.718e-05/0.1335, allocations: 55.41 kB / 491.7 MB, free: 11.16 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.1335, allocations: 4.062 kB / 491.7 MB, free: 11.15 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.325e-05/0.1335, allocations: 59.41 kB / 491.7 MB, free: 11.08 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001295/0.1337, allocations: 3.938 kB / 491.7 MB, free: 11.08 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004055/0.1341, allocations: 132.3 kB / 491.9 MB, free: 10.91 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002991/0.1344, allocations: 0.6692 MB / 492.5 MB, free: 10.21 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.853e-06/0.1344, allocations: 0 / 492.5 MB, free: 10.21 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.042e-05/0.1344, allocations: 7.438 kB / 492.6 MB, free: 10.2 MB / 366.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1344, allocations: 0 / 492.6 MB, free: 10.2 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01536/0.1498, allocations: 2.832 MB / 495.4 MB, free: 7.465 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000199/0.1501, allocations: 234.3 kB / 495.6 MB, free: 7.203 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.887/2.037, allocations: 3.938 kB / 495.6 MB, free: 7.199 MB / 366.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_TestColorMapToSvg_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_TestColorMapToSvg.fmu > ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestColorMapToSvg/TestColorMapToSvg.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches