Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001344/0.001344, 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 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.001478/0.001478, allocations: 212.4 kB / 23.73 MB, free: 4.16 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.424/1.424, allocations: 230.6 MB / 257.5 MB, free: 7.777 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2243/0.2243, allocations: 44.92 MB / 358.8 MB, free: 6.027 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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_0_0_ModelicaTest_Math_TestColorMapToSvg",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestColorMapToSvg,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestColorMapToSvg",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002134/0.002134, allocations: 71.89 kB / 0.493 GB, free: 10.52 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3165/0.3187, allocations: 65.47 MB / 0.5569 GB, free: 7.324 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001623/0.3203, allocations: 0.5007 MB / 0.5574 GB, free: 6.941 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002088/0.3224, allocations: 1.111 MB / 0.5585 GB, free: 5.93 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.689e-05/0.3224, allocations: 0 / 0.5585 GB, free: 5.93 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.064e-05/0.3224, allocations: 0 / 0.5585 GB, free: 5.93 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.23e-06/0.3224, allocations: 0 / 0.5585 GB, free: 5.93 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.0.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.002064/0.3245, allocations: 0.7241 MB / 0.5592 GB, free: 5.211 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.13e-05/0.3245, allocations: 4 kB / 0.5592 GB, free: 5.207 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.075e-05/0.3245, allocations: 4 kB / 0.5592 GB, free: 5.203 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.685e-05/0.3246, allocations: 0 / 0.5592 GB, free: 5.203 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.47e-05/0.3246, allocations: 0 / 0.5592 GB, free: 5.203 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.799e-06/0.3246, allocations: 4 kB / 0.5592 GB, free: 5.199 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003158/0.3277, allocations: 2.456 MB / 0.5616 GB, free: 2.738 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.021e-05/0.3277, allocations: 0 / 0.5616 GB, free: 2.738 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.301e-05/0.3278, allocations: 4 kB / 0.5616 GB, free: 2.734 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004888/0.3283, allocations: 359.3 kB / 0.562 GB, free: 2.383 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.3283, allocations: 0 / 0.562 GB, free: 2.383 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.522e-06/0.3283, allocations: 0 / 0.562 GB, free: 2.383 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.819e-06/0.3283, allocations: 0 / 0.562 GB, free: 2.383 MB / 398.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.0004184/0.3287, allocations: 295.6 kB / 0.5623 GB, free: 2.059 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.714e-05/0.3287, allocations: 12.03 kB / 0.5623 GB, free: 2.047 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.774e-05/0.3288, allocations: 34.55 kB / 0.5623 GB, free: 2.004 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.468e-05/0.3288, allocations: 0 / 0.5623 GB, free: 2.004 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.499e-05/0.3289, allocations: 101.2 kB / 0.5624 GB, free: 1.879 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.489e-05/0.3289, allocations: 7.922 kB / 0.5624 GB, free: 1.871 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.766e-06/0.3289, allocations: 11.94 kB / 0.5624 GB, free: 1.859 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001027/0.329, allocations: 55.41 kB / 0.5625 GB, free: 1.793 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.329, allocations: 0 / 0.5625 GB, free: 1.793 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.167e-06/0.329, allocations: 4 kB / 0.5625 GB, free: 1.789 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.329, allocations: 0 / 0.5625 GB, free: 1.789 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.464e-05/0.3291, allocations: 29.64 kB / 0.5625 GB, free: 1.754 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001424/0.3292, allocations: 128.6 kB / 0.5626 GB, free: 1.586 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.303e-05/0.3293, allocations: 44.28 kB / 0.5627 GB, free: 1.527 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.49e-05/0.3293, allocations: 34.66 kB / 0.5627 GB, free: 1.484 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.935e-06/0.3293, allocations: 0 / 0.5627 GB, free: 1.484 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.771e-05/0.3294, allocations: 60.27 kB / 0.5628 GB, free: 1.41 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.61e-07/0.3294, allocations: 0 / 0.5628 GB, free: 1.41 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.000201/0.3296, allocations: 122.7 kB / 0.5629 GB, free: 1.266 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.174e-05/0.3296, allocations: 77.11 kB / 0.563 GB, free: 1.172 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.012e-05/0.3297, allocations: 93.81 kB / 0.563 GB, free: 1.07 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.59e-05/0.3297, allocations: 29.7 kB / 0.5631 GB, free: 1.035 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.696e-05/0.3297, allocations: 80.14 kB / 0.5631 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.645e-05/0.3298, allocations: 0 / 0.5631 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.173e-05/0.3298, allocations: 17.7 kB / 0.5632 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001393/0.3299, allocations: 310.8 kB / 0.5635 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.797e-05/0.3299, allocations: 37.83 kB / 0.5635 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.82e-05/0.33, allocations: 25.7 kB / 0.5635 GB, free: 0.543 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.775e-05/0.33, allocations: 60.27 kB / 0.5636 GB, free: 480 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.33, allocations: 3.938 kB / 0.5636 GB, free: 476 kB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.603e-05/0.3301, allocations: 93.03 kB / 0.5637 GB, free: 364 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.035e-05/0.3302, allocations: 37.7 kB / 0.5637 GB, free: 320 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.007e-06/0.3302, allocations: 0 / 0.5637 GB, free: 320 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.191e-05/0.3302, allocations: 0 / 0.5637 GB, free: 320 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.71e-07/0.3302, allocations: 0 / 0.5637 GB, free: 320 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.989e-06/0.3302, allocations: 4.094 kB / 0.5637 GB, free: 316 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.477e-05/0.3302, allocations: 0 / 0.5637 GB, free: 316 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.901e-06/0.3302, allocations: 0 / 0.5637 GB, free: 316 kB / 398.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.0001069/0.3303, allocations: 143.5 kB / 0.5639 GB, free: 156 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.474e-06/0.3303, allocations: 0 / 0.5639 GB, free: 156 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.077e-05/0.3303, allocations: 3 kB / 0.5639 GB, free: 152 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.3303, allocations: 4 kB / 0.5639 GB, free: 148 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.3303, allocations: 3.938 kB / 0.5639 GB, free: 144 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.014e-06/0.3303, allocations: 0 / 0.5639 GB, free: 144 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001097/0.3304, allocations: 116.7 kB / 0.564 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.3304, allocations: 0 / 0.564 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.314e-06/0.3304, allocations: 7.984 kB / 0.564 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.442e-06/0.3305, allocations: 4 kB / 0.564 GB, free: 15.97 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.173e-06/0.3305, allocations: 0 / 0.564 GB, free: 15.97 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.22e-07/0.3305, allocations: 0 / 0.564 GB, free: 15.97 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-07/0.3305, allocations: 0 / 0.564 GB, free: 15.97 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001262/0.3306, allocations: 128.4 kB / 0.5641 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.747e-06/0.3306, allocations: 0 / 0.5641 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.052e-05/0.3306, allocations: 0 / 0.5641 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.556e-06/0.3306, allocations: 7.938 kB / 0.5641 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.427e-05/0.3306, allocations: 0 / 0.5641 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.304e-06/0.3306, allocations: 4.031 kB / 0.5641 GB, free: 15.8 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.258e-05/0.3307, allocations: 75.28 kB / 0.5642 GB, free: 15.73 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3307, allocations: 0 / 0.5642 GB, free: 15.73 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003352/0.331, allocations: 55.73 kB / 0.5642 GB, free: 15.68 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.00193/0.3329, allocations: 1.123 MB / 0.5653 GB, free: 14.6 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001376/0.3331, allocations: 110.8 kB / 0.5654 GB, free: 14.46 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.3331, allocations: 3.938 kB / 0.5654 GB, free: 14.46 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.421e-05/0.3331, allocations: 81.11 kB / 0.5655 GB, free: 14.36 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001241/0.3333, allocations: 7.922 kB / 0.5655 GB, free: 14.36 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000412/0.3337, allocations: 160.2 kB / 0.5657 GB, free: 14.15 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.22e-05/0.3337, allocations: 55.36 kB / 0.5657 GB, free: 14.08 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.912e-06/0.3337, allocations: 0 / 0.5657 GB, free: 14.08 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.773e-05/0.3337, allocations: 11.56 kB / 0.5657 GB, free: 14.07 MB / 414.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3337, allocations: 0 / 0.5657 GB, free: 14.07 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02986/0.3636, allocations: 3.595 MB / 0.5693 GB, free: 10.59 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.3/11.66, allocations: 3.047 kB / 0.5693 GB, free: 10.59 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_TestColorMapToSvg_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_TestColorMapToSvg.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestColorMapToSvg/TestColorMapToSvg.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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.420067428145558]