Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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.001628/0.001628, allocations: 116.7 kB / 19.17 MB, free: 3.871 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.002181/0.002181, allocations: 206.6 kB / 22.12 MB, free: 0.9219 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.459/1.459, allocations: 230.3 MB / 255.2 MB, free: 15.39 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2282/0.2282, allocations: 46.92 MB / 358.2 MB, free: 10.46 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4.1.0-beta.om_ModelicaTest.Math.TestColorMapToSvg") translateModel(ModelicaTest.Math.TestColorMapToSvg,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestColorMapToSvg") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002586/0.002586, allocations: 85.8 kB / 0.4925 GB, free: 26.77 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1281/0.1307, allocations: 65.99 MB / 0.5569 GB, free: 8.652 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001825/0.1326, allocations: 0.4931 MB / 0.5574 GB, free: 8.152 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002208/0.1348, allocations: 1.153 MB / 0.5586 GB, free: 6.992 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.025e-05/0.1348, allocations: 0 / 0.5586 GB, free: 6.992 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.222e-05/0.1348, allocations: 0 / 0.5586 GB, free: 6.992 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.781e-06/0.1348, allocations: 4 kB / 0.5586 GB, free: 6.988 MB / 414.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 4.1.0-beta.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.002314/0.1371, allocations: 0.6857 MB / 0.5592 GB, free: 6.309 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.662e-05/0.1372, allocations: 4 kB / 0.5592 GB, free: 6.305 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.838e-05/0.1372, allocations: 0 / 0.5592 GB, free: 6.305 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.124e-05/0.1372, allocations: 0 / 0.5592 GB, free: 6.305 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.742e-05/0.1373, allocations: 3.984 kB / 0.5592 GB, free: 6.301 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.611e-06/0.1373, allocations: 0 / 0.5592 GB, free: 6.301 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003198/0.1405, allocations: 2.461 MB / 0.5616 GB, free: 3.836 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.664e-06/0.1405, allocations: 0 / 0.5616 GB, free: 3.836 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.451e-05/0.1405, allocations: 4 kB / 0.5616 GB, free: 3.832 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005056/0.141, allocations: 355.4 kB / 0.562 GB, free: 3.484 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.141, allocations: 0 / 0.562 GB, free: 3.484 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.141, allocations: 4 kB / 0.562 GB, free: 3.48 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.803e-06/0.141, allocations: 0 / 0.562 GB, free: 3.48 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.0005263/0.1415, allocations: 376.7 kB / 0.5623 GB, free: 3.059 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.753e-05/0.1416, allocations: 12.03 kB / 0.5624 GB, free: 3.047 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.293e-05/0.1416, allocations: 0 / 0.5624 GB, free: 3.047 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001154/0.1417, allocations: 159.1 kB / 0.5625 GB, free: 2.852 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.116e-06/0.1417, allocations: 0 / 0.5625 GB, free: 2.852 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.461e-05/0.1417, allocations: 4 kB / 0.5625 GB, free: 2.848 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001024/0.1418, allocations: 41.62 kB / 0.5625 GB, free: 2.801 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.1419, allocations: 7.984 kB / 0.5626 GB, free: 2.793 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.849e-06/0.1419, allocations: 0 / 0.5626 GB, free: 2.793 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.107e-06/0.1419, allocations: 0 / 0.5626 GB, free: 2.793 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.052e-05/0.1419, allocations: 7.938 kB / 0.5626 GB, free: 2.785 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001506/0.142, allocations: 145.6 kB / 0.5627 GB, free: 2.594 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.437e-05/0.1421, allocations: 14.58 kB / 0.5627 GB, free: 2.57 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.47e-05/0.1421, allocations: 12.94 kB / 0.5627 GB, free: 2.555 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.293e-05/0.1421, allocations: 7.938 kB / 0.5627 GB, free: 2.547 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.08e-05/0.1422, allocations: 64.2 kB / 0.5628 GB, free: 2.469 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 9.72e-07/0.1422, allocations: 0 / 0.5628 GB, free: 2.469 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001821/0.1424, allocations: 63.34 kB / 0.5629 GB, free: 2.395 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.441e-05/0.1424, allocations: 77.11 kB / 0.5629 GB, free: 2.301 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.105e-05/0.1425, allocations: 97.8 kB / 0.563 GB, free: 2.195 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.48e-05/0.1425, allocations: 25.7 kB / 0.563 GB, free: 2.164 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.715e-05/0.1425, allocations: 84.14 kB / 0.5631 GB, free: 2.078 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.263e-05/0.1425, allocations: 8.125 kB / 0.5631 GB, free: 2.07 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.623e-05/0.1426, allocations: 13.72 kB / 0.5631 GB, free: 2.051 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001393/0.1427, allocations: 310.8 kB / 0.5634 GB, free: 1.738 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.208e-05/0.1427, allocations: 4 kB / 0.5634 GB, free: 1.734 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.34e-06/0.1427, allocations: 0 / 0.5634 GB, free: 1.734 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.299e-05/0.1428, allocations: 60.27 kB / 0.5635 GB, free: 1.66 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.1428, allocations: 3.938 kB / 0.5635 GB, free: 1.656 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.964e-05/0.1429, allocations: 71.39 kB / 0.5636 GB, free: 1.574 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.674e-05/0.1429, allocations: 35.42 kB / 0.5636 GB, free: 1.535 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.1429, allocations: 0 / 0.5636 GB, free: 1.535 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.3e-05/0.1429, allocations: 0 / 0.5636 GB, free: 1.535 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.61e-07/0.1429, allocations: 0 / 0.5636 GB, free: 1.535 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.449e-06/0.1429, allocations: 0 / 0.5636 GB, free: 1.535 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.541e-05/0.143, allocations: 0 / 0.5636 GB, free: 1.535 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.047e-06/0.143, allocations: 4 kB / 0.5636 GB, free: 1.531 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 9.585e-05/0.1431, allocations: 139.5 kB / 0.5637 GB, free: 1.379 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.053e-05/0.1431, allocations: 3.969 kB / 0.5638 GB, free: 1.375 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.244e-05/0.1431, allocations: 11.12 kB / 0.5638 GB, free: 1.363 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.1431, allocations: 0 / 0.5638 GB, free: 1.363 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.1431, allocations: 0 / 0.5638 GB, free: 1.363 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.1431, allocations: 0 / 0.5638 GB, free: 1.363 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001162/0.1432, allocations: 145.7 kB / 0.5639 GB, free: 1.172 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.1432, allocations: 3.984 kB / 0.5639 GB, free: 1.168 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.434e-06/0.1432, allocations: 3.938 kB / 0.5639 GB, free: 1.164 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.807e-06/0.1432, allocations: 4 kB / 0.5639 GB, free: 1.16 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.014e-06/0.1432, allocations: 0 / 0.5639 GB, free: 1.16 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.1432, allocations: 0 / 0.5639 GB, free: 1.16 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.1432, allocations: 7.938 kB / 0.5639 GB, free: 1.152 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001135/0.1433, allocations: 90.83 kB / 0.564 GB, free: 1.039 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.151e-05/0.1434, allocations: 84.98 kB / 0.5641 GB, free: 0.9375 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.461e-05/0.1434, allocations: 4 kB / 0.5641 GB, free: 0.9336 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.819e-06/0.1434, allocations: 3.938 kB / 0.5641 GB, free: 0.9297 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.677e-05/0.1434, allocations: 0 / 0.5641 GB, free: 0.9297 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.651e-06/0.1434, allocations: 4 kB / 0.5641 GB, free: 0.9258 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.398e-05/0.1435, allocations: 79.31 kB / 0.5642 GB, free: 0.8477 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1435, allocations: 0 / 0.5642 GB, free: 0.8477 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004023/0.1439, allocations: 51.8 kB / 0.5642 GB, free: 0.7969 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.001619/0.1455, allocations: 0.5331 MB / 0.5647 GB, free: 316 kB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001128/0.1456, allocations: 63.34 kB / 0.5648 GB, free: 240 kB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.1456, allocations: 0 / 0.5648 GB, free: 240 kB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.232e-05/0.1457, allocations: 55.41 kB / 0.5649 GB, free: 172 kB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001265/0.1458, allocations: 4 kB / 0.5649 GB, free: 168 kB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00021/0.146, allocations: 102.7 kB / 0.565 GB, free: 32 kB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003272/0.1463, allocations: 0.6729 MB / 0.5656 GB, free: 15.33 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.76e-05/0.1463, allocations: 7.562 kB / 0.5656 GB, free: 15.32 MB / 430.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1463, allocations: 4 kB / 0.5656 GB, free: 15.32 MB / 430.1 MB Notification: Performance of Templates: time 0.00509/0.1514, allocations: 2.595 MB / 0.5682 GB, free: 12.72 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestColorMapToSvg.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestColorMapToSvg.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestColorMapToSvg.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestColorMapToSvg.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestColorMapToSvg.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestColorMapToSvg -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestColorMapToSvg.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestColorMapToSvg_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/TestColorMapToSvg/TestColorMapToSvg.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_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: 7.99797557599959]