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.001481/0.001481, allocations: 101.5 kB / 17.85 MB, free: 5.66 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.001842/0.001842, allocations: 194 kB / 18.77 MB, free: 4.742 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.368/1.368, allocations: 222.9 MB / 242.4 MB, free: 15.44 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.2164/0.2164, allocations: 44.18 MB / 336.8 MB, free: 3 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001224/0.001224, allocations: 73.16 kB / 408.4 MB, free: 27.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1019, allocations: 60.81 MB / 469.2 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001872/0.1038, allocations: 0.552 MB / 469.7 MB, free: 14.31 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001967/0.1058, allocations: 1.189 MB / 470.9 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.081e-05/0.1058, allocations: 0 / 470.9 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.418e-05/0.1059, allocations: 0 / 470.9 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.779e-06/0.1059, allocations: 0 / 470.9 MB, free: 13.11 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.001922/0.1078, allocations: 0.6338 MB / 471.5 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.065e-05/0.1079, allocations: 11.94 kB / 471.6 MB, free: 12.47 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.244e-05/0.1079, allocations: 0 / 471.6 MB, free: 12.47 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.392e-05/0.1079, allocations: 0 / 471.6 MB, free: 12.47 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.616e-05/0.1079, allocations: 7.875 kB / 471.6 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.541e-06/0.108, allocations: 0 / 471.6 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00321/0.1112, allocations: 2.601 MB / 474.2 MB, free: 9.859 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.077e-06/0.1112, allocations: 3.984 kB / 474.2 MB, free: 9.855 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.327e-05/0.1112, allocations: 4 kB / 474.2 MB, free: 9.852 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003767/0.1116, allocations: 291.7 kB / 474.5 MB, free: 9.566 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.1116, allocations: 0 / 474.5 MB, free: 9.566 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1116, allocations: 0 / 474.5 MB, free: 9.566 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.017e-06/0.1116, allocations: 0 / 474.5 MB, free: 9.566 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.0004452/0.1121, allocations: 373.1 kB / 474.8 MB, free: 9.148 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.467e-05/0.1121, allocations: 8.031 kB / 474.8 MB, free: 9.141 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.181e-05/0.1122, allocations: 7.938 kB / 474.8 MB, free: 9.133 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001045/0.1123, allocations: 167.1 kB / 475 MB, free: 8.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.151e-05/0.1123, allocations: 0 / 475 MB, free: 8.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.137e-06/0.1123, allocations: 0 / 475 MB, free: 8.93 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.959e-05/0.1124, allocations: 29.7 kB / 475 MB, free: 8.895 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.646e-06/0.1124, allocations: 0 / 475 MB, free: 8.895 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.257e-06/0.1125, allocations: 7.938 kB / 475 MB, free: 8.887 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.049e-06/0.1125, allocations: 0 / 475 MB, free: 8.887 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.948e-05/0.1125, allocations: 3.938 kB / 475 MB, free: 8.883 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00012/0.1126, allocations: 145.7 kB / 475.2 MB, free: 8.691 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.393e-05/0.1127, allocations: 18.58 kB / 475.2 MB, free: 8.664 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.493e-05/0.1127, allocations: 8.859 kB / 475.2 MB, free: 8.652 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.865e-06/0.1127, allocations: 0 / 475.2 MB, free: 8.652 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.264e-05/0.1128, allocations: 64.33 kB / 475.3 MB, free: 8.574 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.102e-06/0.1128, allocations: 0 / 475.3 MB, free: 8.574 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.000176/0.1129, allocations: 67.33 kB / 475.3 MB, free: 8.496 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.717e-05/0.113, allocations: 77.11 kB / 475.4 MB, free: 8.402 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.76e-05/0.1131, allocations: 93.8 kB / 475.5 MB, free: 8.301 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.574e-05/0.1131, allocations: 29.7 kB / 475.5 MB, free: 8.266 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.16e-05/0.1131, allocations: 80.14 kB / 475.6 MB, free: 8.184 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.886e-05/0.1131, allocations: 3.938 kB / 475.6 MB, free: 8.18 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.669e-05/0.1132, allocations: 17.84 kB / 475.6 MB, free: 8.156 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001031/0.1133, allocations: 310.8 kB / 475.9 MB, free: 7.844 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.197e-06/0.1133, allocations: 3.938 kB / 475.9 MB, free: 7.84 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.06e-06/0.1133, allocations: 0 / 475.9 MB, free: 7.84 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.505e-05/0.1134, allocations: 68.19 kB / 476 MB, free: 7.758 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.1134, allocations: 0 / 476 MB, free: 7.758 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.222e-05/0.1134, allocations: 63.41 kB / 476.1 MB, free: 7.684 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.516e-05/0.1135, allocations: 29.7 kB / 476.1 MB, free: 7.648 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.547e-06/0.1135, allocations: 4.094 kB / 476.1 MB, free: 7.645 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.294e-05/0.1135, allocations: 7.984 kB / 476.1 MB, free: 7.637 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.262e-06/0.1135, allocations: 3.938 kB / 476.1 MB, free: 7.633 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.1135, allocations: 3.984 kB / 476.1 MB, free: 7.629 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.829e-05/0.1136, allocations: 3.938 kB / 476.1 MB, free: 7.625 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.723e-06/0.1136, allocations: 0 / 476.1 MB, free: 7.625 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.904e-05/0.1136, allocations: 139.5 kB / 476.3 MB, free: 7.473 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.375e-06/0.1137, allocations: 0 / 476.3 MB, free: 7.473 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.062e-05/0.1137, allocations: 7.078 kB / 476.3 MB, free: 7.469 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.1137, allocations: 4 kB / 476.3 MB, free: 7.465 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.1137, allocations: 0 / 476.3 MB, free: 7.465 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.1137, allocations: 7.938 kB / 476.3 MB, free: 7.457 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.365e-05/0.1138, allocations: 153.7 kB / 476.4 MB, free: 7.258 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.1138, allocations: 0 / 476.4 MB, free: 7.258 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-07/0.1138, allocations: 0 / 476.4 MB, free: 7.258 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.923e-06/0.1138, allocations: 0 / 476.4 MB, free: 7.258 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.294e-06/0.1138, allocations: 0 / 476.4 MB, free: 7.258 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.1138, allocations: 3.938 kB / 476.4 MB, free: 7.254 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/0.1138, allocations: 7.984 kB / 476.4 MB, free: 7.246 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.139e-05/0.1139, allocations: 94.77 kB / 476.5 MB, free: 7.129 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.061e-05/0.114, allocations: 77.11 kB / 476.6 MB, free: 7.035 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.054e-05/0.114, allocations: 4 kB / 476.6 MB, free: 7.031 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.728e-06/0.114, allocations: 0 / 476.6 MB, free: 7.031 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.566e-05/0.114, allocations: 3.938 kB / 476.6 MB, free: 7.027 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.066e-06/0.114, allocations: 0 / 476.6 MB, free: 7.027 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.637e-05/0.1141, allocations: 75.28 kB / 476.7 MB, free: 6.953 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1141, allocations: 4.031 kB / 476.7 MB, free: 6.949 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003503/0.1144, allocations: 51.98 kB / 476.7 MB, free: 6.898 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.001727/0.1162, allocations: 0.5269 MB / 477.3 MB, free: 6.434 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.204e-05/0.1163, allocations: 71.28 kB / 477.3 MB, free: 6.352 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.1163, allocations: 0 / 477.3 MB, free: 6.352 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.356e-05/0.1163, allocations: 59.39 kB / 477.4 MB, free: 6.281 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000121/0.1165, allocations: 3.938 kB / 477.4 MB, free: 6.277 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001911/0.1167, allocations: 112.3 kB / 477.5 MB, free: 6.133 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002271/0.1169, allocations: 0.6731 MB / 478.2 MB, free: 5.434 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.124e-05/0.1169, allocations: 11.44 kB / 478.2 MB, free: 5.426 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1169, allocations: 4.125 kB / 478.2 MB, free: 5.422 MB / 350.1 MB Notification: Performance of Templates: time 0.004317/0.1212, allocations: 2.571 MB / 480.8 MB, free: 2.848 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