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.001131/0.001131, allocations: 108.2 kB / 18.39 MB, free: 4.629 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.001221/0.001221, allocations: 182.9 kB / 19.33 MB, free: 3.699 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.348/1.348, allocations: 222.9 MB / 243 MB, free: 15.08 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.2095/0.2095, allocations: 44.18 MB / 337.4 MB, free: 2.691 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00128/0.00128, allocations: 64.83 kB / 409.9 MB, free: 26.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1175/0.1188, allocations: 60.82 MB / 470.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001715/0.1206, allocations: 482.9 kB / 471.2 MB, free: 13.19 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001917/0.1225, allocations: 1.15 MB / 472.3 MB, free: 12.03 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.783e-05/0.1226, allocations: 0 / 472.3 MB, free: 12.03 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.939e-06/0.1226, allocations: 0 / 472.3 MB, free: 12.03 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.789e-06/0.1226, allocations: 0 / 472.3 MB, free: 12.03 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.002014/0.1246, allocations: 0.6954 MB / 473 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.317e-05/0.1247, allocations: 4 kB / 473 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.311e-05/0.1247, allocations: 0 / 473 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.646e-05/0.1248, allocations: 3.984 kB / 473 MB, free: 11.33 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.599e-05/0.1248, allocations: 3.938 kB / 473 MB, free: 11.33 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.102e-06/0.1248, allocations: 0 / 473 MB, free: 11.33 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002848/0.1276, allocations: 2.448 MB / 475.5 MB, free: 8.875 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.486e-06/0.1277, allocations: 0 / 475.5 MB, free: 8.875 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.649e-05/0.1277, allocations: 0 / 475.5 MB, free: 8.875 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004286/0.1281, allocations: 363.5 kB / 475.8 MB, free: 8.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.1281, allocations: 0 / 475.8 MB, free: 8.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1281, allocations: 0 / 475.8 MB, free: 8.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.418e-06/0.1281, allocations: 0 / 475.8 MB, free: 8.52 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.0004008/0.1285, allocations: 381 kB / 476.2 MB, free: 8.094 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.705e-05/0.1286, allocations: 12.03 kB / 476.2 MB, free: 8.082 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.025e-05/0.1286, allocations: 0 / 476.2 MB, free: 8.082 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.945e-05/0.1287, allocations: 159.1 kB / 476.4 MB, free: 7.887 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.117e-05/0.1287, allocations: 3.938 kB / 476.4 MB, free: 7.883 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.163e-06/0.1288, allocations: 0 / 476.4 MB, free: 7.883 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.782e-05/0.1288, allocations: 37.64 kB / 476.4 MB, free: 7.84 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.271e-06/0.1289, allocations: 0 / 476.4 MB, free: 7.84 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.695e-06/0.1289, allocations: 4 kB / 476.4 MB, free: 7.836 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.667e-06/0.1289, allocations: 0 / 476.4 MB, free: 7.836 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.909e-05/0.1289, allocations: 7.984 kB / 476.4 MB, free: 7.828 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001414/0.1291, allocations: 141.7 kB / 476.6 MB, free: 7.641 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.788e-05/0.1291, allocations: 22.52 kB / 476.6 MB, free: 7.609 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.459e-05/0.1291, allocations: 8.953 kB / 476.6 MB, free: 7.598 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.933e-06/0.1291, allocations: 3.938 kB / 476.6 MB, free: 7.594 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.015e-05/0.1292, allocations: 64.27 kB / 476.7 MB, free: 7.516 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.082e-06/0.1292, allocations: 0 / 476.7 MB, free: 7.516 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001491/0.1293, allocations: 63.39 kB / 476.7 MB, free: 7.441 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.571e-05/0.1294, allocations: 81.11 kB / 476.8 MB, free: 7.344 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.303e-05/0.1294, allocations: 89.86 kB / 476.9 MB, free: 7.246 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.049e-05/0.1295, allocations: 25.7 kB / 476.9 MB, free: 7.215 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.515e-05/0.1295, allocations: 80.14 kB / 477 MB, free: 7.133 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.664e-05/0.1295, allocations: 7.938 kB / 477 MB, free: 7.125 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.606e-05/0.1295, allocations: 13.84 kB / 477 MB, free: 7.105 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001055/0.1297, allocations: 314.8 kB / 477.3 MB, free: 6.789 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.139e-05/0.1297, allocations: 4 kB / 477.3 MB, free: 6.785 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.683e-06/0.1297, allocations: 3.938 kB / 477.3 MB, free: 6.781 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.32e-05/0.1297, allocations: 64.27 kB / 477.4 MB, free: 6.703 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.1297, allocations: 3.938 kB / 477.4 MB, free: 6.699 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.39e-05/0.1298, allocations: 59.34 kB / 477.4 MB, free: 6.629 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.407e-05/0.1299, allocations: 37.69 kB / 477.5 MB, free: 6.586 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.1299, allocations: 4.094 kB / 477.5 MB, free: 6.582 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.139e-05/0.1299, allocations: 0 / 477.5 MB, free: 6.582 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.31e-07/0.1299, allocations: 0 / 477.5 MB, free: 6.582 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.749e-06/0.1299, allocations: 0 / 477.5 MB, free: 6.582 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.393e-05/0.1299, allocations: 0 / 477.5 MB, free: 6.582 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.614e-06/0.1299, allocations: 4 kB / 477.5 MB, free: 6.578 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 7.981e-05/0.13, allocations: 135.5 kB / 477.6 MB, free: 6.43 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.078e-05/0.13, allocations: 4 kB / 477.6 MB, free: 6.426 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.997e-06/0.13, allocations: 11.02 kB / 477.6 MB, free: 6.418 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.1301, allocations: 11.98 kB / 477.6 MB, free: 6.406 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/0.1301, allocations: 0 / 477.6 MB, free: 6.406 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.285e-06/0.1301, allocations: 0 / 477.6 MB, free: 6.406 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.515e-05/0.1302, allocations: 145.6 kB / 477.8 MB, free: 6.215 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.1302, allocations: 0 / 477.8 MB, free: 6.215 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.11e-07/0.1302, allocations: 0 / 477.8 MB, free: 6.215 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.747e-06/0.1302, allocations: 4 kB / 477.8 MB, free: 6.211 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.212e-06/0.1302, allocations: 0 / 477.8 MB, free: 6.211 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.1302, allocations: 0 / 477.8 MB, free: 6.211 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.1302, allocations: 0 / 477.8 MB, free: 6.211 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001098/0.1303, allocations: 102.8 kB / 477.9 MB, free: 6.086 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.974e-05/0.1304, allocations: 77.11 kB / 478 MB, free: 5.992 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.43e-05/0.1304, allocations: 3.984 kB / 478 MB, free: 5.988 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.268e-06/0.1304, allocations: 0 / 478 MB, free: 5.988 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.068e-05/0.1304, allocations: 3.984 kB / 478 MB, free: 5.984 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.638e-06/0.1304, allocations: 4 kB / 478 MB, free: 5.98 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.362e-05/0.1305, allocations: 75.28 kB / 478.1 MB, free: 5.906 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.665e-06/0.1305, allocations: 0 / 478.1 MB, free: 5.906 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003337/0.1308, allocations: 67.83 kB / 478.1 MB, free: 5.84 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.001364/0.1322, allocations: 0.5316 MB / 478.7 MB, free: 5.375 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.866e-05/0.1323, allocations: 63.39 kB / 478.7 MB, free: 5.301 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.1323, allocations: 0 / 478.7 MB, free: 5.301 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.988e-05/0.1323, allocations: 55.41 kB / 478.8 MB, free: 5.234 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001337/0.1325, allocations: 7.938 kB / 478.8 MB, free: 5.227 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002007/0.1327, allocations: 84.84 kB / 478.9 MB, free: 5.117 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002392/0.1329, allocations: 0.6729 MB / 479.5 MB, free: 4.418 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.28e-06/0.1329, allocations: 0 / 479.5 MB, free: 4.418 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.147e-05/0.133, allocations: 7.438 kB / 479.5 MB, free: 4.414 MB / 350.1 MB Notification: Performance of SimCode: time 2.61e-07/0.133, allocations: 8.125 kB / 479.5 MB, free: 4.406 MB / 350.1 MB Notification: Performance of Templates: time 0.005454/0.1384, allocations: 2.133 MB / 481.7 MB, free: 2.27 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 -s gbode -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