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.001695/0.001695, 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.001474/0.001474, allocations: 208.7 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.443/1.443, allocations: 230.6 MB / 257.5 MB, free: 7.785 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.2358/0.2358, allocations: 46.96 MB / 360.9 MB, free: 4.035 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.00191/0.00191, allocations: 72.02 kB / 0.4961 GB, free: 7.727 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3606/0.3626, allocations: 66.03 MB / 0.5606 GB, free: 4.234 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001796/0.3643, allocations: 0.4922 MB / 0.5611 GB, free: 3.742 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002214/0.3666, allocations: 1.1 MB / 0.5621 GB, free: 2.637 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.904e-05/0.3666, allocations: 4 kB / 0.5621 GB, free: 2.633 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.629e-05/0.3666, allocations: 3.938 kB / 0.5621 GB, free: 2.629 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.392e-06/0.3666, allocations: 4 kB / 0.5621 GB, free: 2.625 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.002524/0.3691, allocations: 0.7506 MB / 0.5629 GB, free: 1.879 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.825e-05/0.3692, allocations: 3.938 kB / 0.5629 GB, free: 1.875 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.079e-05/0.3692, allocations: 8 kB / 0.5629 GB, free: 1.867 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.768e-05/0.3692, allocations: 0 / 0.5629 GB, free: 1.867 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.928e-05/0.3693, allocations: 0 / 0.5629 GB, free: 1.867 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.74e-06/0.3693, allocations: 0 / 0.5629 GB, free: 1.867 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003321/0.3726, allocations: 2.468 MB / 0.5653 GB, free: 15.39 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.636e-06/0.3726, allocations: 0 / 0.5653 GB, free: 15.39 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.45e-05/0.3726, allocations: 4 kB / 0.5653 GB, free: 15.39 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000478/0.3731, allocations: 355.4 kB / 0.5656 GB, free: 15.04 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.3731, allocations: 3.938 kB / 0.5656 GB, free: 15.04 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3731, allocations: 0 / 0.5656 GB, free: 15.04 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.683e-06/0.3731, allocations: 0 / 0.5656 GB, free: 15.04 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.0004271/0.3735, allocations: 295.6 kB / 0.5659 GB, free: 14.71 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.463e-05/0.3736, allocations: 12.03 kB / 0.5659 GB, free: 14.7 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.112e-05/0.3736, allocations: 34.5 kB / 0.566 GB, free: 14.66 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.508e-05/0.3737, allocations: 0 / 0.566 GB, free: 14.66 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.174e-05/0.3737, allocations: 101.2 kB / 0.5661 GB, free: 14.54 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.353e-05/0.3738, allocations: 7.875 kB / 0.5661 GB, free: 14.53 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.866e-06/0.3738, allocations: 4 kB / 0.5661 GB, free: 14.52 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001048/0.3739, allocations: 59.39 kB / 0.5661 GB, free: 14.45 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.647e-06/0.3739, allocations: 0 / 0.5661 GB, free: 14.45 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.658e-06/0.3739, allocations: 4 kB / 0.5661 GB, free: 14.45 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.3739, allocations: 0 / 0.5661 GB, free: 14.45 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.455e-05/0.3739, allocations: 29.7 kB / 0.5662 GB, free: 14.41 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001504/0.3741, allocations: 128.7 kB / 0.5663 GB, free: 14.25 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.91e-05/0.3741, allocations: 48.2 kB / 0.5663 GB, free: 14.18 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.422e-05/0.3742, allocations: 38.66 kB / 0.5664 GB, free: 14.14 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.263e-06/0.3742, allocations: 0 / 0.5664 GB, free: 14.14 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.371e-05/0.3743, allocations: 56.27 kB / 0.5664 GB, free: 14.07 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 8.92e-07/0.3743, allocations: 4 kB / 0.5664 GB, free: 14.06 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002245/0.3745, allocations: 118.7 kB / 0.5665 GB, free: 13.92 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.337e-05/0.3746, allocations: 81.05 kB / 0.5666 GB, free: 13.82 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.708e-05/0.3746, allocations: 97.81 kB / 0.5667 GB, free: 13.72 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.038e-05/0.3746, allocations: 29.7 kB / 0.5667 GB, free: 13.68 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.671e-05/0.3747, allocations: 80.14 kB / 0.5668 GB, free: 13.6 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.155e-05/0.3747, allocations: 0 / 0.5668 GB, free: 13.6 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.951e-05/0.3747, allocations: 13.72 kB / 0.5668 GB, free: 13.58 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001454/0.3749, allocations: 310.8 kB / 0.5671 GB, free: 13.27 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.604e-05/0.3749, allocations: 25.83 kB / 0.5671 GB, free: 13.24 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.224e-05/0.3749, allocations: 33.69 kB / 0.5672 GB, free: 13.2 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.972e-05/0.375, allocations: 64.27 kB / 0.5672 GB, free: 13.12 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.375, allocations: 3.938 kB / 0.5672 GB, free: 13.12 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.022e-05/0.3751, allocations: 85.11 kB / 0.5673 GB, free: 13.02 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.037e-05/0.3751, allocations: 41.62 kB / 0.5674 GB, free: 12.97 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.459e-06/0.3751, allocations: 0 / 0.5674 GB, free: 12.97 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.449e-05/0.3751, allocations: 0 / 0.5674 GB, free: 12.97 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.42e-07/0.3751, allocations: 0 / 0.5674 GB, free: 12.97 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.641e-06/0.3751, allocations: 0 / 0.5674 GB, free: 12.97 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.531e-05/0.3752, allocations: 4.094 kB / 0.5674 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.192e-06/0.3752, allocations: 0 / 0.5674 GB, free: 12.96 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.0001156/0.3753, allocations: 143.5 kB / 0.5675 GB, free: 12.81 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.093e-06/0.3753, allocations: 0 / 0.5675 GB, free: 12.81 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.199e-05/0.3753, allocations: 3 kB / 0.5675 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.3753, allocations: 4 kB / 0.5675 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/0.3753, allocations: 3.984 kB / 0.5675 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.254e-06/0.3753, allocations: 0 / 0.5675 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000107/0.3754, allocations: 116.7 kB / 0.5676 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.51e-07/0.3754, allocations: 0 / 0.5676 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.3754, allocations: 4 kB / 0.5676 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.789e-06/0.3754, allocations: 7.938 kB / 0.5676 GB, free: 12.63 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.394e-06/0.3754, allocations: 0 / 0.5676 GB, free: 12.63 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.3754, allocations: 0 / 0.5676 GB, free: 12.63 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.3754, allocations: 0 / 0.5676 GB, free: 12.63 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001337/0.3756, allocations: 124.4 kB / 0.5678 GB, free: 12.48 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.308e-06/0.3756, allocations: 0 / 0.5678 GB, free: 12.48 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.288e-05/0.3756, allocations: 0 / 0.5678 GB, free: 12.48 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.116e-06/0.3756, allocations: 7.938 kB / 0.5678 GB, free: 12.47 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.765e-05/0.3756, allocations: 7.984 kB / 0.5678 GB, free: 12.46 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.719e-06/0.3756, allocations: 4 kB / 0.5678 GB, free: 12.46 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.69e-05/0.3757, allocations: 79.31 kB / 0.5679 GB, free: 12.38 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3757, allocations: 0 / 0.5679 GB, free: 12.38 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003224/0.376, allocations: 55.73 kB / 0.5679 GB, free: 12.32 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.001995/0.378, allocations: 1.105 MB / 0.569 GB, free: 11.26 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001852/0.3782, allocations: 122.7 kB / 0.5691 GB, free: 11.12 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.3782, allocations: 0 / 0.5691 GB, free: 11.12 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 7.499e-05/0.3782, allocations: 81.11 kB / 0.5692 GB, free: 11.02 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001392/0.3784, allocations: 3.938 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.0004766/0.3789, allocations: 168.1 kB / 0.5693 GB, free: 10.8 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.233e-05/0.3789, allocations: 55.36 kB / 0.5694 GB, free: 10.73 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.961e-06/0.3789, allocations: 0 / 0.5694 GB, free: 10.73 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.791e-05/0.3789, allocations: 7.562 kB / 0.5694 GB, free: 10.72 MB / 414.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3789, allocations: 4 kB / 0.5694 GB, free: 10.72 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03343/0.4124, allocations: 3.617 MB / 0.5729 GB, free: 7.23 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.84/11.25, allocations: 0 / 0.5729 GB, free: 7.23 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0_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_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.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_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.175024782976834]