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.0008428/0.0008428, allocations: 88.28 kB / 21.44 MB, free: 3.121 MB / 18.57 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.003486/0.003486, allocations: 154.3 kB / 24.69 MB, free: 8.914 MB / 18.57 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 0.8581/0.8581, allocations: 177 MB / 204.9 MB, free: 5.762 MB / 186.7 MB " [Timeout remaining time 179] 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.2161/0.2161, allocations: 34.24 MB / 295.6 MB, free: 0.668 MB / 266.7 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 1.824e-06/1.824e-06, allocations: 0 / 443.4 MB, free: 1.098 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.066e-05/3.248e-05, allocations: 4.812 kB / 443.4 MB, free: 1.094 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001457/0.001489, allocations: 0.497 MB / 443.9 MB, free: 0.5977 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1609/0.1624, allocations: 1.109 MB / 445 MB, free: 43.65 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.58e-05/0.1624, allocations: 0 / 445 MB, free: 43.65 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.61e-05/0.1624, allocations: 0 / 445 MB, free: 43.65 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 6.092e-06/0.1625, allocations: 0 / 445 MB, free: 43.65 MB / 410.7 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.00137/0.1638, allocations: 0.743 MB / 445.7 MB, free: 43.61 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 4.581e-05/0.1639, allocations: 2.875 kB / 445.7 MB, free: 43.61 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.113e-05/0.1639, allocations: 4 kB / 445.8 MB, free: 43.61 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.261e-05/0.1639, allocations: 6.156 kB / 445.8 MB, free: 43.61 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.614e-05/0.1639, allocations: 5.328 kB / 445.8 MB, free: 43.61 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 6.192e-06/0.1639, allocations: 0 / 445.8 MB, free: 43.61 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0014/0.1653, allocations: 2.461 MB / 448.2 MB, free: 43.32 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 6.763e-06/0.1654, allocations: 3.828 kB / 448.2 MB, free: 43.32 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.598e-05/0.1654, allocations: 0 / 448.2 MB, free: 43.32 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002771/0.1656, allocations: 379.5 kB / 448.6 MB, free: 43.29 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.337e-06/0.1656, allocations: 2.781 kB / 448.6 MB, free: 43.29 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.1657, allocations: 0 / 448.6 MB, free: 43.29 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.167e-06/0.1657, allocations: 3.938 kB / 448.6 MB, free: 43.29 MB / 410.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.0002348/0.1659, allocations: 298.8 kB / 448.9 MB, free: 42.98 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.067e-05/0.1659, allocations: 8.844 kB / 448.9 MB, free: 42.98 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.144e-05/0.166, allocations: 0 / 448.9 MB, free: 42.98 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.466e-05/0.166, allocations: 111.3 kB / 449 MB, free: 42.85 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.638e-06/0.166, allocations: 0 / 449 MB, free: 42.85 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.274e-06/0.166, allocations: 8.906 kB / 449 MB, free: 42.85 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.874e-05/0.1661, allocations: 51.41 kB / 449.1 MB, free: 42.79 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.614e-06/0.1661, allocations: 2.906 kB / 449.1 MB, free: 42.79 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.945e-06/0.1661, allocations: 3.938 kB / 449.1 MB, free: 42.79 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.1661, allocations: 2.906 kB / 449.1 MB, free: 42.79 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.59e-05/0.1661, allocations: 29.64 kB / 449.1 MB, free: 42.75 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.005e-05/0.1662, allocations: 99.66 kB / 449.2 MB, free: 42.63 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.944e-05/0.1662, allocations: 46.72 kB / 449.3 MB, free: 42.57 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.156e-05/0.1662, allocations: 34.56 kB / 449.3 MB, free: 42.53 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.462e-06/0.1662, allocations: 2.938 kB / 449.3 MB, free: 42.53 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.118e-05/0.1662, allocations: 56.27 kB / 449.3 MB, free: 42.46 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 6.62e-07/0.1662, allocations: 0 / 449.3 MB, free: 42.46 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001261/0.1664, allocations: 122.1 kB / 449.5 MB, free: 42.33 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.223e-05/0.1664, allocations: 81.05 kB / 449.5 MB, free: 42.23 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.265e-05/0.1664, allocations: 89.86 kB / 449.6 MB, free: 42.14 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.027e-06/0.1664, allocations: 35.91 kB / 449.7 MB, free: 42.1 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.4e-06/0.1664, allocations: 80.14 kB / 449.7 MB, free: 42.02 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.309e-05/0.1664, allocations: 3.266 kB / 449.7 MB, free: 42.02 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.588e-05/0.1664, allocations: 20.69 kB / 449.8 MB, free: 42 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.16e-05/0.1665, allocations: 310.8 kB / 450.1 MB, free: 41.69 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.657e-06/0.1665, allocations: 29.14 kB / 450.1 MB, free: 41.66 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.651e-06/0.1665, allocations: 25.7 kB / 450.1 MB, free: 41.62 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.205e-05/0.1665, allocations: 62.19 kB / 450.2 MB, free: 41.55 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.1665, allocations: 3.031 kB / 450.2 MB, free: 41.55 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 2.794e-05/0.1665, allocations: 90.39 kB / 450.3 MB, free: 41.46 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.938e-05/0.1666, allocations: 34.66 kB / 450.3 MB, free: 41.43 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.579e-06/0.1666, allocations: 0.8438 kB / 450.3 MB, free: 41.43 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.182e-05/0.1666, allocations: 4.094 kB / 450.3 MB, free: 41.42 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.31e-07/0.1666, allocations: 0 / 450.3 MB, free: 41.42 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.9e-06/0.1666, allocations: 3.938 kB / 450.3 MB, free: 41.42 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.115e-05/0.1666, allocations: 2.781 kB / 450.3 MB, free: 41.42 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.64e-06/0.1666, allocations: 0 / 450.3 MB, free: 41.42 MB / 410.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 3.43e-05/0.1666, allocations: 134.1 kB / 450.5 MB, free: 41.27 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.845e-06/0.1666, allocations: 0 / 450.5 MB, free: 41.27 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.097e-06/0.1666, allocations: 9 kB / 450.5 MB, free: 41.27 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.42e-07/0.1666, allocations: 2.812 kB / 450.5 MB, free: 41.27 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.197e-06/0.1666, allocations: 3.938 kB / 450.5 MB, free: 41.27 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.1666, allocations: 4 kB / 450.5 MB, free: 41.26 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 2.926e-05/0.1667, allocations: 98.39 kB / 450.6 MB, free: 41.14 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.32e-07/0.1667, allocations: 2.25 kB / 450.6 MB, free: 41.14 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.91e-07/0.1667, allocations: 0 / 450.6 MB, free: 41.14 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.91e-07/0.1667, allocations: 0 / 450.6 MB, free: 41.14 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.55e-06/0.1667, allocations: 0 / 450.6 MB, free: 41.14 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.31e-07/0.1667, allocations: 2.906 kB / 450.6 MB, free: 41.14 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1667, allocations: 3.328 kB / 450.6 MB, free: 41.14 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 3.83e-05/0.1667, allocations: 123 kB / 450.7 MB, free: 41.01 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.995e-06/0.1667, allocations: 0 / 450.7 MB, free: 41.01 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.047e-06/0.1667, allocations: 2.75 kB / 450.7 MB, free: 41.01 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.178e-06/0.1667, allocations: 4.031 kB / 450.7 MB, free: 41 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.031e-05/0.1668, allocations: 0 / 450.7 MB, free: 41 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.274e-06/0.1668, allocations: 6.719 kB / 450.7 MB, free: 41 MB / 410.7 MB Notification: Performance of sorting global known variables: time 7.564e-06/0.1668, allocations: 79.22 kB / 450.8 MB, free: 40.92 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1668, allocations: 0 / 450.8 MB, free: 40.92 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001863/0.1669, allocations: 57.44 kB / 450.8 MB, free: 40.91 MB / 410.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.0008205/0.1678, allocations: 0.5492 MB / 451.4 MB, free: 40.69 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 7.569e-05/0.1678, allocations: 120.1 kB / 451.5 MB, free: 40.55 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.323e-06/0.1678, allocations: 2.781 kB / 451.5 MB, free: 40.55 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.145e-05/0.1679, allocations: 83.98 kB / 451.6 MB, free: 40.46 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.587e-05/0.1679, allocations: 3.938 kB / 451.6 MB, free: 40.45 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001281/0.1681, allocations: 132.4 kB / 451.7 MB, free: 40.3 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.181e-05/0.1681, allocations: 62.33 kB / 451.8 MB, free: 40.22 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.428e-06/0.1681, allocations: 11.62 kB / 451.8 MB, free: 40.21 MB / 410.7 MB Notification: Performance of SimCode: time 3.91e-07/0.1681, allocations: 0 / 451.8 MB, free: 40.21 MB / 410.7 MB Notification: Performance of Templates: time 0.002412/0.1705, allocations: 2.607 MB / 454.4 MB, free: 39.89 MB / 410.7 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.019726408645511]