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.001352/0.001352, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001456/0.001456, allocations: 213 kB / 23.73 MB, free: 4.164 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.413/1.413, allocations: 230.5 MB / 257.4 MB, free: 7.801 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.228/0.228, allocations: 46.95 MB / 360.8 MB, free: 3.949 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.002382/0.002382, allocations: 83.86 kB / 0.4961 GB, free: 7.57 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3763/0.3787, allocations: 66.07 MB / 0.5607 GB, free: 4.043 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001683/0.3804, allocations: 0.4916 MB / 0.5611 GB, free: 3.555 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002212/0.3826, allocations: 1.107 MB / 0.5622 GB, free: 2.441 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.248e-05/0.3826, allocations: 0 / 0.5622 GB, free: 2.441 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.742e-05/0.3826, allocations: 0 / 0.5622 GB, free: 2.441 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.003e-06/0.3826, allocations: 0 / 0.5622 GB, free: 2.441 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.002353/0.385, allocations: 0.7398 MB / 0.5629 GB, free: 1.711 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.585e-05/0.385, allocations: 4 kB / 0.5629 GB, free: 1.707 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.165e-05/0.3851, allocations: 8 kB / 0.563 GB, free: 1.699 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.646e-05/0.3851, allocations: 0 / 0.563 GB, free: 1.699 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.84e-05/0.3851, allocations: 0 / 0.563 GB, free: 1.699 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.522e-06/0.3851, allocations: 3.938 kB / 0.563 GB, free: 1.695 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003211/0.3883, allocations: 2.453 MB / 0.5654 GB, free: 15.24 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.889e-06/0.3883, allocations: 4 kB / 0.5654 GB, free: 15.23 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.512e-05/0.3884, allocations: 4 kB / 0.5654 GB, free: 15.23 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00055/0.3889, allocations: 351.4 kB / 0.5657 GB, free: 14.89 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.3889, allocations: 0 / 0.5657 GB, free: 14.89 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.3889, allocations: 0 / 0.5657 GB, free: 14.89 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.051e-06/0.3889, allocations: 0 / 0.5657 GB, free: 14.89 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.0004361/0.3894, allocations: 303.5 kB / 0.566 GB, free: 14.55 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.217e-05/0.3894, allocations: 8.031 kB / 0.566 GB, free: 14.55 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.346e-05/0.3894, allocations: 30.56 kB / 0.566 GB, free: 14.51 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.611e-05/0.3895, allocations: 7.984 kB / 0.566 GB, free: 14.5 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001014/0.3896, allocations: 113.2 kB / 0.5661 GB, free: 14.36 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.345e-06/0.3896, allocations: 0 / 0.5661 GB, free: 14.36 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.259e-05/0.3896, allocations: 3.938 kB / 0.5661 GB, free: 14.36 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001097/0.3897, allocations: 55.41 kB / 0.5662 GB, free: 14.29 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.596e-06/0.3897, allocations: 0 / 0.5662 GB, free: 14.29 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.945e-06/0.3897, allocations: 0 / 0.5662 GB, free: 14.29 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-06/0.3897, allocations: 0 / 0.5662 GB, free: 14.29 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.477e-05/0.3898, allocations: 33.64 kB / 0.5662 GB, free: 14.25 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001495/0.3899, allocations: 120.8 kB / 0.5663 GB, free: 14.09 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.387e-05/0.39, allocations: 48.31 kB / 0.5664 GB, free: 14.03 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.267e-05/0.39, allocations: 38.5 kB / 0.5664 GB, free: 13.98 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.047e-05/0.39, allocations: 4 kB / 0.5664 GB, free: 13.98 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.376e-05/0.3901, allocations: 60.27 kB / 0.5665 GB, free: 13.91 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 9.92e-07/0.3901, allocations: 0 / 0.5665 GB, free: 13.91 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.000204/0.3903, allocations: 114.8 kB / 0.5666 GB, free: 13.77 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.544e-05/0.3903, allocations: 81.11 kB / 0.5667 GB, free: 13.67 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.695e-05/0.3904, allocations: 97.81 kB / 0.5668 GB, free: 13.57 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.583e-05/0.3904, allocations: 25.7 kB / 0.5668 GB, free: 13.54 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.546e-05/0.3905, allocations: 80.14 kB / 0.5669 GB, free: 13.45 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.103e-05/0.3905, allocations: 4.125 kB / 0.5669 GB, free: 13.45 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.034e-05/0.3905, allocations: 17.66 kB / 0.5669 GB, free: 13.43 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001584/0.3907, allocations: 314.8 kB / 0.5672 GB, free: 13.11 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.784e-05/0.3907, allocations: 25.7 kB / 0.5672 GB, free: 13.08 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.33e-05/0.3907, allocations: 33.64 kB / 0.5672 GB, free: 13.04 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.76e-05/0.3908, allocations: 64.27 kB / 0.5673 GB, free: 12.96 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.3908, allocations: 0 / 0.5673 GB, free: 12.96 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001005/0.3909, allocations: 89.03 kB / 0.5674 GB, free: 12.86 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.965e-05/0.3909, allocations: 33.7 kB / 0.5674 GB, free: 12.82 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.3909, allocations: 4.094 kB / 0.5674 GB, free: 12.81 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.759e-05/0.391, allocations: 0 / 0.5674 GB, free: 12.81 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.71e-07/0.391, allocations: 0 / 0.5674 GB, free: 12.81 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.082e-06/0.391, allocations: 0 / 0.5674 GB, free: 12.81 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.705e-05/0.391, allocations: 7.938 kB / 0.5674 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.553e-06/0.391, allocations: 0 / 0.5674 GB, free: 12.8 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.0001168/0.3911, allocations: 136.9 kB / 0.5676 GB, free: 12.66 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.175e-05/0.3911, allocations: 7.938 kB / 0.5676 GB, free: 12.65 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.483e-05/0.3911, allocations: 6.984 kB / 0.5676 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.71e-07/0.3911, allocations: 0 / 0.5676 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.3911, allocations: 4 kB / 0.5676 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.425e-06/0.3911, allocations: 0 / 0.5676 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001049/0.3913, allocations: 116.8 kB / 0.5677 GB, free: 12.48 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.3913, allocations: 3.938 kB / 0.5677 GB, free: 12.48 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.31e-07/0.3913, allocations: 0 / 0.5677 GB, free: 12.48 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.312e-06/0.3913, allocations: 0 / 0.5677 GB, free: 12.48 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.153e-06/0.3913, allocations: 0 / 0.5677 GB, free: 12.48 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.3913, allocations: 0 / 0.5677 GB, free: 12.48 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.539e-06/0.3913, allocations: 3.984 kB / 0.5677 GB, free: 12.47 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001157/0.3914, allocations: 112.5 kB / 0.5678 GB, free: 12.33 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.704e-06/0.3914, allocations: 3.938 kB / 0.5678 GB, free: 12.33 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.464e-05/0.3914, allocations: 15.95 kB / 0.5678 GB, free: 12.31 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.215e-06/0.3914, allocations: 0 / 0.5678 GB, free: 12.31 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.714e-05/0.3914, allocations: 3.938 kB / 0.5678 GB, free: 12.31 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.881e-06/0.3914, allocations: 4 kB / 0.5678 GB, free: 12.3 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.743e-05/0.3915, allocations: 79.28 kB / 0.5679 GB, free: 12.23 MB / 414.1 MB Notification: Performance of sort global known variables: time 5e-08/0.3915, allocations: 0 / 0.5679 GB, free: 12.23 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003084/0.3918, allocations: 51.73 kB / 0.568 GB, free: 12.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.001964/0.3938, allocations: 1.099 MB / 0.569 GB, free: 11.09 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001314/0.3939, allocations: 118.8 kB / 0.5691 GB, free: 10.95 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.3939, allocations: 0 / 0.5691 GB, free: 10.95 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.762e-05/0.3939, allocations: 85.05 kB / 0.5692 GB, free: 10.85 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001167/0.3941, allocations: 3.938 kB / 0.5692 GB, free: 10.84 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003587/0.3944, allocations: 164.3 kB / 0.5694 GB, free: 10.64 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.615e-05/0.3945, allocations: 59.3 kB / 0.5694 GB, free: 10.56 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.333e-06/0.3945, allocations: 3.984 kB / 0.5695 GB, free: 10.55 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.596e-05/0.3945, allocations: 11.38 kB / 0.5695 GB, free: 10.54 MB / 414.1 MB Notification: Performance of SimCode: time 3e-07/0.3945, allocations: 0 / 0.5695 GB, free: 10.54 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03047/0.425, allocations: 3.602 MB / 0.573 GB, free: 7.043 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.41/11.84, allocations: 7.984 kB / 0.573 GB, free: 7.035 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.704408808145672]