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.001283/0.001283, allocations: 115.5 kB / 18.44 MB, free: 4.723 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.001345/0.001344, allocations: 205.8 kB / 21.4 MB, free: 1.773 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.469/1.469, allocations: 227.4 MB / 251.6 MB, free: 268 kB / 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.2556/0.2556, allocations: 46.16 MB / 351.1 MB, free: 14.32 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.002258/0.002258, allocations: 85.42 kB / 490.2 MB, free: 28.16 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.14/0.1423, allocations: 62.44 MB / 0.5396 GB, free: 4.266 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.00189/0.1442, allocations: 490.6 kB / 0.5401 GB, free: 3.781 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002433/0.1467, allocations: 1.155 MB / 0.5412 GB, free: 2.617 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.751e-05/0.1468, allocations: 3.938 kB / 0.5412 GB, free: 2.613 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.798e-05/0.1468, allocations: 0 / 0.5412 GB, free: 2.613 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 9.037e-06/0.1468, allocations: 4 kB / 0.5412 GB, free: 2.609 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.002765/0.1496, allocations: 0.6755 MB / 0.5419 GB, free: 1.941 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 9.072e-05/0.1497, allocations: 4 kB / 0.5419 GB, free: 1.938 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.254e-05/0.1498, allocations: 4 kB / 0.5419 GB, free: 1.934 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.557e-05/0.1498, allocations: 0 / 0.5419 GB, free: 1.934 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.025e-05/0.1498, allocations: 0 / 0.5419 GB, free: 1.934 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.357e-05/0.1499, allocations: 4 kB / 0.5419 GB, free: 1.93 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003663/0.1535, allocations: 2.449 MB / 0.5443 GB, free: 15.48 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.261e-05/0.1536, allocations: 0 / 0.5443 GB, free: 15.48 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.75e-05/0.1536, allocations: 0 / 0.5443 GB, free: 15.48 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005707/0.1542, allocations: 363.4 kB / 0.5447 GB, free: 15.12 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.538e-06/0.1542, allocations: 3.984 kB / 0.5447 GB, free: 15.12 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.1542, allocations: 0 / 0.5447 GB, free: 15.12 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.983e-06/0.1542, allocations: 4 kB / 0.5447 GB, free: 15.11 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.0006487/0.1549, allocations: 372.7 kB / 0.545 GB, free: 14.7 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.01e-05/0.155, allocations: 12.03 kB / 0.545 GB, free: 14.68 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.12e-05/0.155, allocations: 0 / 0.545 GB, free: 14.68 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001736/0.1552, allocations: 159.1 kB / 0.5452 GB, free: 14.49 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.62e-05/0.1552, allocations: 0 / 0.5452 GB, free: 14.49 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.12e-05/0.1552, allocations: 0 / 0.5452 GB, free: 14.49 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001171/0.1554, allocations: 41.56 kB / 0.5452 GB, free: 14.44 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.536e-06/0.1554, allocations: 4 kB / 0.5452 GB, free: 14.44 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.247e-06/0.1554, allocations: 0 / 0.5452 GB, free: 14.44 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.1554, allocations: 0 / 0.5452 GB, free: 14.44 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.458e-05/0.1554, allocations: 4 kB / 0.5452 GB, free: 14.43 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001899/0.1556, allocations: 145.6 kB / 0.5454 GB, free: 14.24 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.103e-05/0.1557, allocations: 18.58 kB / 0.5454 GB, free: 14.21 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.738e-05/0.1557, allocations: 16.94 kB / 0.5454 GB, free: 14.2 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.062e-05/0.1557, allocations: 3.938 kB / 0.5454 GB, free: 14.19 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.709e-05/0.1558, allocations: 64.2 kB / 0.5455 GB, free: 14.11 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 1.363e-06/0.1558, allocations: 0 / 0.5455 GB, free: 14.11 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002231/0.156, allocations: 59.41 kB / 0.5455 GB, free: 14.04 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.526e-05/0.1561, allocations: 81.11 kB / 0.5456 GB, free: 13.95 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.527e-05/0.1562, allocations: 101.7 kB / 0.5457 GB, free: 13.84 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.956e-05/0.1562, allocations: 25.7 kB / 0.5457 GB, free: 13.8 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.025e-05/0.1563, allocations: 80.14 kB / 0.5458 GB, free: 13.72 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.479e-05/0.1563, allocations: 4.125 kB / 0.5458 GB, free: 13.72 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.909e-05/0.1563, allocations: 13.72 kB / 0.5458 GB, free: 13.7 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001727/0.1565, allocations: 310.8 kB / 0.5461 GB, free: 13.39 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.258e-05/0.1565, allocations: 4 kB / 0.5461 GB, free: 13.38 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.969e-06/0.1566, allocations: 3.938 kB / 0.5461 GB, free: 13.38 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.086e-05/0.1566, allocations: 64.27 kB / 0.5462 GB, free: 13.3 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.1566, allocations: 4 kB / 0.5462 GB, free: 13.3 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.194e-05/0.1567, allocations: 63.33 kB / 0.5462 GB, free: 13.22 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.668e-05/0.1568, allocations: 37.8 kB / 0.5463 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.1569, allocations: 0 / 0.5463 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.952e-05/0.1569, allocations: 3.984 kB / 0.5463 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.92e-07/0.1569, allocations: 0 / 0.5463 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.901e-06/0.1569, allocations: 0 / 0.5463 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.98e-05/0.1569, allocations: 3.938 kB / 0.5463 GB, free: 13.17 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.189e-05/0.1569, allocations: 4 kB / 0.5463 GB, free: 13.17 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.0001158/0.1571, allocations: 135.5 kB / 0.5464 GB, free: 13.02 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.173e-05/0.1571, allocations: 7.938 kB / 0.5464 GB, free: 13.01 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.389e-05/0.1571, allocations: 11.12 kB / 0.5464 GB, free: 13 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.1571, allocations: 0 / 0.5464 GB, free: 13 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.1571, allocations: 3.938 kB / 0.5464 GB, free: 13 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.1571, allocations: 0 / 0.5464 GB, free: 13 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001294/0.1573, allocations: 149.7 kB / 0.5466 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.1573, allocations: 0 / 0.5466 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.494e-06/0.1573, allocations: 3.938 kB / 0.5466 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.22e-06/0.1573, allocations: 4 kB / 0.5466 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.634e-06/0.1573, allocations: 3.938 kB / 0.5466 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.61e-07/0.1573, allocations: 0 / 0.5466 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.1573, allocations: 0 / 0.5466 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001124/0.1574, allocations: 94.83 kB / 0.5467 GB, free: 12.67 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.959e-05/0.1575, allocations: 81.05 kB / 0.5468 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.282e-05/0.1575, allocations: 0 / 0.5468 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.225e-06/0.1575, allocations: 0 / 0.5468 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.124e-05/0.1575, allocations: 0 / 0.5468 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.269e-06/0.1575, allocations: 4 kB / 0.5468 GB, free: 12.57 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.012e-05/0.1576, allocations: 79.31 kB / 0.5468 GB, free: 12.49 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1576, allocations: 0 / 0.5468 GB, free: 12.49 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004107/0.158, allocations: 51.8 kB / 0.5469 GB, free: 12.44 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.001698/0.1597, allocations: 0.544 MB / 0.5474 GB, free: 11.94 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001443/0.1599, allocations: 55.41 kB / 0.5475 GB, free: 11.87 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.1599, allocations: 0 / 0.5475 GB, free: 11.87 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.265e-05/0.16, allocations: 55.41 kB / 0.5475 GB, free: 11.8 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001382/0.1601, allocations: 0 / 0.5475 GB, free: 11.8 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002654/0.1604, allocations: 84.98 kB / 0.5476 GB, free: 11.7 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000375/0.1608, allocations: 0.669 MB / 0.5483 GB, free: 11 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.325e-05/0.1608, allocations: 4 kB / 0.5483 GB, free: 11 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.686e-05/0.1608, allocations: 15.5 kB / 0.5483 GB, free: 10.98 MB / 414.1 MB Notification: Performance of SimCode: time 3e-07/0.1608, allocations: 0 / 0.5483 GB, free: 10.98 MB / 414.1 MB Notification: Performance of Templates: time 0.006702/0.1675, allocations: 2.133 MB / 0.5504 GB, free: 8.84 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.0.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.030002371408045]