Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_ModelicaTest.Math.TestColorMapToSvg") translateModel(ModelicaTest.Math.TestColorMapToSvg,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00119/0.00119, allocations: 110 kB / 18.3 MB, free: 4.84 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.001143/0.001143, allocations: 199.4 kB / 19.23 MB, free: 3.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.34/1.34, allocations: 222.9 MB / 242.9 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2022/0.2022, allocations: 44.18 MB / 337.3 MB, free: 2.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 64.92 kB / 409.1 MB, free: 27.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/0.1148, allocations: 60.82 MB / 469.9 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.00184/0.1167, allocations: 499.7 kB / 470.4 MB, free: 13.9 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002151/0.1189, allocations: 1.142 MB / 471.5 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.059e-05/0.1189, allocations: 0 / 471.5 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.579e-05/0.119, allocations: 4 kB / 471.6 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.399e-06/0.119, allocations: 0 / 471.6 MB, free: 12.75 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/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.0.0+maint.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.002224/0.1212, allocations: 0.6846 MB / 472.2 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.92e-05/0.1213, allocations: 0 / 472.2 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.032e-05/0.1213, allocations: 4 kB / 472.2 MB, free: 12.06 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.553e-05/0.1213, allocations: 0 / 472.2 MB, free: 12.06 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.871e-05/0.1214, allocations: 3.938 kB / 472.2 MB, free: 12.06 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.101e-06/0.1214, allocations: 0 / 472.2 MB, free: 12.06 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003065/0.1244, allocations: 2.456 MB / 474.7 MB, free: 9.598 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.296e-06/0.1245, allocations: 0 / 474.7 MB, free: 9.598 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.089e-05/0.1245, allocations: 3.984 kB / 474.7 MB, free: 9.594 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004723/0.125, allocations: 347.5 kB / 475 MB, free: 9.254 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.125, allocations: 8 kB / 475.1 MB, free: 9.246 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.125, allocations: 0 / 475.1 MB, free: 9.246 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.199e-06/0.125, allocations: 0 / 475.1 MB, free: 9.246 MB / 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.0004573/0.1255, allocations: 373 kB / 475.4 MB, free: 8.828 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.87e-05/0.1255, allocations: 8.031 kB / 475.4 MB, free: 8.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.011e-05/0.1256, allocations: 0 / 475.4 MB, free: 8.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.497e-05/0.1257, allocations: 163.1 kB / 475.6 MB, free: 8.621 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.493e-05/0.1257, allocations: 3.938 kB / 475.6 MB, free: 8.617 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.345e-06/0.1257, allocations: 0 / 475.6 MB, free: 8.617 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.35e-05/0.1258, allocations: 41.69 kB / 475.6 MB, free: 8.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.634e-06/0.1258, allocations: 3.938 kB / 475.6 MB, free: 8.566 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.04e-05/0.1258, allocations: 4 kB / 475.6 MB, free: 8.562 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.868e-06/0.1258, allocations: 0 / 475.6 MB, free: 8.562 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.772e-05/0.1259, allocations: 3.938 kB / 475.6 MB, free: 8.559 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001244/0.126, allocations: 145.7 kB / 475.8 MB, free: 8.367 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.406e-05/0.126, allocations: 26.53 kB / 475.8 MB, free: 8.332 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.48e-05/0.1261, allocations: 4.859 kB / 475.8 MB, free: 8.324 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.137e-06/0.1261, allocations: 4 kB / 475.8 MB, free: 8.32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.766e-05/0.1261, allocations: 64.33 kB / 475.9 MB, free: 8.242 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.1261, allocations: 0 / 475.9 MB, free: 8.242 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001714/0.1263, allocations: 63.34 kB / 475.9 MB, free: 8.168 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.186e-05/0.1264, allocations: 81.09 kB / 476 MB, free: 8.07 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.165e-05/0.1264, allocations: 89.86 kB / 476.1 MB, free: 7.973 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.286e-05/0.1264, allocations: 25.7 kB / 476.1 MB, free: 7.941 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.053e-05/0.1265, allocations: 84.27 kB / 476.2 MB, free: 7.855 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.553e-05/0.1265, allocations: 3.938 kB / 476.2 MB, free: 7.852 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.9e-05/0.1265, allocations: 17.72 kB / 476.2 MB, free: 7.828 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.586e-05/0.1266, allocations: 310.8 kB / 476.5 MB, free: 7.516 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.548e-06/0.1267, allocations: 0 / 476.5 MB, free: 7.516 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.781e-06/0.1267, allocations: 0 / 476.5 MB, free: 7.516 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.274e-05/0.1267, allocations: 60.27 kB / 476.6 MB, free: 7.441 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.1267, allocations: 4 kB / 476.6 MB, free: 7.438 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.556e-05/0.1268, allocations: 79.33 kB / 476.7 MB, free: 7.348 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.21e-05/0.1268, allocations: 29.7 kB / 476.7 MB, free: 7.312 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.1269, allocations: 0 / 476.7 MB, free: 7.312 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.219e-05/0.1269, allocations: 4 kB / 476.7 MB, free: 7.309 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.72e-07/0.1269, allocations: 0 / 476.7 MB, free: 7.309 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.699e-06/0.1269, allocations: 0 / 476.7 MB, free: 7.309 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.504e-05/0.1269, allocations: 0 / 476.7 MB, free: 7.309 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.631e-06/0.1269, allocations: 0 / 476.7 MB, free: 7.309 MB / 350.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 8.301e-05/0.127, allocations: 143.5 kB / 476.9 MB, free: 7.152 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.135e-06/0.127, allocations: 4.031 kB / 476.9 MB, free: 7.148 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.558e-06/0.127, allocations: 7.078 kB / 476.9 MB, free: 7.145 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.452e-06/0.127, allocations: 0 / 476.9 MB, free: 7.145 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.1271, allocations: 0 / 476.9 MB, free: 7.145 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-06/0.1271, allocations: 0 / 476.9 MB, free: 7.145 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.007e-05/0.1272, allocations: 153.6 kB / 477 MB, free: 6.945 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.193e-06/0.1272, allocations: 0 / 477 MB, free: 6.945 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.81e-07/0.1272, allocations: 0 / 477 MB, free: 6.945 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.1272, allocations: 0 / 477 MB, free: 6.945 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.041e-06/0.1272, allocations: 0 / 477 MB, free: 6.945 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.1272, allocations: 0 / 477 MB, free: 6.945 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.1272, allocations: 11.94 kB / 477 MB, free: 6.934 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001018/0.1273, allocations: 98.7 kB / 477.1 MB, free: 6.812 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.41e-05/0.1273, allocations: 77.11 kB / 477.2 MB, free: 6.719 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.628e-05/0.1274, allocations: 4 kB / 477.2 MB, free: 6.715 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.668e-06/0.1274, allocations: 0 / 477.2 MB, free: 6.715 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.304e-05/0.1274, allocations: 3.984 kB / 477.2 MB, free: 6.711 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.946e-06/0.1274, allocations: 0 / 477.2 MB, free: 6.711 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.634e-05/0.1274, allocations: 79.31 kB / 477.3 MB, free: 6.633 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.392e-06/0.1274, allocations: 0 / 477.3 MB, free: 6.633 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003688/0.1278, allocations: 59.86 kB / 477.3 MB, free: 6.574 MB / 350.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.001824/0.1296, allocations: 0.5366 MB / 477.9 MB, free: 6.105 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001035/0.1298, allocations: 63.34 kB / 477.9 MB, free: 6.031 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.1298, allocations: 0 / 477.9 MB, free: 6.031 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.665e-05/0.1298, allocations: 55.41 kB / 478 MB, free: 5.965 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001404/0.13, allocations: 3.938 kB / 478 MB, free: 5.961 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002061/0.1302, allocations: 114.5 kB / 478.1 MB, free: 5.816 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002246/0.1304, allocations: 0.673 MB / 478.8 MB, free: 5.117 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.266e-05/0.1304, allocations: 11.44 kB / 478.8 MB, free: 5.109 MB / 350.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1304, allocations: 0 / 478.8 MB, free: 5.109 MB / 350.1 MB Notification: Performance of Templates: time 0.005135/0.1356, allocations: 2.595 MB / 481.4 MB, free: 2.512 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Math.TestColorMapToSvg.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches