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.00199/0.00199, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.00238/0.00238, allocations: 213.6 kB / 23.73 MB, free: 4.16 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.617/1.617, allocations: 230.5 MB / 257.4 MB, free: 7.809 MB / 206.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.2293/0.2293, allocations: 46.94 MB / 360.8 MB, free: 3.957 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 0.002664/0.002664, allocations: 79.86 kB / 0.4966 GB, free: 7.09 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4231/0.4257, allocations: 66.09 MB / 0.5612 GB, free: 4.023 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.002151/0.4279, allocations: 495.6 kB / 0.5616 GB, free: 3.543 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002358/0.4303, allocations: 1.107 MB / 0.5627 GB, free: 2.43 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.327e-05/0.4303, allocations: 0 / 0.5627 GB, free: 2.43 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.878e-05/0.4303, allocations: 0 / 0.5627 GB, free: 2.43 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 9.608e-06/0.4303, allocations: 0 / 0.5627 GB, free: 2.43 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.002303/0.4326, allocations: 0.7335 MB / 0.5634 GB, free: 1.703 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.957e-05/0.4327, allocations: 7.984 kB / 0.5634 GB, free: 1.695 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.48e-05/0.4327, allocations: 3.938 kB / 0.5634 GB, free: 1.691 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.875e-05/0.4327, allocations: 4 kB / 0.5634 GB, free: 1.688 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.02e-05/0.4328, allocations: 0 / 0.5634 GB, free: 1.688 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.46e-06/0.4328, allocations: 3.938 kB / 0.5634 GB, free: 1.684 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003493/0.4363, allocations: 2.457 MB / 0.5658 GB, free: 15.23 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.487e-05/0.4363, allocations: 4 kB / 0.5658 GB, free: 15.22 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.193e-05/0.4363, allocations: 3.938 kB / 0.5659 GB, free: 15.22 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005225/0.4368, allocations: 351.4 kB / 0.5662 GB, free: 14.88 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.4368, allocations: 0 / 0.5662 GB, free: 14.88 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.4368, allocations: 0 / 0.5662 GB, free: 14.88 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.851e-06/0.4368, allocations: 0 / 0.5662 GB, free: 14.88 MB / 414.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.0004988/0.4373, allocations: 307.5 kB / 0.5665 GB, free: 14.54 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.234e-05/0.4374, allocations: 8.031 kB / 0.5665 GB, free: 14.53 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.984e-05/0.4374, allocations: 8 kB / 0.5665 GB, free: 14.52 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001063/0.4375, allocations: 101.2 kB / 0.5666 GB, free: 14.4 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.106e-05/0.4375, allocations: 4 kB / 0.5666 GB, free: 14.39 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.246e-05/0.4375, allocations: 0 / 0.5666 GB, free: 14.39 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001272/0.4377, allocations: 59.33 kB / 0.5667 GB, free: 14.32 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.788e-06/0.4377, allocations: 7.938 kB / 0.5667 GB, free: 14.32 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.468e-06/0.4377, allocations: 0 / 0.5667 GB, free: 14.32 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.573e-06/0.4377, allocations: 3.984 kB / 0.5667 GB, free: 14.31 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.29e-05/0.4377, allocations: 29.7 kB / 0.5667 GB, free: 14.28 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001403/0.4379, allocations: 97.33 kB / 0.5668 GB, free: 14.15 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.499e-05/0.4379, allocations: 44.28 kB / 0.5668 GB, free: 14.09 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.662e-05/0.438, allocations: 38.64 kB / 0.5669 GB, free: 14.05 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.014e-05/0.438, allocations: 0 / 0.5669 GB, free: 14.05 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.591e-05/0.4381, allocations: 60.2 kB / 0.5669 GB, free: 13.97 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 1.082e-06/0.4381, allocations: 0 / 0.5669 GB, free: 13.97 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002438/0.4383, allocations: 118.8 kB / 0.567 GB, free: 13.83 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.462e-05/0.4384, allocations: 81.09 kB / 0.5671 GB, free: 13.73 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.437e-05/0.4384, allocations: 97.81 kB / 0.5672 GB, free: 13.63 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.508e-05/0.4385, allocations: 29.83 kB / 0.5672 GB, free: 13.59 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.977e-05/0.4385, allocations: 80.14 kB / 0.5673 GB, free: 13.51 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.334e-05/0.4385, allocations: 0 / 0.5673 GB, free: 13.51 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.491e-05/0.4386, allocations: 13.72 kB / 0.5673 GB, free: 13.49 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001833/0.4387, allocations: 314.8 kB / 0.5676 GB, free: 13.18 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.622e-05/0.4388, allocations: 25.7 kB / 0.5676 GB, free: 13.14 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.698e-05/0.4388, allocations: 29.7 kB / 0.5677 GB, free: 13.11 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.197e-05/0.4389, allocations: 68.12 kB / 0.5677 GB, free: 13.03 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.4389, allocations: 0 / 0.5677 GB, free: 13.03 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001003/0.439, allocations: 93.17 kB / 0.5678 GB, free: 12.92 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.261e-05/0.439, allocations: 37.64 kB / 0.5679 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.439, allocations: 0 / 0.5679 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.24e-05/0.439, allocations: 0 / 0.5679 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.989e-06/0.439, allocations: 3.984 kB / 0.5679 GB, free: 12.87 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.863e-06/0.4391, allocations: 0 / 0.5679 GB, free: 12.87 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.545e-05/0.4391, allocations: 0 / 0.5679 GB, free: 12.87 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.752e-06/0.4391, allocations: 0 / 0.5679 GB, free: 12.87 MB / 414.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 0.0001036/0.4392, allocations: 139.5 kB / 0.568 GB, free: 12.72 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.087e-05/0.4392, allocations: 3.938 kB / 0.568 GB, free: 12.71 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.313e-05/0.4392, allocations: 3 kB / 0.568 GB, free: 12.71 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.142e-06/0.4392, allocations: 8.031 kB / 0.568 GB, free: 12.7 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.4392, allocations: 0 / 0.568 GB, free: 12.7 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.4392, allocations: 0 / 0.568 GB, free: 12.7 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.551e-05/0.4393, allocations: 97.31 kB / 0.5681 GB, free: 12.58 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.4393, allocations: 0 / 0.5681 GB, free: 12.58 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.112e-06/0.4393, allocations: 0 / 0.5681 GB, free: 12.58 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.019e-06/0.4393, allocations: 4 kB / 0.5681 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.556e-06/0.4393, allocations: 7.875 kB / 0.5681 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.4393, allocations: 0 / 0.5681 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.4393, allocations: 4 kB / 0.5681 GB, free: 12.56 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001294/0.4394, allocations: 124.5 kB / 0.5682 GB, free: 12.41 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.288e-06/0.4394, allocations: 0 / 0.5682 GB, free: 12.41 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.449e-05/0.4395, allocations: 3.938 kB / 0.5682 GB, free: 12.41 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.087e-05/0.4395, allocations: 4 kB / 0.5683 GB, free: 12.4 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.723e-05/0.4395, allocations: 0 / 0.5683 GB, free: 12.4 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.585e-06/0.4395, allocations: 0 / 0.5683 GB, free: 12.4 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.811e-05/0.4395, allocations: 75.28 kB / 0.5683 GB, free: 12.33 MB / 414.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.4395, allocations: 0 / 0.5683 GB, free: 12.33 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000314/0.4398, allocations: 51.8 kB / 0.5684 GB, free: 12.28 MB / 414.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.001635/0.4415, allocations: 0.5522 MB / 0.5689 GB, free: 11.77 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001581/0.4416, allocations: 122.7 kB / 0.569 GB, free: 11.62 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.4416, allocations: 0 / 0.569 GB, free: 11.62 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.26e-05/0.4417, allocations: 77.11 kB / 0.5691 GB, free: 11.53 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001384/0.4418, allocations: 10.47 kB / 0.5691 GB, free: 11.52 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002648/0.4421, allocations: 106.7 kB / 0.5692 GB, free: 11.39 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.513e-05/0.4422, allocations: 59.34 kB / 0.5693 GB, free: 11.31 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.872e-06/0.4422, allocations: 0 / 0.5693 GB, free: 11.31 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.357e-05/0.4422, allocations: 11.38 kB / 0.5693 GB, free: 11.3 MB / 414.1 MB Notification: Performance of SimCode: time 3.6e-07/0.4422, allocations: 0 / 0.5693 GB, free: 11.3 MB / 414.1 MB Notification: Performance of Templates: time 0.006588/0.4488, allocations: 2.139 MB / 0.5714 GB, free: 9.156 MB / 414.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.389411069452763]