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.001746/0.001746, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.002086/0.002086, allocations: 203.6 kB / 23.73 MB, free: 4.379 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.437/1.437, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.2308/0.2308, allocations: 46.96 MB / 360.9 MB, free: 4.027 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestColorMapToSvg,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_TestColorMapToSvg",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001978/0.001978, allocations: 63.89 kB / 0.4961 GB, free: 7.73 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.371/0.373, allocations: 66.04 MB / 0.5606 GB, free: 4.242 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001699/0.3747, allocations: 489.1 kB / 0.561 GB, free: 3.762 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002152/0.3768, allocations: 1.112 MB / 0.5621 GB, free: 2.645 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.411e-05/0.3769, allocations: 0 / 0.5621 GB, free: 2.645 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.613e-05/0.3769, allocations: 3.938 kB / 0.5621 GB, free: 2.641 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.791e-06/0.3769, allocations: 3.938 kB / 0.5621 GB, free: 2.637 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.002159/0.3791, allocations: 0.754 MB / 0.5629 GB, free: 1.891 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.89e-05/0.3791, allocations: 0 / 0.5629 GB, free: 1.891 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.521e-05/0.3791, allocations: 8 kB / 0.5629 GB, free: 1.883 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.782e-05/0.3792, allocations: 0 / 0.5629 GB, free: 1.883 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.989e-05/0.3792, allocations: 0 / 0.5629 GB, free: 1.883 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.212e-06/0.3792, allocations: 3.938 kB / 0.5629 GB, free: 1.879 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003547/0.3827, allocations: 2.468 MB / 0.5653 GB, free: 15.41 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.077e-05/0.3827, allocations: 0 / 0.5653 GB, free: 15.41 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.191e-05/0.3828, allocations: 7.938 kB / 0.5653 GB, free: 15.4 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004796/0.3832, allocations: 347.4 kB / 0.5656 GB, free: 15.06 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.718e-06/0.3833, allocations: 4 kB / 0.5656 GB, free: 15.05 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.3833, allocations: 0 / 0.5656 GB, free: 15.05 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.941e-06/0.3833, allocations: 0 / 0.5656 GB, free: 15.05 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.0004596/0.3837, allocations: 299.5 kB / 0.5659 GB, free: 14.73 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.47e-05/0.3838, allocations: 12.03 kB / 0.5659 GB, free: 14.71 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.459e-05/0.3838, allocations: 34.55 kB / 0.566 GB, free: 14.67 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.543e-05/0.3838, allocations: 0 / 0.566 GB, free: 14.67 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.121e-05/0.3839, allocations: 105.2 kB / 0.5661 GB, free: 14.54 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.251e-05/0.3839, allocations: 3.938 kB / 0.5661 GB, free: 14.54 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.282e-05/0.3839, allocations: 8 kB / 0.5661 GB, free: 14.53 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001043/0.384, allocations: 55.41 kB / 0.5661 GB, free: 14.46 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.145e-06/0.3841, allocations: 0 / 0.5661 GB, free: 14.46 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.803e-06/0.3841, allocations: 0 / 0.5661 GB, free: 14.46 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.067e-06/0.3841, allocations: 4 kB / 0.5661 GB, free: 14.46 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.211e-05/0.3841, allocations: 25.7 kB / 0.5662 GB, free: 14.43 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001475/0.3842, allocations: 124.7 kB / 0.5663 GB, free: 14.27 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.373e-05/0.3843, allocations: 44.22 kB / 0.5663 GB, free: 14.21 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.307e-05/0.3843, allocations: 34.56 kB / 0.5664 GB, free: 14.16 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.819e-06/0.3843, allocations: 4.062 kB / 0.5664 GB, free: 14.16 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.547e-05/0.3844, allocations: 60.27 kB / 0.5664 GB, free: 14.09 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 1.012e-06/0.3844, allocations: 0 / 0.5664 GB, free: 14.09 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.000208/0.3846, allocations: 114.8 kB / 0.5665 GB, free: 13.95 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.013e-05/0.3847, allocations: 81.11 kB / 0.5666 GB, free: 13.85 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.849e-05/0.3847, allocations: 97.75 kB / 0.5667 GB, free: 13.75 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.816e-05/0.3847, allocations: 33.64 kB / 0.5667 GB, free: 13.71 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.475e-05/0.3848, allocations: 80.14 kB / 0.5668 GB, free: 13.62 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.987e-05/0.3848, allocations: 0 / 0.5668 GB, free: 13.62 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.238e-05/0.3848, allocations: 13.7 kB / 0.5668 GB, free: 13.61 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001428/0.385, allocations: 314.8 kB / 0.5671 GB, free: 13.29 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.39e-05/0.385, allocations: 29.83 kB / 0.5671 GB, free: 13.25 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.808e-05/0.385, allocations: 29.64 kB / 0.5672 GB, free: 13.22 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.913e-05/0.3851, allocations: 64.27 kB / 0.5672 GB, free: 13.14 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.105e-06/0.3851, allocations: 3.938 kB / 0.5672 GB, free: 13.14 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.208e-05/0.3852, allocations: 89.09 kB / 0.5673 GB, free: 13.03 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.302e-05/0.3852, allocations: 29.7 kB / 0.5674 GB, free: 13 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.037e-06/0.3852, allocations: 4 kB / 0.5674 GB, free: 12.99 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.704e-05/0.3852, allocations: 0 / 0.5674 GB, free: 12.99 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.92e-07/0.3852, allocations: 3.938 kB / 0.5674 GB, free: 12.99 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.258e-06/0.3852, allocations: 4.094 kB / 0.5674 GB, free: 12.98 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.468e-05/0.3852, allocations: 0 / 0.5674 GB, free: 12.98 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.412e-06/0.3852, allocations: 0 / 0.5674 GB, free: 12.98 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.0001043/0.3853, allocations: 147.5 kB / 0.5675 GB, free: 12.82 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.913e-06/0.3853, allocations: 0 / 0.5675 GB, free: 12.82 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.348e-05/0.3854, allocations: 6.984 kB / 0.5675 GB, free: 12.82 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.82e-07/0.3854, allocations: 0 / 0.5675 GB, free: 12.82 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.3854, allocations: 4 kB / 0.5675 GB, free: 12.81 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.993e-06/0.3854, allocations: 0 / 0.5675 GB, free: 12.81 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001034/0.3855, allocations: 120.7 kB / 0.5676 GB, free: 12.65 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.3855, allocations: 0 / 0.5676 GB, free: 12.65 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.3855, allocations: 4 kB / 0.5676 GB, free: 12.65 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/0.3855, allocations: 3.984 kB / 0.5676 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.362e-06/0.3855, allocations: 4 kB / 0.5676 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.81e-07/0.3855, allocations: 0 / 0.5676 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.3855, allocations: 0 / 0.5676 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001198/0.3856, allocations: 124.5 kB / 0.5678 GB, free: 12.49 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.737e-06/0.3856, allocations: 3.938 kB / 0.5678 GB, free: 12.48 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.374e-05/0.3856, allocations: 4 kB / 0.5678 GB, free: 12.48 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.004e-05/0.3856, allocations: 4 kB / 0.5678 GB, free: 12.48 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.483e-05/0.3856, allocations: 0 / 0.5678 GB, free: 12.48 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.435e-06/0.3857, allocations: 4.031 kB / 0.5678 GB, free: 12.47 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.656e-05/0.3857, allocations: 75.28 kB / 0.5678 GB, free: 12.4 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3857, allocations: 0 / 0.5678 GB, free: 12.4 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003202/0.386, allocations: 55.73 kB / 0.5679 GB, free: 12.34 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.001881/0.3879, allocations: 1.114 MB / 0.569 GB, free: 11.27 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001345/0.388, allocations: 118.8 kB / 0.5691 GB, free: 11.13 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.388, allocations: 0 / 0.5691 GB, free: 11.13 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.966e-05/0.3881, allocations: 81.11 kB / 0.5692 GB, free: 11.03 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001256/0.3882, allocations: 7.922 kB / 0.5692 GB, free: 11.02 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000408/0.3886, allocations: 160.2 kB / 0.5693 GB, free: 10.82 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.298e-05/0.3887, allocations: 55.36 kB / 0.5694 GB, free: 10.75 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.242e-06/0.3887, allocations: 0 / 0.5694 GB, free: 10.75 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.938e-05/0.3887, allocations: 19.48 kB / 0.5694 GB, free: 10.73 MB / 414.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3887, allocations: 0 / 0.5694 GB, free: 10.73 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02858/0.4173, allocations: 3.608 MB / 0.5729 GB, free: 7.246 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.95/11.37, allocations: 3.938 kB / 0.5729 GB, free: 7.242 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.23794043698581]