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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001862/0.001862, allocations: 90.08 kB / 20.69 MB, free: 1.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002361/0.002361, allocations: 159.5 kB / 23.95 MB, free: 4.152 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.559/1.559, allocations: 177 MB / 204.1 MB, free: 9.145 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2177/0.2177, allocations: 34.27 MB / 294.8 MB, free: 14.51 MB / 286.1 MB " [Timeout remaining time 180] 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=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg") translateModel(ModelicaTest.Math.TestColorMapToSvg,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.136e-06/3.136e-06, allocations: 0 / 442.6 MB, free: 5.309 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.293e-05/4.607e-05, allocations: 2.281 kB / 442.6 MB, free: 5.305 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.002188/0.002234, allocations: 0.5049 MB / 443.1 MB, free: 4.801 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00227/0.004504, allocations: 1.115 MB / 444.2 MB, free: 3.676 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.022e-05/0.004534, allocations: 0 / 444.2 MB, free: 3.676 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.327e-05/0.004547, allocations: 0 / 444.2 MB, free: 3.676 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 5.71e-06/0.004553, allocations: 0 / 444.2 MB, free: 3.676 MB / 366.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.002337/0.00689, allocations: 0.7426 MB / 445 MB, free: 2.938 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 6.182e-05/0.006952, allocations: 7.938 kB / 445 MB, free: 2.93 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.027e-05/0.006992, allocations: 3.984 kB / 445 MB, free: 2.926 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.509e-05/0.007017, allocations: 4 kB / 445 MB, free: 2.922 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.922e-05/0.007037, allocations: 0 / 445 MB, free: 2.922 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.765e-06/0.007044, allocations: 0 / 445 MB, free: 2.922 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003991/0.01104, allocations: 2.455 MB / 447.5 MB, free: 476 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.791e-05/0.01105, allocations: 7.938 kB / 447.5 MB, free: 468 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.848e-05/0.01108, allocations: 0 / 447.5 MB, free: 468 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006158/0.0117, allocations: 371.4 kB / 447.8 MB, free: 96 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.0117, allocations: 0 / 447.8 MB, free: 96 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.01171, allocations: 0 / 447.8 MB, free: 96 kB / 366.1 MB Notification: Performance of Transformations before backend: time 5.951e-06/0.01171, allocations: 0 / 447.8 MB, free: 96 kB / 366.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.2213/0.233, allocations: 301.3 kB / 448.1 MB, free: 19.42 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.921e-05/0.233, allocations: 9.25 kB / 448.1 MB, free: 19.42 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.024e-05/0.2331, allocations: 3.766 kB / 448.1 MB, free: 19.42 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.331e-05/0.2331, allocations: 109.1 kB / 448.2 MB, free: 19.3 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.342e-05/0.2331, allocations: 1.062 kB / 448.2 MB, free: 19.3 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.298e-06/0.2331, allocations: 1.094 kB / 448.2 MB, free: 19.3 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001125/0.2333, allocations: 60.5 kB / 448.3 MB, free: 19.23 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.2333, allocations: 4.172 kB / 448.3 MB, free: 19.23 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.094e-05/0.2333, allocations: 2.188 kB / 448.3 MB, free: 19.23 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.2333, allocations: 3.188 kB / 448.3 MB, free: 19.23 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.582e-05/0.2333, allocations: 32.17 kB / 448.3 MB, free: 19.2 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.319e-05/0.2334, allocations: 97.48 kB / 448.4 MB, free: 19.08 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.082e-05/0.2334, allocations: 45.36 kB / 448.5 MB, free: 19.02 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.947e-05/0.2335, allocations: 32.5 kB / 448.5 MB, free: 18.98 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.043e-05/0.2335, allocations: 0.9688 kB / 448.5 MB, free: 18.98 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.27e-05/0.2335, allocations: 65.67 kB / 448.6 MB, free: 18.91 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 1.072e-06/0.2335, allocations: 0 / 448.6 MB, free: 18.91 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001792/0.2337, allocations: 115.4 kB / 448.7 MB, free: 18.79 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.197e-05/0.2337, allocations: 79.5 kB / 448.8 MB, free: 18.7 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.339e-05/0.2338, allocations: 92.7 kB / 448.9 MB, free: 18.6 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.322e-06/0.2338, allocations: 25.7 kB / 448.9 MB, free: 18.57 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.648e-06/0.2338, allocations: 84.14 kB / 449 MB, free: 18.48 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.147e-05/0.2338, allocations: 3.953 kB / 449 MB, free: 18.48 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.322e-05/0.2338, allocations: 15.5 kB / 449 MB, free: 18.46 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.599e-05/0.2339, allocations: 317 kB / 449.3 MB, free: 18.15 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.764e-05/0.2339, allocations: 28.81 kB / 449.3 MB, free: 18.12 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.149e-05/0.2339, allocations: 31.75 kB / 449.4 MB, free: 18.08 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.691e-05/0.2339, allocations: 63.33 kB / 449.4 MB, free: 18.01 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.2339, allocations: 3 kB / 449.4 MB, free: 18.01 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.013e-05/0.234, allocations: 89.59 kB / 449.5 MB, free: 17.92 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.562e-05/0.234, allocations: 32.2 kB / 449.5 MB, free: 17.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5e-06/0.234, allocations: 1.688 kB / 449.5 MB, free: 17.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.472e-05/0.234, allocations: 1.031 kB / 449.5 MB, free: 17.89 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.332e-06/0.234, allocations: 2.062 kB / 449.5 MB, free: 17.89 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.721e-06/0.234, allocations: 1.781 kB / 449.6 MB, free: 17.89 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.563e-05/0.2341, allocations: 6.438 kB / 449.6 MB, free: 17.88 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.583e-06/0.2341, allocations: 1.031 kB / 449.6 MB, free: 17.88 MB / 366.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 5.174e-05/0.2341, allocations: 138.6 kB / 449.7 MB, free: 17.74 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.145e-06/0.2341, allocations: 1.125 kB / 449.7 MB, free: 17.74 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.355e-05/0.2341, allocations: 5.703 kB / 449.7 MB, free: 17.73 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.51e-07/0.2341, allocations: 0 / 449.7 MB, free: 17.73 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.2341, allocations: 6.906 kB / 449.7 MB, free: 17.73 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.2341, allocations: 0.5625 kB / 449.7 MB, free: 17.73 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.029e-05/0.2342, allocations: 102.6 kB / 449.8 MB, free: 17.61 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.2342, allocations: 1.031 kB / 449.8 MB, free: 17.61 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.4e-07/0.2342, allocations: 0 / 449.8 MB, free: 17.61 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.092e-06/0.2342, allocations: 2 kB / 449.8 MB, free: 17.61 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.143e-06/0.2342, allocations: 4.047 kB / 449.8 MB, free: 17.61 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.2342, allocations: 1.031 kB / 449.8 MB, free: 17.61 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.2342, allocations: 0.875 kB / 449.8 MB, free: 17.61 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.237e-05/0.2343, allocations: 123.6 kB / 449.9 MB, free: 17.48 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.809e-06/0.2343, allocations: 3.812 kB / 449.9 MB, free: 17.48 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.255e-05/0.2343, allocations: 1.844 kB / 449.9 MB, free: 17.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.616e-06/0.2343, allocations: 1.062 kB / 449.9 MB, free: 17.48 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.422e-05/0.2343, allocations: 1.688 kB / 449.9 MB, free: 17.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.585e-06/0.2343, allocations: 1.125 kB / 449.9 MB, free: 17.48 MB / 366.1 MB Notification: Performance of sorting global known variables: time 1.24e-05/0.2343, allocations: 78.62 kB / 450 MB, free: 17.4 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2343, allocations: 0 / 450 MB, free: 17.4 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003819/0.2347, allocations: 56.41 kB / 450.1 MB, free: 17.4 MB / 366.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.001555/0.2363, allocations: 0.5714 MB / 450.6 MB, free: 17.18 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001095/0.2364, allocations: 115.1 kB / 450.8 MB, free: 17.05 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.2364, allocations: 4.062 kB / 450.8 MB, free: 17.05 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.326e-05/0.2364, allocations: 82.16 kB / 450.8 MB, free: 16.95 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001248/0.2365, allocations: 2.5 kB / 450.8 MB, free: 16.95 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001785/0.2367, allocations: 103.8 kB / 450.9 MB, free: 16.83 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.437e-05/0.2367, allocations: 55.41 kB / 451 MB, free: 16.76 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.895e-06/0.2368, allocations: 0.8438 kB / 451 MB, free: 16.76 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.291e-05/0.2368, allocations: 9.719 kB / 451 MB, free: 16.75 MB / 366.1 MB Notification: Performance of SimCode: time 6.91e-07/0.2368, allocations: 1.406 kB / 451 MB, free: 16.75 MB / 366.1 MB Notification: Performance of Templates: time 0.006424/0.2432, allocations: 2.182 MB / 453.2 MB, free: 16.5 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.194403640925884]