Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009054/0.0009054, allocations: 81.97 kB / 22.21 MB, free: 2.289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001101/0.001101, allocations: 167.9 kB / 25.61 MB, free: 8.582 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.956/0.956, allocations: 177.1 MB / 206.1 MB, free: 4.473 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.1373/0.1373, allocations: 34.27 MB / 296.9 MB, free: 13.92 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.TestColorMapToSvg,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg") translateModel(ModelicaTest.Math.TestColorMapToSvg,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.332e-06/1.332e-06, allocations: 0 / 379.3 MB, free: 23.44 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.779e-05/1.913e-05, allocations: 6.312 kB / 379.3 MB, free: 23.43 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001307/0.001327, allocations: 485.1 kB / 379.8 MB, free: 22.96 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001894/0.00322, allocations: 1.123 MB / 380.9 MB, free: 21.82 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3e-05/0.00325, allocations: 0 / 380.9 MB, free: 21.82 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 1.848e-05/0.003269, allocations: 0 / 380.9 MB, free: 21.82 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 8.065e-06/0.003277, allocations: 0 / 380.9 MB, free: 21.82 MB / 314.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.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.1.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.001855/0.005132, allocations: 0.7577 MB / 381.6 MB, free: 21.07 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 4.904e-05/0.005181, allocations: 8 kB / 381.6 MB, free: 21.07 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.299e-05/0.005224, allocations: 4 kB / 381.6 MB, free: 21.06 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.712e-05/0.005251, allocations: 0 / 381.6 MB, free: 21.06 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.102e-05/0.005272, allocations: 0 / 381.6 MB, free: 21.06 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 8.145e-06/0.005281, allocations: 0 / 381.6 MB, free: 21.06 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002319/0.007599, allocations: 2.517 MB / 384.2 MB, free: 18.55 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 9.939e-06/0.007609, allocations: 3.984 kB / 384.2 MB, free: 18.54 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 1.544e-05/0.007625, allocations: 0 / 384.2 MB, free: 18.54 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003502/0.007975, allocations: 379.2 kB / 384.5 MB, free: 18.17 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.285e-06/0.007977, allocations: 0 / 384.5 MB, free: 18.17 MB / 314.7 MB Notification: Performance of FrontEnd: time 7.02e-07/0.007978, allocations: 0 / 384.5 MB, free: 18.17 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.037e-06/0.007982, allocations: 4 kB / 384.5 MB, free: 18.17 MB / 314.7 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.0002954/0.008277, allocations: 405.5 kB / 384.9 MB, free: 17.73 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.315e-05/0.008311, allocations: 8.031 kB / 384.9 MB, free: 17.72 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.791e-05/0.008338, allocations: 8 kB / 385 MB, free: 17.71 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.532e-05/0.008384, allocations: 108.1 kB / 385.1 MB, free: 17.58 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.022e-05/0.008394, allocations: 0 / 385.1 MB, free: 17.58 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.48e-06/0.008399, allocations: 3.984 kB / 385.1 MB, free: 17.58 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.868e-05/0.008458, allocations: 63.28 kB / 385.1 MB, free: 17.5 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.372e-06/0.008464, allocations: 0 / 385.1 MB, free: 17.5 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.44e-06/0.00847, allocations: 0 / 385.1 MB, free: 17.5 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.398e-06/0.008474, allocations: 0 / 385.1 MB, free: 17.5 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.042e-05/0.008485, allocations: 29.7 kB / 385.2 MB, free: 17.47 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.6e-05/0.008541, allocations: 89.27 kB / 385.2 MB, free: 17.36 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.593e-05/0.008577, allocations: 60.78 kB / 385.3 MB, free: 17.28 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.005e-05/0.008587, allocations: 37.39 kB / 385.3 MB, free: 17.23 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.577e-06/0.00859, allocations: 0 / 385.3 MB, free: 17.23 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.251e-05/0.008623, allocations: 63.16 kB / 385.4 MB, free: 17.15 MB / 314.7 MB Notification: Performance of pre-optimization done (n=1): time 7.42e-07/0.008624, allocations: 3.938 kB / 385.4 MB, free: 17.15 MB / 314.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001347/0.008758, allocations: 118.7 kB / 385.5 MB, free: 17.01 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.395e-05/0.008782, allocations: 77.11 kB / 385.6 MB, free: 16.91 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.357e-05/0.008806, allocations: 142.2 kB / 385.7 MB, free: 16.76 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.618e-06/0.00881, allocations: 25.7 kB / 385.8 MB, free: 16.73 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.075e-05/0.008821, allocations: 126.9 kB / 385.9 MB, free: 16.6 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.528e-05/0.008836, allocations: 12.06 kB / 385.9 MB, free: 16.59 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.839e-05/0.008855, allocations: 15.38 kB / 385.9 MB, free: 16.57 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.499e-05/0.0089, allocations: 496.1 kB / 386.4 MB, free: 16.07 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.778e-06/0.00891, allocations: 29.7 kB / 386.4 MB, free: 16.04 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.285e-06/0.008918, allocations: 29.69 kB / 386.5 MB, free: 16 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.111e-05/0.008959, allocations: 71.02 kB / 386.5 MB, free: 15.91 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.008961, allocations: 0 / 386.5 MB, free: 15.91 MB / 314.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.257e-05/0.009004, allocations: 89.05 kB / 386.6 MB, free: 15.81 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.771e-05/0.009031, allocations: 29.7 kB / 386.6 MB, free: 15.77 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-06/0.009037, allocations: 8.078 kB / 386.6 MB, free: 15.77 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.003e-05/0.009047, allocations: 3.938 kB / 386.6 MB, free: 15.76 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.235e-06/0.009049, allocations: 4 kB / 386.7 MB, free: 15.76 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.256e-06/0.009052, allocations: 0 / 386.7 MB, free: 15.76 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.287e-06/0.009061, allocations: 0 / 386.7 MB, free: 15.76 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.089e-06/0.009066, allocations: 0 / 386.7 MB, free: 15.76 MB / 314.7 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 4.712e-05/0.009114, allocations: 182.3 kB / 386.8 MB, free: 15.56 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.591e-06/0.009119, allocations: 4.344 kB / 386.8 MB, free: 15.56 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.608e-06/0.009129, allocations: 3 kB / 386.8 MB, free: 15.55 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.009131, allocations: 3.938 kB / 386.8 MB, free: 15.55 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.214e-06/0.009133, allocations: 4 kB / 386.8 MB, free: 15.55 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.009137, allocations: 8 kB / 386.9 MB, free: 15.54 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.734e-05/0.009174, allocations: 97.19 kB / 386.9 MB, free: 15.42 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.01e-07/0.009174, allocations: 0 / 386.9 MB, free: 15.42 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.61e-07/0.009175, allocations: 0 / 386.9 MB, free: 15.42 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.81e-07/0.009176, allocations: 0 / 386.9 MB, free: 15.42 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.579e-06/0.00918, allocations: 4 kB / 387 MB, free: 15.41 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.81e-07/0.00918, allocations: 0 / 387 MB, free: 15.41 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.009181, allocations: 0 / 387 MB, free: 15.41 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.544e-05/0.009237, allocations: 131.7 kB / 387.1 MB, free: 15.25 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.179e-06/0.009242, allocations: 3.984 kB / 387.1 MB, free: 15.25 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.528e-06/0.009251, allocations: 4.031 kB / 387.1 MB, free: 15.24 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.929e-06/0.009256, allocations: 4 kB / 387.1 MB, free: 15.24 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.116e-05/0.009267, allocations: 4 kB / 387.1 MB, free: 15.23 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.755e-06/0.00927, allocations: 3.938 kB / 387.1 MB, free: 15.23 MB / 314.7 MB Notification: Performance of sorting global known variables: time 1.596e-05/0.009286, allocations: 123.2 kB / 387.2 MB, free: 15.11 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.009286, allocations: 0 / 387.2 MB, free: 15.11 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002319/0.009518, allocations: 51.8 kB / 387.3 MB, free: 15.06 MB / 314.7 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.0009649/0.01048, allocations: 0.5751 MB / 387.8 MB, free: 14.56 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 8.903e-05/0.01057, allocations: 122.5 kB / 388 MB, free: 14.41 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.01057, allocations: 0 / 388 MB, free: 14.41 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 1.721e-05/0.01059, allocations: 92.8 kB / 388.1 MB, free: 14.3 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.514e-05/0.01068, allocations: 4.062 kB / 388.1 MB, free: 14.29 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001292/0.01081, allocations: 111.6 kB / 388.2 MB, free: 14.15 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 1.839e-05/0.01082, allocations: 63.16 kB / 388.2 MB, free: 14.07 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 5.51e-06/0.01083, allocations: 0 / 388.2 MB, free: 14.07 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.08e-05/0.01085, allocations: 74.19 kB / 388.3 MB, free: 13.99 MB / 314.7 MB Notification: Performance of SimCode: time 4.81e-07/0.01085, allocations: 0 / 388.3 MB, free: 13.99 MB / 314.7 MB Notification: Performance of Templates: time 0.003366/0.01422, allocations: 2.439 MB / 390.7 MB, free: 11.55 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg.sim & ./ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/TestColorMapToSvg/TestColorMapToSvg.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1098693660460413]