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.001317/0.001317, allocations: 116.9 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001339/0.001339, allocations: 200.6 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.341/1.341, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.208/0.208, allocations: 46.1 MB / 344.9 MB, free: 11.47 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001333/0.001333, allocations: 70.58 kB / 419 MB, free: 19.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.12/0.1214, allocations: 62.46 MB / 481.5 MB, free: 4.512 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001727/0.1231, allocations: 474.9 kB / 481.9 MB, free: 4.047 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001849/0.125, allocations: 1.154 MB / 483.1 MB, free: 2.887 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.973e-05/0.125, allocations: 3.938 kB / 483.1 MB, free: 2.883 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.431e-05/0.125, allocations: 0 / 483.1 MB, free: 2.883 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.821e-06/0.1251, allocations: 7.938 kB / 483.1 MB, free: 2.875 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.001969/0.127, allocations: 0.6793 MB / 483.8 MB, free: 2.203 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.27e-05/0.1271, allocations: 4 kB / 483.8 MB, free: 2.199 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.039e-05/0.1272, allocations: 0 / 483.8 MB, free: 2.199 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.897e-05/0.1272, allocations: 3.938 kB / 483.8 MB, free: 2.195 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.08e-05/0.1272, allocations: 4 kB / 483.8 MB, free: 2.191 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.093e-06/0.1272, allocations: 0 / 483.8 MB, free: 2.191 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002659/0.1299, allocations: 2.444 MB / 486.2 MB, free: 15.75 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.237e-06/0.1299, allocations: 0 / 486.2 MB, free: 15.75 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.15e-05/0.1299, allocations: 4 kB / 486.2 MB, free: 15.75 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003798/0.1303, allocations: 359.5 kB / 486.6 MB, free: 15.39 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.1303, allocations: 0 / 486.6 MB, free: 15.39 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.106e-06/0.1303, allocations: 4 kB / 486.6 MB, free: 15.39 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.372e-06/0.1303, allocations: 3.938 kB / 486.6 MB, free: 15.39 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.0004148/0.1308, allocations: 373.1 kB / 486.9 MB, free: 14.97 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/0.1308, allocations: 12.03 kB / 487 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.972e-05/0.1308, allocations: 0 / 487 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.718e-05/0.1309, allocations: 159.1 kB / 487.1 MB, free: 14.76 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.556e-05/0.131, allocations: 3.938 kB / 487.1 MB, free: 14.76 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.143e-05/0.131, allocations: 0 / 487.1 MB, free: 14.76 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.123e-05/0.1311, allocations: 37.64 kB / 487.2 MB, free: 14.71 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.354e-06/0.1311, allocations: 4 kB / 487.2 MB, free: 14.71 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.415e-06/0.1311, allocations: 0 / 487.2 MB, free: 14.71 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.1311, allocations: 0 / 487.2 MB, free: 14.71 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.831e-05/0.1311, allocations: 4 kB / 487.2 MB, free: 14.71 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001391/0.1313, allocations: 149.7 kB / 487.3 MB, free: 14.51 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.536e-05/0.1313, allocations: 18.52 kB / 487.3 MB, free: 14.48 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.495e-05/0.1313, allocations: 8.953 kB / 487.3 MB, free: 14.47 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.396e-06/0.1314, allocations: 0 / 487.3 MB, free: 14.47 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.686e-05/0.1314, allocations: 64.2 kB / 487.4 MB, free: 14.39 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 7.81e-07/0.1314, allocations: 0 / 487.4 MB, free: 14.39 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001801/0.1316, allocations: 67.39 kB / 487.5 MB, free: 14.32 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.43e-05/0.1317, allocations: 77.11 kB / 487.5 MB, free: 14.22 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.301e-05/0.1317, allocations: 89.86 kB / 487.6 MB, free: 14.12 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.274e-05/0.1317, allocations: 29.64 kB / 487.7 MB, free: 14.09 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.447e-05/0.1318, allocations: 84.14 kB / 487.7 MB, free: 14 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.584e-05/0.1318, allocations: 8.062 kB / 487.7 MB, free: 14 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.556e-05/0.1318, allocations: 9.719 kB / 487.8 MB, free: 13.98 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001044/0.1319, allocations: 314.8 kB / 488.1 MB, free: 13.66 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.224e-05/0.1319, allocations: 7.984 kB / 488.1 MB, free: 13.66 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.719e-06/0.132, allocations: 0 / 488.1 MB, free: 13.66 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.7e-05/0.132, allocations: 64.2 kB / 488.1 MB, free: 13.58 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.132, allocations: 0 / 488.1 MB, free: 13.58 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.985e-05/0.1321, allocations: 59.44 kB / 488.2 MB, free: 13.51 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.647e-05/0.1321, allocations: 45.69 kB / 488.2 MB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.98e-06/0.1321, allocations: 0 / 488.2 MB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.255e-05/0.1322, allocations: 0 / 488.2 MB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.02e-07/0.1322, allocations: 0 / 488.2 MB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.812e-06/0.1322, allocations: 3.984 kB / 488.2 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.48e-05/0.1322, allocations: 0 / 488.2 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.913e-06/0.1322, allocations: 4 kB / 488.2 MB, free: 13.45 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 7.606e-05/0.1323, allocations: 135.5 kB / 488.4 MB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.013e-06/0.1323, allocations: 0 / 488.4 MB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.745e-06/0.1323, allocations: 11.12 kB / 488.4 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.92e-07/0.1323, allocations: 0 / 488.4 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.1323, allocations: 0 / 488.4 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-06/0.1323, allocations: 0 / 488.4 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.591e-05/0.1324, allocations: 153.6 kB / 488.5 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.1324, allocations: 3.984 kB / 488.5 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.104e-06/0.1325, allocations: 3.938 kB / 488.5 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.1325, allocations: 8 kB / 488.5 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.753e-06/0.1325, allocations: 0 / 488.5 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.72e-07/0.1325, allocations: 0 / 488.5 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-07/0.1325, allocations: 0 / 488.5 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.196e-05/0.1326, allocations: 98.77 kB / 488.6 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.133e-05/0.1326, allocations: 77.11 kB / 488.7 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.052e-05/0.1326, allocations: 0 / 488.7 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.045e-06/0.1327, allocations: 0 / 488.7 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.874e-05/0.1327, allocations: 7.984 kB / 488.7 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.727e-06/0.1327, allocations: 4 kB / 488.7 MB, free: 12.85 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.952e-05/0.1327, allocations: 83.25 kB / 488.8 MB, free: 12.77 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1327, allocations: 0 / 488.8 MB, free: 12.77 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000284/0.133, allocations: 55.92 kB / 488.9 MB, free: 12.71 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.001265/0.1343, allocations: 0.5192 MB / 489.4 MB, free: 12.24 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001005/0.1344, allocations: 63.33 kB / 489.4 MB, free: 12.16 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.1344, allocations: 0 / 489.4 MB, free: 12.16 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.493e-05/0.1345, allocations: 59.41 kB / 489.5 MB, free: 12.09 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001253/0.1346, allocations: 7.938 kB / 489.5 MB, free: 12.09 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001896/0.1348, allocations: 76.84 kB / 489.6 MB, free: 11.98 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002531/0.135, allocations: 0.6768 MB / 490.3 MB, free: 11.28 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.761e-06/0.1351, allocations: 0 / 490.3 MB, free: 11.28 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.175e-05/0.1351, allocations: 11.56 kB / 490.3 MB, free: 11.27 MB / 366.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1351, allocations: 0 / 490.3 MB, free: 11.27 MB / 366.1 MB Notification: Performance of Templates: time 0.004863/0.1399, allocations: 2.137 MB / 492.4 MB, free: 9.125 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 -s cvode -emit_protected -lv LOG_STATS > 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