Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001512/0.001512, allocations: 112.2 kB / 21.22 MB, free: 0.7305 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00181/0.00181, allocations: 212.2 kB / 24.53 MB, free: 4.07 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.422/1.422, allocations: 230.6 MB / 258.3 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.229/0.229, allocations: 46.92 MB / 361.6 MB, free: 4.266 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+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.TestColorMapToSvg,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_TestColorMapToSvg",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestColorMapToSvg,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_TestColorMapToSvg",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001975/0.001975, allocations: 68.12 kB / 0.4969 GB, free: 7.906 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3204/0.3223, allocations: 66.03 MB / 0.5614 GB, free: 4.465 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001625/0.324, allocations: 497.1 kB / 0.5619 GB, free: 3.977 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002004/0.326, allocations: 1.178 MB / 0.563 GB, free: 2.793 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.685e-05/0.326, allocations: 3.938 kB / 0.563 GB, free: 2.789 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.235e-05/0.326, allocations: 0 / 0.563 GB, free: 2.789 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.75e-06/0.326, allocations: 0 / 0.563 GB, free: 2.789 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/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+maint.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.002003/0.328, allocations: 0.7431 MB / 0.5638 GB, free: 2.051 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.359e-05/0.328, allocations: 3.984 kB / 0.5638 GB, free: 2.047 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.972e-05/0.3281, allocations: 4 kB / 0.5638 GB, free: 2.043 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.786e-05/0.3281, allocations: 4 kB / 0.5638 GB, free: 2.039 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.263e-05/0.3281, allocations: 4 kB / 0.5638 GB, free: 2.035 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.139e-06/0.3281, allocations: 0 / 0.5638 GB, free: 2.035 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003337/0.3314, allocations: 2.499 MB / 0.5662 GB, free: 15.53 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.087e-05/0.3315, allocations: 7.984 kB / 0.5662 GB, free: 15.52 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.847e-05/0.3315, allocations: 0 / 0.5662 GB, free: 15.52 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004447/0.3319, allocations: 367.3 kB / 0.5666 GB, free: 15.16 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.3319, allocations: 0 / 0.5666 GB, free: 15.16 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3319, allocations: 0 / 0.5666 GB, free: 15.16 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.942e-06/0.3319, allocations: 0 / 0.5666 GB, free: 15.16 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.000409/0.3323, allocations: 299.6 kB / 0.5669 GB, free: 14.84 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.3324, allocations: 12.03 kB / 0.5669 GB, free: 14.82 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.777e-05/0.3324, allocations: 0 / 0.5669 GB, free: 14.82 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.565e-05/0.3324, allocations: 34.56 kB / 0.5669 GB, free: 14.78 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.443e-05/0.3324, allocations: 4 kB / 0.5669 GB, free: 14.78 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.15e-05/0.3325, allocations: 113.1 kB / 0.567 GB, free: 14.64 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.426e-06/0.3325, allocations: 4 kB / 0.567 GB, free: 14.64 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.362e-06/0.3325, allocations: 0 / 0.567 GB, free: 14.64 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.623e-05/0.3326, allocations: 25.7 kB / 0.567 GB, free: 14.61 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.562e-06/0.3326, allocations: 4 kB / 0.567 GB, free: 14.6 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.482e-06/0.3326, allocations: 0 / 0.567 GB, free: 14.6 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.3326, allocations: 7.922 kB / 0.5671 GB, free: 14.59 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.69e-05/0.3327, allocations: 3.984 kB / 0.5671 GB, free: 14.59 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001293/0.3328, allocations: 124.7 kB / 0.5672 GB, free: 14.43 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.257e-05/0.3328, allocations: 22.52 kB / 0.5672 GB, free: 14.39 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.269e-05/0.3328, allocations: 8.797 kB / 0.5672 GB, free: 14.38 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.701e-06/0.3329, allocations: 0 / 0.5672 GB, free: 14.38 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.707e-05/0.3329, allocations: 60.33 kB / 0.5673 GB, free: 14.31 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 7.02e-07/0.3329, allocations: 0 / 0.5673 GB, free: 14.31 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001764/0.3331, allocations: 71.38 kB / 0.5673 GB, free: 14.23 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.37e-05/0.3331, allocations: 77.11 kB / 0.5674 GB, free: 14.13 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.69e-05/0.3332, allocations: 97.81 kB / 0.5675 GB, free: 14.03 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.538e-05/0.3332, allocations: 25.7 kB / 0.5675 GB, free: 14 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.238e-05/0.3332, allocations: 80.14 kB / 0.5676 GB, free: 13.91 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.627e-05/0.3332, allocations: 0 / 0.5676 GB, free: 13.91 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.825e-05/0.3333, allocations: 17.66 kB / 0.5676 GB, free: 13.89 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001387/0.3334, allocations: 314.8 kB / 0.5679 GB, free: 13.57 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.856e-06/0.3334, allocations: 4.125 kB / 0.5679 GB, free: 13.57 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.288e-06/0.3334, allocations: 0 / 0.5679 GB, free: 13.57 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.447e-05/0.3335, allocations: 68.2 kB / 0.568 GB, free: 13.49 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.3335, allocations: 0 / 0.568 GB, free: 13.49 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.858e-05/0.3336, allocations: 59.41 kB / 0.568 GB, free: 13.42 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.238e-05/0.3336, allocations: 33.69 kB / 0.5681 GB, free: 13.38 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.526e-06/0.3336, allocations: 0 / 0.5681 GB, free: 13.38 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.374e-05/0.3336, allocations: 4 kB / 0.5681 GB, free: 13.38 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.31e-07/0.3336, allocations: 96 / 0.5681 GB, free: 13.38 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.318e-06/0.3336, allocations: 4 kB / 0.5681 GB, free: 13.37 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.5e-05/0.3336, allocations: 3.938 kB / 0.5681 GB, free: 13.37 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.46e-06/0.3336, allocations: 0 / 0.5681 GB, free: 13.37 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.0001041/0.3337, allocations: 139.5 kB / 0.5682 GB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.923e-06/0.3338, allocations: 0 / 0.5682 GB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.628e-06/0.3338, allocations: 3 kB / 0.5682 GB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.866e-06/0.3338, allocations: 3.984 kB / 0.5682 GB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.3338, allocations: 0 / 0.5682 GB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.753e-06/0.3338, allocations: 0 / 0.5682 GB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001025/0.3339, allocations: 128.7 kB / 0.5683 GB, free: 13.04 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.3339, allocations: 0 / 0.5683 GB, free: 13.04 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.31e-07/0.3339, allocations: 3.938 kB / 0.5684 GB, free: 13.04 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.122e-06/0.3339, allocations: 0 / 0.5684 GB, free: 13.04 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.651e-06/0.3339, allocations: 0 / 0.5684 GB, free: 13.04 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.338e-06/0.3339, allocations: 4 kB / 0.5684 GB, free: 13.03 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/0.3339, allocations: 4 kB / 0.5684 GB, free: 13.03 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.68e-05/0.334, allocations: 94.77 kB / 0.5684 GB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.35e-06/0.334, allocations: 4 kB / 0.5685 GB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.043e-05/0.334, allocations: 0 / 0.5685 GB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.146e-06/0.334, allocations: 0 / 0.5685 GB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.355e-05/0.334, allocations: 7.922 kB / 0.5685 GB, free: 12.9 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.344e-06/0.334, allocations: 3.938 kB / 0.5685 GB, free: 12.89 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.539e-05/0.3341, allocations: 75.28 kB / 0.5685 GB, free: 12.82 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3341, allocations: 4 kB / 0.5685 GB, free: 12.82 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003313/0.3344, allocations: 51.73 kB / 0.5686 GB, free: 12.77 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.001838/0.3362, allocations: 1.072 MB / 0.5696 GB, free: 11.73 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 9.373e-05/0.3363, allocations: 55.41 kB / 0.5697 GB, free: 11.66 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.3363, allocations: 0 / 0.5697 GB, free: 11.66 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.805e-05/0.3364, allocations: 63.33 kB / 0.5697 GB, free: 11.59 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001184/0.3365, allocations: 3.938 kB / 0.5698 GB, free: 11.58 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000366/0.3369, allocations: 138.4 kB / 0.5699 GB, free: 11.41 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002973/0.3372, allocations: 0.6729 MB / 0.5705 GB, free: 10.71 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.45e-06/0.3372, allocations: 128 / 0.5705 GB, free: 10.71 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.334e-05/0.3372, allocations: 11.44 kB / 0.5706 GB, free: 10.7 MB / 414.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3372, allocations: 0 / 0.5706 GB, free: 10.7 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0228/0.36, allocations: 3.215 MB / 0.5737 GB, free: 7.625 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.83/11.19, allocations: 11.91 kB / 0.5737 GB, free: 7.613 MB / 414.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Math_TestColorMapToSvg_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Math_TestColorMapToSvg.fmu > ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_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_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.020778187026735]