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.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.00134/0.00134, 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.001444/0.001444, allocations: 162.2 kB / 25.6 MB, free: 8.59 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.994/0.994, allocations: 177.1 MB / 206 MB, free: 4.504 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1426/0.1426, allocations: 32.81 MB / 295.4 MB, free: 15.37 MB / 282.7 MB " [Timeout remaining time 180] 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.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.0.0_ModelicaTest.Math.TestColorMapToSvg") translateModel(ModelicaTest.Math.TestColorMapToSvg,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.133e-06/1.133e-06, allocations: 0 / 377.2 MB, free: 25.61 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.242e-05/2.356e-05, allocations: 2.312 kB / 377.2 MB, free: 25.6 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001087/0.001111, allocations: 0.5009 MB / 377.7 MB, free: 25.1 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001177/0.002288, allocations: 1.112 MB / 378.9 MB, free: 23.98 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.086e-05/0.002309, allocations: 8 kB / 378.9 MB, free: 23.97 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 1.348e-05/0.002322, allocations: 0 / 378.9 MB, free: 23.97 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 5.5e-06/0.002328, allocations: 0 / 378.9 MB, free: 23.97 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.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.001557/0.003885, allocations: 0.7402 MB / 379.6 MB, free: 23.23 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 4.351e-05/0.003929, allocations: 3.938 kB / 379.6 MB, free: 23.23 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.224e-05/0.003961, allocations: 8 kB / 379.6 MB, free: 23.22 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.316e-05/0.003984, allocations: 3.984 kB / 379.6 MB, free: 23.22 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.633e-05/0.004001, allocations: 0 / 379.6 MB, free: 23.22 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 6.031e-06/0.004007, allocations: 0 / 379.6 MB, free: 23.22 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001718/0.005725, allocations: 2.513 MB / 382.1 MB, free: 20.71 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 9.317e-06/0.005734, allocations: 3.938 kB / 382.1 MB, free: 20.7 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 1.444e-05/0.005749, allocations: 0 / 382.1 MB, free: 20.7 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003261/0.006075, allocations: 379.3 kB / 382.5 MB, free: 20.33 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.006078, allocations: 0 / 382.5 MB, free: 20.33 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.006079, allocations: 0 / 382.5 MB, free: 20.33 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.687e-06/0.006083, allocations: 3.938 kB / 382.5 MB, free: 20.33 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.0002711/0.006354, allocations: 405.5 kB / 382.9 MB, free: 19.89 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.079e-05/0.006385, allocations: 11.98 kB / 382.9 MB, free: 19.88 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.983e-05/0.006415, allocations: 0 / 382.9 MB, free: 19.88 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.086e-05/0.006455, allocations: 120 kB / 383 MB, free: 19.73 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.045e-05/0.006466, allocations: 0 / 383 MB, free: 19.73 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.949e-06/0.006471, allocations: 0 / 383 MB, free: 19.73 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.108e-05/0.006532, allocations: 59.34 kB / 383.1 MB, free: 19.66 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.234e-06/0.006539, allocations: 4 kB / 383.1 MB, free: 19.66 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.252e-06/0.006545, allocations: 3.984 kB / 383.1 MB, free: 19.66 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.00655, allocations: 0 / 383.1 MB, free: 19.66 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.006e-05/0.00656, allocations: 25.7 kB / 383.1 MB, free: 19.62 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.296e-05/0.006613, allocations: 93.27 kB / 383.2 MB, free: 19.51 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.002e-05/0.006643, allocations: 60.69 kB / 383.3 MB, free: 19.43 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.949e-06/0.006653, allocations: 37.48 kB / 383.3 MB, free: 19.38 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.106e-06/0.006656, allocations: 0 / 383.3 MB, free: 19.38 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.009e-05/0.006676, allocations: 59.09 kB / 383.4 MB, free: 19.31 MB / 314.7 MB Notification: Performance of pre-optimization done (n=1): time 7.11e-07/0.006677, allocations: 0 / 383.4 MB, free: 19.31 MB / 314.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001249/0.006802, allocations: 126.7 kB / 383.5 MB, free: 19.16 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.278e-05/0.006825, allocations: 81.11 kB / 383.6 MB, free: 19.06 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.024e-05/0.006845, allocations: 146.2 kB / 383.7 MB, free: 18.91 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.286e-06/0.006848, allocations: 25.7 kB / 383.7 MB, free: 18.88 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.03e-05/0.006859, allocations: 130.8 kB / 383.9 MB, free: 18.74 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.326e-05/0.006872, allocations: 3.938 kB / 383.9 MB, free: 18.74 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.038e-05/0.006892, allocations: 23.38 kB / 383.9 MB, free: 18.71 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.248e-05/0.006935, allocations: 492.1 kB / 384.4 MB, free: 18.21 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.027e-05/0.006945, allocations: 25.7 kB / 384.4 MB, free: 18.18 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.396e-06/0.006953, allocations: 37.81 kB / 384.4 MB, free: 18.14 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.874e-05/0.006982, allocations: 63.09 kB / 384.5 MB, free: 18.06 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.006984, allocations: 0 / 384.5 MB, free: 18.06 MB / 314.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.542e-05/0.007029, allocations: 85.05 kB / 384.6 MB, free: 17.96 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.3e-05/0.007052, allocations: 37.69 kB / 384.6 MB, free: 17.92 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.007057, allocations: 0 / 384.6 MB, free: 17.92 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.536e-06/0.007066, allocations: 3.938 kB / 384.6 MB, free: 17.91 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.192e-06/0.007067, allocations: 0 / 384.6 MB, free: 17.91 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.124e-06/0.007069, allocations: 0 / 384.6 MB, free: 17.91 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.26e-05/0.007082, allocations: 0 / 384.6 MB, free: 17.91 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.61e-06/0.007088, allocations: 8.094 kB / 384.6 MB, free: 17.91 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.512e-05/0.007133, allocations: 182.3 kB / 384.8 MB, free: 17.71 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.234e-06/0.00714, allocations: 4.344 kB / 384.8 MB, free: 17.71 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.095e-06/0.007148, allocations: 3 kB / 384.8 MB, free: 17.7 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.00715, allocations: 3.938 kB / 384.8 MB, free: 17.7 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.422e-06/0.007151, allocations: 0 / 384.8 MB, free: 17.7 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.007154, allocations: 0 / 384.8 MB, free: 17.7 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.679e-05/0.007191, allocations: 97.25 kB / 384.9 MB, free: 17.58 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.007192, allocations: 0 / 384.9 MB, free: 17.58 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.51e-07/0.007192, allocations: 0 / 384.9 MB, free: 17.58 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.132e-06/0.007193, allocations: 4 kB / 384.9 MB, free: 17.57 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.007e-06/0.007197, allocations: 0 / 384.9 MB, free: 17.57 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.81e-07/0.007198, allocations: 0 / 384.9 MB, free: 17.57 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.007198, allocations: 0 / 384.9 MB, free: 17.57 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.601e-05/0.007264, allocations: 139.7 kB / 385.1 MB, free: 17.4 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.08e-06/0.00727, allocations: 8 kB / 385.1 MB, free: 17.39 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.043e-05/0.00728, allocations: 4 kB / 385.1 MB, free: 17.39 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.849e-06/0.007285, allocations: 0 / 385.1 MB, free: 17.39 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.997e-06/0.007294, allocations: 0 / 385.1 MB, free: 17.39 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.436e-06/0.007297, allocations: 7.938 kB / 385.1 MB, free: 17.38 MB / 314.7 MB Notification: Performance of sorting global known variables: time 1.423e-05/0.007312, allocations: 123.2 kB / 385.2 MB, free: 17.26 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007312, allocations: 7.969 kB / 385.2 MB, free: 17.25 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002562/0.007568, allocations: 51.8 kB / 385.3 MB, free: 17.2 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.0009937/0.008562, allocations: 0.5732 MB / 385.8 MB, free: 16.71 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 7.277e-05/0.008634, allocations: 122.5 kB / 385.9 MB, free: 16.56 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.008636, allocations: 4 kB / 385.9 MB, free: 16.56 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 1.356e-05/0.00865, allocations: 88.73 kB / 386 MB, free: 16.45 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.487e-05/0.008735, allocations: 4 kB / 386 MB, free: 16.45 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001212/0.008856, allocations: 107.6 kB / 386.1 MB, free: 16.3 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 1.421e-05/0.00887, allocations: 59.16 kB / 386.2 MB, free: 16.23 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 4.899e-06/0.008875, allocations: 0 / 386.2 MB, free: 16.23 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.108e-05/0.008896, allocations: 70.2 kB / 386.3 MB, free: 16.16 MB / 314.7 MB Notification: Performance of SimCode: time 5.61e-07/0.008897, allocations: 4.125 kB / 386.3 MB, free: 16.15 MB / 314.7 MB Notification: Performance of Templates: time 0.003499/0.0124, allocations: 2.44 MB / 388.7 MB, free: 13.71 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.pipe 2>&1) [Timeout 240] 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","",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.2083230009302497]