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.001946/0.001946, allocations: 118.6 kB / 18.5 MB, free: 4.566 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.002066/0.002066, allocations: 214.6 kB / 21.46 MB, free: 1.605 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.473/1.473, allocations: 230.2 MB / 254.5 MB, free: 15.4 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.2311/0.2311, allocations: 46.89 MB / 357.4 MB, free: 10.47 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: "" <> buildModelFMU(ModelicaTest.Math.TestColorMapToSvg,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestColorMapToSvg",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestColorMapToSvg,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestColorMapToSvg",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002204/0.002204, allocations: 84.33 kB / 0.4912 GB, free: 26.82 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1357/0.1379, allocations: 65.98 MB / 0.5557 GB, free: 9.059 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001748/0.1397, allocations: 486.4 kB / 0.5561 GB, free: 8.578 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002218/0.1419, allocations: 1.168 MB / 0.5573 GB, free: 7.402 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.489e-05/0.1419, allocations: 3.938 kB / 0.5573 GB, free: 7.398 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.357e-05/0.142, allocations: 0 / 0.5573 GB, free: 7.398 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.481e-06/0.142, allocations: 3.938 kB / 0.5573 GB, free: 7.395 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 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.002099/0.1441, allocations: 0.6822 MB / 0.5579 GB, free: 6.719 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 4.665e-05/0.1441, allocations: 4 kB / 0.558 GB, free: 6.715 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.775e-05/0.1441, allocations: 4 kB / 0.558 GB, free: 6.711 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.523e-05/0.1442, allocations: 3.938 kB / 0.558 GB, free: 6.707 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.612e-05/0.1442, allocations: 0 / 0.558 GB, free: 6.707 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.029e-06/0.1442, allocations: 0 / 0.558 GB, free: 6.707 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00317/0.1473, allocations: 2.461 MB / 0.5604 GB, free: 4.242 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.798e-06/0.1474, allocations: 0 / 0.5604 GB, free: 4.242 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.074e-05/0.1474, allocations: 0 / 0.5604 GB, free: 4.242 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004849/0.1479, allocations: 363.4 kB / 0.5607 GB, free: 3.887 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.1479, allocations: 0 / 0.5607 GB, free: 3.887 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.1479, allocations: 3.938 kB / 0.5607 GB, free: 3.883 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.4e-06/0.1479, allocations: 0 / 0.5607 GB, free: 3.883 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.0004807/0.1484, allocations: 375.6 kB / 0.5611 GB, free: 3.465 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.155e-05/0.1484, allocations: 12.03 kB / 0.5611 GB, free: 3.453 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.903e-05/0.1484, allocations: 34.56 kB / 0.5611 GB, free: 3.41 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.705e-05/0.1485, allocations: 0 / 0.5611 GB, free: 3.41 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001257/0.1486, allocations: 163.1 kB / 0.5613 GB, free: 3.211 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.434e-06/0.1486, allocations: 0 / 0.5613 GB, free: 3.211 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.198e-05/0.1486, allocations: 3.938 kB / 0.5613 GB, free: 3.207 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001003/0.1487, allocations: 29.7 kB / 0.5613 GB, free: 3.172 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.226e-06/0.1487, allocations: 0 / 0.5613 GB, free: 3.172 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.714e-06/0.1487, allocations: 0 / 0.5613 GB, free: 3.172 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.499e-06/0.1487, allocations: 4 kB / 0.5613 GB, free: 3.168 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.89e-05/0.1487, allocations: 3.938 kB / 0.5613 GB, free: 3.164 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001633/0.1489, allocations: 153.7 kB / 0.5615 GB, free: 2.965 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.443e-05/0.149, allocations: 18.52 kB / 0.5615 GB, free: 2.938 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.695e-05/0.149, allocations: 8.797 kB / 0.5615 GB, free: 2.926 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.091e-06/0.149, allocations: 4.094 kB / 0.5615 GB, free: 2.922 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.998e-05/0.149, allocations: 56.27 kB / 0.5615 GB, free: 2.852 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 9.82e-07/0.149, allocations: 4 kB / 0.5615 GB, free: 2.848 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001842/0.1492, allocations: 71.33 kB / 0.5616 GB, free: 2.766 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.663e-05/0.1493, allocations: 77.11 kB / 0.5617 GB, free: 2.672 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.172e-05/0.1493, allocations: 97.75 kB / 0.5618 GB, free: 2.566 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.754e-05/0.1493, allocations: 25.7 kB / 0.5618 GB, free: 2.535 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.808e-05/0.1494, allocations: 88.12 kB / 0.5619 GB, free: 2.445 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.863e-05/0.1494, allocations: 0 / 0.5619 GB, free: 2.445 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.31e-05/0.1494, allocations: 13.72 kB / 0.5619 GB, free: 2.426 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.1496, allocations: 315 kB / 0.5622 GB, free: 2.109 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.866e-06/0.1496, allocations: 0 / 0.5622 GB, free: 2.109 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.705e-06/0.1496, allocations: 4 kB / 0.5622 GB, free: 2.105 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.629e-05/0.1497, allocations: 64.25 kB / 0.5623 GB, free: 2.027 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.1497, allocations: 0 / 0.5623 GB, free: 2.027 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.087e-05/0.1497, allocations: 67.28 kB / 0.5623 GB, free: 1.949 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.688e-05/0.1498, allocations: 33.7 kB / 0.5624 GB, free: 1.91 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.1498, allocations: 0 / 0.5624 GB, free: 1.91 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.884e-05/0.1498, allocations: 8.094 kB / 0.5624 GB, free: 1.902 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.142e-06/0.1498, allocations: 0 / 0.5624 GB, free: 1.902 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.837e-06/0.1498, allocations: 0 / 0.5624 GB, free: 1.902 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.661e-05/0.1498, allocations: 3.938 kB / 0.5624 GB, free: 1.898 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.195e-06/0.1498, allocations: 3.984 kB / 0.5624 GB, free: 1.895 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.0001078/0.1499, allocations: 139.5 kB / 0.5625 GB, free: 1.742 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.759e-06/0.1499, allocations: 3.938 kB / 0.5625 GB, free: 1.738 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.949e-06/0.15, allocations: 3.125 kB / 0.5625 GB, free: 1.734 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-06/0.15, allocations: 0 / 0.5625 GB, free: 1.734 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.377e-06/0.15, allocations: 4 kB / 0.5625 GB, free: 1.73 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.15, allocations: 4 kB / 0.5625 GB, free: 1.727 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001187/0.1501, allocations: 145.7 kB / 0.5627 GB, free: 1.535 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/0.1501, allocations: 3.938 kB / 0.5627 GB, free: 1.531 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.1501, allocations: 0 / 0.5627 GB, free: 1.531 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.112e-06/0.1501, allocations: 0 / 0.5627 GB, free: 1.531 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.23e-06/0.1501, allocations: 0 / 0.5627 GB, free: 1.531 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.1501, allocations: 7.938 kB / 0.5627 GB, free: 1.523 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.1501, allocations: 0 / 0.5627 GB, free: 1.523 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001123/0.1502, allocations: 94.77 kB / 0.5628 GB, free: 1.406 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.256e-05/0.1502, allocations: 81.05 kB / 0.5628 GB, free: 1.309 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.146e-05/0.1503, allocations: 4 kB / 0.5628 GB, free: 1.305 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.246e-06/0.1503, allocations: 0 / 0.5628 GB, free: 1.305 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.022e-05/0.1503, allocations: 0 / 0.5628 GB, free: 1.305 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.545e-06/0.1503, allocations: 0 / 0.5628 GB, free: 1.305 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.469e-05/0.1503, allocations: 75.28 kB / 0.5629 GB, free: 1.23 MB / 414.1 MB Notification: Performance of sort global known variables: time 5e-08/0.1503, allocations: 0 / 0.5629 GB, free: 1.23 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003379/0.1507, allocations: 51.8 kB / 0.563 GB, free: 1.18 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.001841/0.1525, allocations: 1.074 MB / 0.564 GB, free: 132 kB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001017/0.1526, allocations: 59.34 kB / 0.5641 GB, free: 60 kB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.1526, allocations: 4 kB / 0.5641 GB, free: 56 kB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.957e-05/0.1527, allocations: 55.41 kB / 0.5641 GB, free: 15.99 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001374/0.1528, allocations: 4 kB / 0.5641 GB, free: 15.98 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003715/0.1532, allocations: 134.4 kB / 0.5643 GB, free: 15.81 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003646/0.1535, allocations: 0.673 MB / 0.5649 GB, free: 15.11 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 6.332e-06/0.1535, allocations: 0 / 0.5649 GB, free: 15.11 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.48e-05/0.1536, allocations: 7.438 kB / 0.5649 GB, free: 15.11 MB / 430.1 MB Notification: Performance of SimCode: time 3e-07/0.1536, allocations: 0 / 0.5649 GB, free: 15.11 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02646/0.18, allocations: 3.052 MB / 0.5679 GB, free: 12.12 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.291/8.471, allocations: 16.67 kB / 0.5679 GB, free: 12.1 MB / 430.1 MB " [Timeout remaining time 651] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_TestColorMapToSvg_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_TestColorMapToSvg.fmu > ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestColorMapToSvg/TestColorMapToSvg.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 11.46505826106295]