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.0009076/0.0009076, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001051/0.001959, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0006945/0.0006945, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008883/0.001583, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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 1.043/1.043, allocations: 177.2 MB / 189.6 MB, free: 5.305 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1227/1.165, allocations: 53.65 MB / 243.3 MB, free: 15.58 MB / 250.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.2831/0.2831, allocations: 32.8 MB / 276.8 MB, free: 15.86 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.03187/0.3149, allocations: 12.53 MB / 289.3 MB, free: 8.68 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.953e-06/1.953e-06, allocations: 3.938 kB / 290.6 MB, free: 7.672 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.217e-05/2.412e-05, allocations: 3.188 kB / 290.6 MB, free: 7.668 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001149/0.001173, allocations: 0.5498 MB / 291.1 MB, free: 7.242 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001686/0.00286, allocations: 1.141 MB / 292.3 MB, free: 6.41 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.993e-05/0.002879, allocations: 0 / 292.3 MB, free: 6.41 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.978e-06/0.002883, allocations: 4 kB / 292.3 MB, free: 6.406 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 2.275e-06/0.002886, allocations: 5.25 kB / 292.3 MB, free: 6.402 MB / 282.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.001472/0.004358, allocations: 0.7133 MB / 293 MB, free: 5.914 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 6.175e-05/0.00442, allocations: 8 kB / 293 MB, free: 5.906 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.168e-05/0.004461, allocations: 0 / 293 MB, free: 5.906 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.267e-05/0.004504, allocations: 3.984 kB / 293 MB, free: 5.902 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.63e-05/0.00453, allocations: 7.938 kB / 293 MB, free: 5.895 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 9.057e-06/0.004539, allocations: 4 kB / 293 MB, free: 5.891 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001666/0.006206, allocations: 1.927 MB / 294.9 MB, free: 3.969 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.063e-05/0.006216, allocations: 3.938 kB / 295 MB, free: 3.965 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.721e-05/0.006233, allocations: 3.984 kB / 295 MB, free: 3.961 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003633/0.006597, allocations: 343.4 kB / 295.3 MB, free: 3.625 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.017e-05/0.006617, allocations: 0 / 295.3 MB, free: 3.625 MB / 282.7 MB Notification: Performance of FrontEnd: time 6.22e-07/0.006618, allocations: 0 / 295.3 MB, free: 3.625 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.036e-05/0.006638, allocations: 0 / 295.3 MB, free: 3.625 MB / 282.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.0004189/0.007057, allocations: 333.7 kB / 295.6 MB, free: 3.27 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.682e-05/0.007104, allocations: 16.03 kB / 295.6 MB, free: 3.254 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.734e-05/0.007151, allocations: 0 / 295.6 MB, free: 3.254 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.146e-05/0.007232, allocations: 101.2 kB / 295.7 MB, free: 3.129 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.195e-05/0.007244, allocations: 4 kB / 295.7 MB, free: 3.125 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.206e-06/0.007253, allocations: 0 / 295.7 MB, free: 3.125 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.571e-05/0.007338, allocations: 59.39 kB / 295.8 MB, free: 3.055 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.403e-06/0.007346, allocations: 0 / 295.8 MB, free: 3.055 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.502e-06/0.007352, allocations: 3.938 kB / 295.8 MB, free: 3.051 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.861e-06/0.007358, allocations: 0 / 295.8 MB, free: 3.051 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.172e-05/0.00738, allocations: 29.64 kB / 295.8 MB, free: 3.016 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.215e-05/0.007452, allocations: 65.05 kB / 295.9 MB, free: 2.938 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.197e-05/0.007504, allocations: 44.31 kB / 295.9 MB, free: 2.879 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.945e-05/0.007523, allocations: 34.55 kB / 296 MB, free: 2.836 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.188e-06/0.007528, allocations: 0 / 296 MB, free: 2.836 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.359e-05/0.007571, allocations: 60.33 kB / 296 MB, free: 2.762 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 4.61e-07/0.007572, allocations: 0 / 296 MB, free: 2.762 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001387/0.00771, allocations: 118.7 kB / 296.1 MB, free: 2.621 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.297e-05/0.007753, allocations: 77.11 kB / 296.2 MB, free: 2.527 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.698e-05/0.0078, allocations: 93.8 kB / 296.3 MB, free: 2.426 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.06e-05/0.007811, allocations: 25.7 kB / 296.3 MB, free: 2.395 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.194e-05/0.007833, allocations: 88.27 kB / 296.4 MB, free: 2.305 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.771e-05/0.007851, allocations: 0 / 296.4 MB, free: 2.305 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.929e-05/0.00788, allocations: 17.7 kB / 296.4 MB, free: 2.281 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001061/0.007986, allocations: 310.8 kB / 296.7 MB, free: 1.969 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.856e-05/0.008004, allocations: 29.7 kB / 296.8 MB, free: 1.934 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.267e-05/0.008017, allocations: 25.7 kB / 296.8 MB, free: 1.902 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.192e-05/0.008069, allocations: 72.12 kB / 296.9 MB, free: 1.816 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.008071, allocations: 0 / 296.9 MB, free: 1.816 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.791e-05/0.008169, allocations: 85.11 kB / 296.9 MB, free: 1.715 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.21e-05/0.008211, allocations: 33.78 kB / 297 MB, free: 1.676 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.601e-06/0.008217, allocations: 4 kB / 297 MB, free: 1.672 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.239e-05/0.008229, allocations: 4 kB / 297 MB, free: 1.668 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.833e-06/0.008236, allocations: 0 / 297 MB, free: 1.668 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.326e-06/0.008239, allocations: 0 / 297 MB, free: 1.668 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.811e-05/0.008257, allocations: 7.938 kB / 297 MB, free: 1.66 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.295e-06/0.008266, allocations: 0 / 297 MB, free: 1.66 MB / 282.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 7.135e-05/0.008337, allocations: 135.5 kB / 297.1 MB, free: 1.512 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.067e-06/0.008341, allocations: 0 / 297.1 MB, free: 1.512 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.122e-05/0.008352, allocations: 3 kB / 297.1 MB, free: 1.508 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.434e-06/0.008355, allocations: 3.984 kB / 297.1 MB, free: 1.504 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.843e-06/0.008357, allocations: 4 kB / 297.1 MB, free: 1.5 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.008363, allocations: 7.922 kB / 297.1 MB, free: 1.492 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.338e-05/0.008416, allocations: 66.59 kB / 297.2 MB, free: 1.41 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.01e-07/0.008417, allocations: 0 / 297.2 MB, free: 1.41 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.3e-07/0.008417, allocations: 0 / 297.2 MB, free: 1.41 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.416e-06/0.008421, allocations: 0 / 297.2 MB, free: 1.41 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.008423, allocations: 7.938 kB / 297.2 MB, free: 1.402 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.928e-06/0.008427, allocations: 0 / 297.2 MB, free: 1.402 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.5e-07/0.008428, allocations: 0 / 297.2 MB, free: 1.402 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.008428, allocations: 0 / 297.2 MB, free: 1.402 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.846e-05/0.008497, allocations: 116.5 kB / 297.3 MB, free: 1.258 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.215e-05/0.008509, allocations: 4 kB / 297.3 MB, free: 1.254 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.568e-06/0.008514, allocations: 0 / 297.3 MB, free: 1.254 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.103e-05/0.008525, allocations: 3.984 kB / 297.3 MB, free: 1.25 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.553e-06/0.008526, allocations: 0 / 297.3 MB, free: 1.25 MB / 282.7 MB Notification: Performance of sorting global known variables: time 4.93e-06/0.008531, allocations: 4.859 kB / 297.3 MB, free: 1.242 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.008531, allocations: 0 / 297.3 MB, free: 1.242 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001851/0.008716, allocations: 55.73 kB / 297.4 MB, free: 1.188 MB / 282.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.001308/0.01002, allocations: 0.6378 MB / 298 MB, free: 0.7109 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001183/0.01014, allocations: 127.5 kB / 298.2 MB, free: 0.5586 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.01015, allocations: 0 / 298.2 MB, free: 0.5586 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 3.078e-05/0.01018, allocations: 86.03 kB / 298.2 MB, free: 464 kB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.266e-05/0.01023, allocations: 4.062 kB / 298.3 MB, free: 460 kB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001797/0.01041, allocations: 120.4 kB / 298.4 MB, free: 304 kB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.45e-05/0.01044, allocations: 51.36 kB / 298.4 MB, free: 232 kB / 282.7 MB Notification: Performance of simCode: alias equations: time 5.981e-06/0.01045, allocations: 0 / 298.4 MB, free: 232 kB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.395e-05/0.01048, allocations: 55.36 kB / 298.5 MB, free: 176 kB / 282.7 MB Notification: Performance of SimCode: time 8.41e-07/0.01049, allocations: 0 / 298.5 MB, free: 176 kB / 282.7 MB Notification: Performance of Templates: time 0.005839/0.01632, allocations: 2.428 MB / 300.9 MB, free: 13.74 MB / 298.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 -ignoreHideResult -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: 2.9608325343579054]