Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Math.TestColorMapToSvg,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg") translateModel(ModelicaTest.Math.TestColorMapToSvg,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001168/0.001168, allocations: 114.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00121/0.001211, allocations: 209.2 kB / 18.74 MB, free: 4.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.406/1.406, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2152/0.2152, allocations: 46.1 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001532/0.001532, allocations: 71.88 kB / 481.3 MB, free: 4.062 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3484/0.35, allocations: 62.43 MB / 0.531 GB, free: 13.82 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001715/0.3517, allocations: 0.4901 MB / 0.5314 GB, free: 13.45 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002322/0.3541, allocations: 1.139 MB / 0.5326 GB, free: 12.59 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.101e-05/0.3541, allocations: 0 / 0.5326 GB, free: 12.59 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.514e-05/0.3541, allocations: 0 / 0.5326 GB, free: 12.59 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.353e-06/0.3542, allocations: 5.375 kB / 0.5326 GB, free: 12.59 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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 trunk/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.002384/0.3566, allocations: 0.6762 MB / 0.5332 GB, free: 12.2 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 7.044e-05/0.3566, allocations: 6.125 kB / 0.5332 GB, free: 12.2 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.303e-05/0.3567, allocations: 5.312 kB / 0.5332 GB, free: 12.2 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.861e-05/0.3567, allocations: 0 / 0.5332 GB, free: 12.2 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.138e-05/0.3568, allocations: 1.062 kB / 0.5332 GB, free: 12.2 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.714e-06/0.3568, allocations: 0 / 0.5332 GB, free: 12.2 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00304/0.3598, allocations: 2.448 MB / 0.5356 GB, free: 11.07 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.534e-06/0.3598, allocations: 0 / 0.5356 GB, free: 11.07 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.583e-05/0.3599, allocations: 5.109 kB / 0.5356 GB, free: 11.07 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004157/0.3603, allocations: 356.6 kB / 0.536 GB, free: 10.93 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.3603, allocations: 5.312 kB / 0.536 GB, free: 10.93 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.724e-06/0.3603, allocations: 4 kB / 0.536 GB, free: 10.92 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.739e-06/0.3603, allocations: 0 / 0.536 GB, free: 10.92 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.0003795/0.3607, allocations: 377.3 kB / 0.5363 GB, free: 10.51 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.335e-05/0.3607, allocations: 9.531 kB / 0.5364 GB, free: 10.51 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.724e-05/0.3608, allocations: 1.094 kB / 0.5364 GB, free: 10.51 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.962e-05/0.3609, allocations: 163.1 kB / 0.5365 GB, free: 10.31 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.979e-06/0.3609, allocations: 8.969 kB / 0.5365 GB, free: 10.3 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.458e-06/0.3609, allocations: 8.922 kB / 0.5365 GB, free: 10.3 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.031e-05/0.361, allocations: 31.92 kB / 0.5366 GB, free: 10.26 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.779e-06/0.361, allocations: 4 kB / 0.5366 GB, free: 10.26 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.464e-06/0.361, allocations: 0 / 0.5366 GB, free: 10.26 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.386e-06/0.361, allocations: 1.125 kB / 0.5366 GB, free: 10.26 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.442e-05/0.361, allocations: 1.125 kB / 0.5366 GB, free: 10.26 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000117/0.3611, allocations: 150.8 kB / 0.5367 GB, free: 10.06 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.486e-05/0.3612, allocations: 24.48 kB / 0.5367 GB, free: 10.03 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.189e-05/0.3612, allocations: 6.016 kB / 0.5367 GB, free: 10.02 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.554e-06/0.3612, allocations: 0 / 0.5367 GB, free: 10.02 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.69e-05/0.3613, allocations: 65.36 kB / 0.5368 GB, free: 9.945 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.32e-07/0.3613, allocations: 1.281 kB / 0.5368 GB, free: 9.945 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001461/0.3614, allocations: 74.84 kB / 0.5369 GB, free: 9.867 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.727e-05/0.3615, allocations: 77.11 kB / 0.5369 GB, free: 9.773 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.837e-05/0.3615, allocations: 93.81 kB / 0.537 GB, free: 9.672 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.829e-06/0.3615, allocations: 27.08 kB / 0.5371 GB, free: 9.641 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.188e-05/0.3615, allocations: 80.14 kB / 0.5371 GB, free: 9.559 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.685e-05/0.3616, allocations: 5.312 kB / 0.5371 GB, free: 9.555 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.332e-05/0.3616, allocations: 10.84 kB / 0.5372 GB, free: 9.539 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.09e-05/0.3617, allocations: 315.9 kB / 0.5375 GB, free: 9.223 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.127e-06/0.3617, allocations: 1.062 kB / 0.5375 GB, free: 9.223 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.009e-06/0.3617, allocations: 1.094 kB / 0.5375 GB, free: 9.223 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.156e-05/0.3618, allocations: 63.56 kB / 0.5375 GB, free: 9.148 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.253e-06/0.3618, allocations: 0 / 0.5375 GB, free: 9.148 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.143e-05/0.3618, allocations: 70.22 kB / 0.5376 GB, free: 9.074 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.446e-05/0.3619, allocations: 31.17 kB / 0.5376 GB, free: 9.043 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.3619, allocations: 0 / 0.5376 GB, free: 9.043 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.176e-05/0.3619, allocations: 1.094 kB / 0.5376 GB, free: 9.043 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.91e-07/0.3619, allocations: 0 / 0.5376 GB, free: 9.043 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.76e-06/0.3619, allocations: 5.172 kB / 0.5376 GB, free: 9.039 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.634e-05/0.3619, allocations: 4 kB / 0.5376 GB, free: 9.035 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.66e-06/0.3619, allocations: 1.219 kB / 0.5376 GB, free: 9.035 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 7.061e-05/0.362, allocations: 141.7 kB / 0.5378 GB, free: 8.883 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.244e-06/0.362, allocations: 5.062 kB / 0.5378 GB, free: 8.879 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.885e-06/0.362, allocations: 3.125 kB / 0.5378 GB, free: 8.875 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.32e-07/0.362, allocations: 0 / 0.5378 GB, free: 8.875 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.3621, allocations: 1.031 kB / 0.5378 GB, free: 8.875 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.663e-06/0.3621, allocations: 0 / 0.5378 GB, free: 8.875 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.64e-05/0.3621, allocations: 151.9 kB / 0.5379 GB, free: 8.68 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.3621, allocations: 0 / 0.5379 GB, free: 8.68 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.9e-07/0.3622, allocations: 0 / 0.5379 GB, free: 8.68 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.402e-06/0.3622, allocations: 1.312 kB / 0.5379 GB, free: 8.68 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.46e-06/0.3622, allocations: 3.938 kB / 0.5379 GB, free: 8.676 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.51e-07/0.3622, allocations: 1 kB / 0.5379 GB, free: 8.676 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.3622, allocations: 4 kB / 0.5379 GB, free: 8.672 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.023e-05/0.3623, allocations: 97.55 kB / 0.538 GB, free: 8.562 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.312e-05/0.3623, allocations: 82.17 kB / 0.5381 GB, free: 8.465 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.23e-05/0.3623, allocations: 5.031 kB / 0.5381 GB, free: 8.461 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.885e-06/0.3623, allocations: 0 / 0.5381 GB, free: 8.461 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.067e-05/0.3623, allocations: 1.031 kB / 0.5381 GB, free: 8.461 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.609e-06/0.3624, allocations: 5.219 kB / 0.5381 GB, free: 8.457 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.031e-05/0.3624, allocations: 79.31 kB / 0.5382 GB, free: 8.379 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3624, allocations: 0 / 0.5382 GB, free: 8.379 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002971/0.3627, allocations: 52.33 kB / 0.5382 GB, free: 8.359 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.001221/0.3639, allocations: 0.5356 MB / 0.5388 GB, free: 8.055 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 8.157e-05/0.364, allocations: 57 kB / 0.5388 GB, free: 7.992 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.364, allocations: 0 / 0.5388 GB, free: 7.992 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.916e-05/0.3641, allocations: 67.52 kB / 0.5389 GB, free: 7.918 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001129/0.3642, allocations: 5.031 kB / 0.5389 GB, free: 7.914 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001352/0.3643, allocations: 71.62 kB / 0.5389 GB, free: 7.824 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000185/0.3645, allocations: 0.6702 MB / 0.5396 GB, free: 7.129 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.129e-06/0.3645, allocations: 1.312 kB / 0.5396 GB, free: 7.129 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.014e-05/0.3645, allocations: 12.69 kB / 0.5396 GB, free: 7.117 MB / 398.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3645, allocations: 0 / 0.5396 GB, free: 7.117 MB / 398.1 MB Notification: Performance of Templates: time 0.004653/0.3692, allocations: 2.14 MB / 0.5417 GB, free: 6.125 MB / 398.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.sim & ./ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Math.TestColorMapToSvg.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches