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.001254/0.001254, allocations: 112.6 kB / 17.83 MB, free: 5.211 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.001189/0.001189, allocations: 188 kB / 18.77 MB, free: 4.277 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.49/1.49, allocations: 225.6 MB / 245.1 MB, free: 14.14 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.2429/0.2429, allocations: 44.91 MB / 342.9 MB, free: 15.12 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001951/0.001951, allocations: 63.91 kB / 483.6 MB, free: 5.684 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4142/0.4161, allocations: 64.25 MB / 0.535 GB, free: 12.79 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001759/0.4179, allocations: 0.4949 MB / 0.5355 GB, free: 12.41 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00234/0.4202, allocations: 1.153 MB / 0.5366 GB, free: 11.54 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.88e-05/0.4202, allocations: 1 kB / 0.5366 GB, free: 11.54 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.516e-05/0.4203, allocations: 0 / 0.5366 GB, free: 11.54 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 8.115e-06/0.4203, allocations: 0 / 0.5366 GB, free: 11.54 MB / 398.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.002259/0.4225, allocations: 0.6805 MB / 0.5373 GB, free: 11.16 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.8e-05/0.4226, allocations: 1.406 kB / 0.5373 GB, free: 11.16 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.966e-05/0.4226, allocations: 1.656 kB / 0.5373 GB, free: 11.16 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.966e-05/0.4226, allocations: 3.938 kB / 0.5373 GB, free: 11.15 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.717e-05/0.4227, allocations: 1.531 kB / 0.5373 GB, free: 11.15 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.49e-06/0.4227, allocations: 4 kB / 0.5373 GB, free: 11.15 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003975/0.4266, allocations: 2.448 MB / 0.5397 GB, free: 10.03 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.901e-05/0.4267, allocations: 15.86 kB / 0.5397 GB, free: 10.01 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.522e-05/0.4267, allocations: 5.141 kB / 0.5397 GB, free: 10.01 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005496/0.4272, allocations: 348.9 kB / 0.54 GB, free: 9.875 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.4272, allocations: 5.406 kB / 0.54 GB, free: 9.871 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.725e-06/0.4272, allocations: 0 / 0.54 GB, free: 9.871 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.155e-06/0.4272, allocations: 0 / 0.54 GB, free: 9.871 MB / 398.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.0005839/0.4278, allocations: 383.2 kB / 0.5404 GB, free: 9.457 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.051e-05/0.4279, allocations: 9.969 kB / 0.5404 GB, free: 9.457 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.489e-05/0.4279, allocations: 4 kB / 0.5404 GB, free: 9.453 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000151/0.4281, allocations: 163 kB / 0.5406 GB, free: 9.254 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.058e-05/0.4281, allocations: 9.344 kB / 0.5406 GB, free: 9.246 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.308e-05/0.4281, allocations: 0 / 0.5406 GB, free: 9.246 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001163/0.4282, allocations: 40.73 kB / 0.5406 GB, free: 9.203 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.4282, allocations: 0 / 0.5406 GB, free: 9.203 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.418e-06/0.4282, allocations: 0 / 0.5406 GB, free: 9.203 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.666e-06/0.4282, allocations: 1.531 kB / 0.5406 GB, free: 9.203 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.917e-05/0.4283, allocations: 1.344 kB / 0.5406 GB, free: 9.203 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001683/0.4284, allocations: 147.2 kB / 0.5407 GB, free: 9.012 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.147e-05/0.4285, allocations: 31.88 kB / 0.5408 GB, free: 8.973 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.598e-05/0.4285, allocations: 6.641 kB / 0.5408 GB, free: 8.965 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.809e-06/0.4285, allocations: 0 / 0.5408 GB, free: 8.965 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.124e-05/0.4286, allocations: 60.25 kB / 0.5408 GB, free: 8.891 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.163e-06/0.4286, allocations: 1.844 kB / 0.5408 GB, free: 8.891 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001911/0.4288, allocations: 65.12 kB / 0.5409 GB, free: 8.82 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.717e-05/0.4288, allocations: 77.98 kB / 0.541 GB, free: 8.727 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.304e-05/0.4289, allocations: 94.86 kB / 0.5411 GB, free: 8.625 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.652e-05/0.4289, allocations: 25.7 kB / 0.5411 GB, free: 8.594 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.572e-05/0.4289, allocations: 81.52 kB / 0.5412 GB, free: 8.512 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.222e-05/0.4289, allocations: 3.938 kB / 0.5412 GB, free: 8.508 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.475e-05/0.429, allocations: 16.17 kB / 0.5412 GB, free: 8.488 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001451/0.4291, allocations: 310.8 kB / 0.5415 GB, free: 8.176 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.588e-06/0.4291, allocations: 1.719 kB / 0.5415 GB, free: 8.176 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.077e-06/0.4291, allocations: 5.344 kB / 0.5415 GB, free: 8.172 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.485e-05/0.4292, allocations: 62.77 kB / 0.5416 GB, free: 8.098 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.4292, allocations: 0 / 0.5416 GB, free: 8.098 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.88e-05/0.4293, allocations: 66.7 kB / 0.5416 GB, free: 8.027 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.863e-05/0.4293, allocations: 31.42 kB / 0.5417 GB, free: 7.996 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.937e-06/0.4293, allocations: 0 / 0.5417 GB, free: 7.996 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.516e-05/0.4293, allocations: 0 / 0.5417 GB, free: 7.996 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.41e-07/0.4293, allocations: 1.125 kB / 0.5417 GB, free: 7.996 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.494e-06/0.4293, allocations: 3.938 kB / 0.5417 GB, free: 7.992 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.614e-05/0.4294, allocations: 1.156 kB / 0.5417 GB, free: 7.992 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.843e-06/0.4294, allocations: 7.969 kB / 0.5417 GB, free: 7.984 MB / 398.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 0.0001144/0.4295, allocations: 141.7 kB / 0.5418 GB, free: 7.832 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.208e-05/0.4295, allocations: 9.062 kB / 0.5418 GB, free: 7.824 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.073e-05/0.4295, allocations: 8.266 kB / 0.5418 GB, free: 7.82 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.183e-06/0.4295, allocations: 0 / 0.5418 GB, free: 7.82 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.4295, allocations: 0 / 0.5418 GB, free: 7.82 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.425e-06/0.4295, allocations: 1.125 kB / 0.5418 GB, free: 7.82 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001255/0.4296, allocations: 146.8 kB / 0.542 GB, free: 7.629 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-07/0.4296, allocations: 0 / 0.542 GB, free: 7.629 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.91e-07/0.4296, allocations: 5.094 kB / 0.542 GB, free: 7.625 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.012e-06/0.4296, allocations: 0 / 0.542 GB, free: 7.625 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.023e-05/0.4297, allocations: 5.047 kB / 0.542 GB, free: 7.621 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.4297, allocations: 0 / 0.542 GB, free: 7.621 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.4297, allocations: 5.219 kB / 0.542 GB, free: 7.617 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001194/0.4298, allocations: 88.69 kB / 0.5421 GB, free: 7.516 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.624e-05/0.4298, allocations: 82.03 kB / 0.5421 GB, free: 7.418 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.612e-05/0.4299, allocations: 1.031 kB / 0.5421 GB, free: 7.418 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.789e-06/0.4299, allocations: 8.938 kB / 0.5421 GB, free: 7.41 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.238e-05/0.4299, allocations: 4.969 kB / 0.5421 GB, free: 7.406 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.695e-06/0.4299, allocations: 0 / 0.5421 GB, free: 7.406 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.233e-05/0.4299, allocations: 76.03 kB / 0.5422 GB, free: 7.332 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4299, allocations: 0 / 0.5422 GB, free: 7.332 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003796/0.4303, allocations: 59.95 kB / 0.5423 GB, free: 7.305 MB / 398.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.001767/0.4321, allocations: 0.5353 MB / 0.5428 GB, free: 7.02 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001909/0.4323, allocations: 55.59 kB / 0.5429 GB, free: 6.957 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.4323, allocations: 1.125 kB / 0.5429 GB, free: 6.957 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.31e-05/0.4323, allocations: 54.53 kB / 0.5429 GB, free: 6.895 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001334/0.4325, allocations: 9 kB / 0.5429 GB, free: 6.887 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002556/0.4327, allocations: 81.31 kB / 0.543 GB, free: 6.789 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003697/0.4331, allocations: 0.674 MB / 0.5437 GB, free: 6.09 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.107e-05/0.4331, allocations: 3.938 kB / 0.5437 GB, free: 6.086 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.715e-05/0.4331, allocations: 9.938 kB / 0.5437 GB, free: 6.078 MB / 398.1 MB Notification: Performance of SimCode: time 7.01e-07/0.4331, allocations: 0 / 0.5437 GB, free: 6.078 MB / 398.1 MB Notification: Performance of Templates: time 0.007006/0.4401, allocations: 2.144 MB / 0.5458 GB, free: 5.086 MB / 398.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestColorMapToSvg/TestColorMapToSvg.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches