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.001337/0.001337, allocations: 116.4 kB / 20.43 MB, free: 1.457 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.001448/0.001448, allocations: 214.9 kB / 23.75 MB, free: 4.672 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.438/1.438, allocations: 230.5 MB / 257.4 MB, free: 8.016 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.2392/0.2392, allocations: 46.93 MB / 360.8 MB, free: 4.195 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.003038/0.003038, allocations: 83.88 kB / 0.4962 GB, free: 7.789 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3408/0.3439, allocations: 66.07 MB / 0.5607 GB, free: 4.316 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.00151/0.3454, allocations: 0.4893 MB / 0.5612 GB, free: 3.828 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002047/0.3474, allocations: 1.177 MB / 0.5623 GB, free: 2.645 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.17e-05/0.3474, allocations: 7.938 kB / 0.5623 GB, free: 2.637 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.327e-05/0.3475, allocations: 0 / 0.5623 GB, free: 2.637 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.821e-06/0.3475, allocations: 0 / 0.5623 GB, free: 2.637 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.002118/0.3496, allocations: 0.7448 MB / 0.5631 GB, free: 1.898 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.471e-05/0.3496, allocations: 4 kB / 0.5631 GB, free: 1.895 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.347e-05/0.3497, allocations: 8 kB / 0.5631 GB, free: 1.887 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.73e-05/0.3497, allocations: 0 / 0.5631 GB, free: 1.887 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.361e-05/0.3497, allocations: 0 / 0.5631 GB, free: 1.887 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.31e-06/0.3497, allocations: 4 kB / 0.5631 GB, free: 1.883 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003347/0.353, allocations: 2.495 MB / 0.5655 GB, free: 15.38 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.441e-05/0.3531, allocations: 7.969 kB / 0.5655 GB, free: 15.38 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.242e-05/0.3531, allocations: 8 kB / 0.5655 GB, free: 15.37 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004311/0.3535, allocations: 359.3 kB / 0.5659 GB, free: 15.02 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.451e-06/0.3535, allocations: 4 kB / 0.5659 GB, free: 15.01 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.3535, allocations: 0 / 0.5659 GB, free: 15.01 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.678e-06/0.3535, allocations: 0 / 0.5659 GB, free: 15.01 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.0004071/0.3539, allocations: 303.6 kB / 0.5662 GB, free: 14.68 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.662e-05/0.354, allocations: 8.031 kB / 0.5662 GB, free: 14.67 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.533e-05/0.354, allocations: 34.56 kB / 0.5662 GB, free: 14.63 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.571e-05/0.354, allocations: 0 / 0.5662 GB, free: 14.63 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.168e-05/0.3541, allocations: 105.2 kB / 0.5663 GB, free: 14.5 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.201e-05/0.3541, allocations: 7.938 kB / 0.5663 GB, free: 14.49 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.125e-06/0.3541, allocations: 3.938 kB / 0.5663 GB, free: 14.49 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.765e-05/0.3542, allocations: 25.7 kB / 0.5664 GB, free: 14.46 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.524e-06/0.3542, allocations: 4 kB / 0.5664 GB, free: 14.45 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.187e-06/0.3542, allocations: 4 kB / 0.5664 GB, free: 14.45 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.647e-06/0.3542, allocations: 0 / 0.5664 GB, free: 14.45 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.774e-05/0.3542, allocations: 7.922 kB / 0.5664 GB, free: 14.44 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001281/0.3544, allocations: 116.8 kB / 0.5665 GB, free: 14.29 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.445e-05/0.3544, allocations: 30.45 kB / 0.5665 GB, free: 14.25 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.575e-05/0.3544, allocations: 8.797 kB / 0.5665 GB, free: 14.23 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.173e-06/0.3544, allocations: 0 / 0.5665 GB, free: 14.23 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.725e-05/0.3545, allocations: 60.33 kB / 0.5666 GB, free: 14.16 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 1.012e-06/0.3545, allocations: 0 / 0.5666 GB, free: 14.16 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001658/0.3547, allocations: 63.39 kB / 0.5666 GB, free: 14.09 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.763e-05/0.3547, allocations: 85.23 kB / 0.5667 GB, free: 13.98 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.657e-05/0.3548, allocations: 93.81 kB / 0.5668 GB, free: 13.88 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.118e-05/0.3548, allocations: 25.7 kB / 0.5668 GB, free: 13.85 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.066e-05/0.3548, allocations: 80.14 kB / 0.5669 GB, free: 13.77 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.766e-05/0.3548, allocations: 0 / 0.5669 GB, free: 13.77 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.726e-05/0.3549, allocations: 13.72 kB / 0.5669 GB, free: 13.75 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001349/0.355, allocations: 314.8 kB / 0.5672 GB, free: 13.43 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.245e-06/0.355, allocations: 3.938 kB / 0.5672 GB, free: 13.43 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.508e-06/0.355, allocations: 0 / 0.5672 GB, free: 13.43 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.814e-05/0.3551, allocations: 68.33 kB / 0.5673 GB, free: 13.35 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.3551, allocations: 0 / 0.5673 GB, free: 13.35 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.002e-05/0.3551, allocations: 63.34 kB / 0.5673 GB, free: 13.27 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.465e-05/0.3552, allocations: 33.69 kB / 0.5674 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.987e-06/0.3552, allocations: 0 / 0.5674 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.35e-05/0.3552, allocations: 4 kB / 0.5674 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.71e-07/0.3552, allocations: 0 / 0.5674 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.997e-06/0.3552, allocations: 0 / 0.5674 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.389e-05/0.3552, allocations: 0 / 0.5674 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.41e-06/0.3552, allocations: 4.031 kB / 0.5674 GB, free: 13.23 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.0001371/0.3554, allocations: 144.8 kB / 0.5675 GB, free: 13.07 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.056e-05/0.3554, allocations: 3.938 kB / 0.5675 GB, free: 13.07 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.847e-06/0.3554, allocations: 3 kB / 0.5675 GB, free: 13.06 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.92e-07/0.3554, allocations: 0 / 0.5675 GB, free: 13.06 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.3554, allocations: 3.984 kB / 0.5675 GB, free: 13.06 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.813e-06/0.3554, allocations: 0 / 0.5675 GB, free: 13.06 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.98e-05/0.3555, allocations: 116.8 kB / 0.5676 GB, free: 12.9 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.3555, allocations: 3.938 kB / 0.5677 GB, free: 12.9 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.71e-07/0.3555, allocations: 4 kB / 0.5677 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.092e-06/0.3555, allocations: 3.938 kB / 0.5677 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.501e-06/0.3555, allocations: 0 / 0.5677 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.278e-06/0.3555, allocations: 4 kB / 0.5677 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.3555, allocations: 0 / 0.5677 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.145e-05/0.3556, allocations: 86.83 kB / 0.5677 GB, free: 12.78 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.454e-06/0.3556, allocations: 7.938 kB / 0.5678 GB, free: 12.77 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.013e-05/0.3556, allocations: 4.031 kB / 0.5678 GB, free: 12.77 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.025e-05/0.3556, allocations: 4 kB / 0.5678 GB, free: 12.76 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.057e-05/0.3556, allocations: 7.922 kB / 0.5678 GB, free: 12.75 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.324e-06/0.3556, allocations: 3.938 kB / 0.5678 GB, free: 12.75 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.563e-05/0.3557, allocations: 75.28 kB / 0.5678 GB, free: 12.68 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3557, allocations: 4 kB / 0.5678 GB, free: 12.67 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003043/0.356, allocations: 51.73 kB / 0.5679 GB, free: 12.62 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.001745/0.3577, allocations: 1.063 MB / 0.5689 GB, free: 11.57 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 9.07e-05/0.3578, allocations: 59.41 kB / 0.569 GB, free: 11.5 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.3578, allocations: 0 / 0.569 GB, free: 11.5 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.336e-05/0.3578, allocations: 67.33 kB / 0.5691 GB, free: 11.43 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001224/0.358, allocations: 6.906 kB / 0.5691 GB, free: 11.42 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003395/0.3583, allocations: 130.5 kB / 0.5692 GB, free: 11.25 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000286/0.3586, allocations: 0.6728 MB / 0.5698 GB, free: 10.55 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.829e-06/0.3586, allocations: 0 / 0.5698 GB, free: 10.55 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.592e-05/0.3586, allocations: 11.44 kB / 0.5699 GB, free: 10.54 MB / 414.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3586, allocations: 128 / 0.5699 GB, free: 10.54 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0283/0.3869, allocations: 3.186 MB / 0.573 GB, free: 7.457 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.01/11.4, allocations: 19.62 kB / 0.573 GB, free: 7.441 MB / 414.1 MB " [Timeout remaining time 648] (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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_trunk_ModelicaTest_Math_TestColorMapToSvg.fmu > ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg_res.csv","/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_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: 14.392040841004928]