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.001915/0.001915, allocations: 105.4 kB / 18.4 MB, free: 4.57 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.001943/0.001943, allocations: 188 kB / 19.34 MB, free: 3.641 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.387/1.387, allocations: 222.9 MB / 243 MB, free: 15.13 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.207/0.207, allocations: 44.18 MB / 337.4 MB, free: 2.719 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001192/0.001192, allocations: 70.8 kB / 409.9 MB, free: 26.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1132, allocations: 60.82 MB / 470.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001844/0.1151, allocations: 494.8 kB / 471.2 MB, free: 13.19 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001921/0.117, allocations: 1.154 MB / 472.3 MB, free: 12.03 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.937e-05/0.1171, allocations: 0 / 472.3 MB, free: 12.03 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.321e-05/0.1171, allocations: 3.938 kB / 472.3 MB, free: 12.03 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.364e-06/0.1171, 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.002056/0.1192, allocations: 0.677 MB / 473 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.853e-05/0.1193, allocations: 0 / 473 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.971e-05/0.1193, allocations: 7.984 kB / 473 MB, free: 11.35 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.486e-05/0.1193, allocations: 0 / 473 MB, free: 11.35 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.837e-05/0.1193, allocations: 4 kB / 473 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.46e-06/0.1194, allocations: 0 / 473 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002855/0.1222, allocations: 2.444 MB / 475.5 MB, free: 8.895 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.027e-06/0.1222, allocations: 0 / 475.5 MB, free: 8.895 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.358e-05/0.1223, allocations: 3.984 kB / 475.5 MB, free: 8.891 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004162/0.1227, allocations: 359.5 kB / 475.8 MB, free: 8.539 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.187e-06/0.1227, allocations: 0 / 475.8 MB, free: 8.539 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.276e-06/0.1227, allocations: 4 kB / 475.8 MB, free: 8.535 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.29e-06/0.1227, allocations: 0 / 475.8 MB, free: 8.535 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.0004761/0.1232, allocations: 377.1 kB / 476.2 MB, free: 8.113 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.1233, allocations: 8.031 kB / 476.2 MB, free: 8.105 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.618e-05/0.1233, allocations: 0 / 476.2 MB, free: 8.105 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001127/0.1234, allocations: 159.1 kB / 476.4 MB, free: 7.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.462e-05/0.1234, allocations: 7.938 kB / 476.4 MB, free: 7.902 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.37e-05/0.1235, allocations: 0 / 476.4 MB, free: 7.902 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.819e-05/0.1236, allocations: 33.64 kB / 476.4 MB, free: 7.863 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.135e-06/0.1236, allocations: 0 / 476.4 MB, free: 7.863 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.14e-05/0.1236, allocations: 7.984 kB / 476.4 MB, free: 7.855 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.184e-06/0.1236, allocations: 4 kB / 476.4 MB, free: 7.852 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.219e-05/0.1236, allocations: 11.86 kB / 476.4 MB, free: 7.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001403/0.1238, allocations: 149.7 kB / 476.6 MB, free: 7.645 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.462e-05/0.1238, allocations: 22.55 kB / 476.6 MB, free: 7.613 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.355e-05/0.1238, allocations: 4.859 kB / 476.6 MB, free: 7.605 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.021e-05/0.1239, allocations: 3.938 kB / 476.6 MB, free: 7.602 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.074e-05/0.1239, allocations: 64.33 kB / 476.7 MB, free: 7.523 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.092e-06/0.1239, allocations: 0 / 476.7 MB, free: 7.523 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001719/0.1241, allocations: 63.39 kB / 476.7 MB, free: 7.449 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.775e-05/0.1242, allocations: 81.11 kB / 476.8 MB, free: 7.352 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.894e-05/0.1242, allocations: 89.86 kB / 476.9 MB, free: 7.254 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.403e-05/0.1242, allocations: 25.7 kB / 476.9 MB, free: 7.223 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.323e-05/0.1243, allocations: 80.14 kB / 477 MB, free: 7.141 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.571e-05/0.1243, allocations: 0 / 477 MB, free: 7.141 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.02e-05/0.1243, allocations: 17.84 kB / 477 MB, free: 7.117 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001178/0.1244, allocations: 314.8 kB / 477.3 MB, free: 6.801 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.287e-06/0.1245, allocations: 0 / 477.3 MB, free: 6.801 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.636e-06/0.1245, allocations: 7.938 kB / 477.3 MB, free: 6.793 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.062e-05/0.1245, allocations: 60.27 kB / 477.4 MB, free: 6.719 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.1245, allocations: 0 / 477.4 MB, free: 6.719 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.753e-05/0.1246, allocations: 67.33 kB / 477.5 MB, free: 6.641 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.079e-05/0.1247, allocations: 29.7 kB / 477.5 MB, free: 6.605 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.1247, allocations: 4.094 kB / 477.5 MB, free: 6.602 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.418e-05/0.1247, allocations: 0 / 477.5 MB, free: 6.602 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.62e-07/0.1247, allocations: 4 kB / 477.5 MB, free: 6.598 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.661e-06/0.1247, allocations: 0 / 477.5 MB, free: 6.598 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.518e-05/0.1247, allocations: 0 / 477.5 MB, free: 6.598 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.824e-06/0.1247, allocations: 0 / 477.5 MB, free: 6.598 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 9.39e-05/0.1248, allocations: 143.5 kB / 477.6 MB, free: 6.441 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.604e-06/0.1248, allocations: 0 / 477.6 MB, free: 6.441 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.289e-05/0.1249, allocations: 11.06 kB / 477.6 MB, free: 6.434 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.142e-06/0.1249, allocations: 7.938 kB / 477.7 MB, free: 6.426 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.1249, allocations: 0 / 477.7 MB, free: 6.426 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.1249, allocations: 0 / 477.7 MB, free: 6.426 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001009/0.125, allocations: 153.6 kB / 477.8 MB, free: 6.227 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.51e-07/0.125, allocations: 0 / 477.8 MB, free: 6.227 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.635e-06/0.125, allocations: 0 / 477.8 MB, free: 6.227 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.172e-06/0.125, allocations: 3.938 kB / 477.8 MB, free: 6.223 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.555e-06/0.125, allocations: 0 / 477.8 MB, free: 6.223 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.21e-07/0.125, allocations: 0 / 477.8 MB, free: 6.223 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.125, allocations: 3.984 kB / 477.8 MB, free: 6.219 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001001/0.1251, allocations: 94.78 kB / 477.9 MB, free: 6.102 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.296e-05/0.1252, allocations: 77.11 kB / 478 MB, free: 6.008 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.526e-05/0.1252, allocations: 11.92 kB / 478 MB, free: 5.996 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.115e-06/0.1252, allocations: 0 / 478 MB, free: 5.996 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.385e-05/0.1252, allocations: 0 / 478 MB, free: 5.996 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.305e-06/0.1252, allocations: 0 / 478 MB, free: 5.996 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.63e-05/0.1253, allocations: 75.28 kB / 478.1 MB, free: 5.922 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1253, allocations: 0 / 478.1 MB, free: 5.922 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003033/0.1256, allocations: 63.95 kB / 478.1 MB, free: 5.859 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.001266/0.1269, allocations: 0.539 MB / 478.7 MB, free: 5.387 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.847e-05/0.127, allocations: 63.39 kB / 478.7 MB, free: 5.312 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.127, allocations: 0 / 478.7 MB, free: 5.312 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.056e-05/0.127, allocations: 55.41 kB / 478.8 MB, free: 5.246 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000123/0.1271, allocations: 3.938 kB / 478.8 MB, free: 5.242 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001626/0.1273, allocations: 88.78 kB / 478.9 MB, free: 5.129 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002919/0.1276, allocations: 0.6729 MB / 479.5 MB, free: 4.43 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.29e-06/0.1276, allocations: 4 kB / 479.5 MB, free: 4.426 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.128e-05/0.1276, allocations: 7.438 kB / 479.6 MB, free: 4.422 MB / 350.1 MB Notification: Performance of SimCode: time 2e-07/0.1276, allocations: 0 / 479.6 MB, free: 4.422 MB / 350.1 MB Notification: Performance of Templates: time 0.005034/0.1327, allocations: 2.137 MB / 481.7 MB, free: 2.281 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 cvode -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