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.0008527/0.0008527, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.0008217/0.0008217, allocations: 170.3 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.9533/0.9533, allocations: 177.1 MB / 204.3 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] 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.2686/0.2686, allocations: 34.25 MB / 294.9 MB, free: 0.7109 MB / 266.7 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 2.054e-06/2.054e-06, allocations: 0 / 442.1 MB, free: 1.684 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.103e-05/2.308e-05, allocations: 2.844 kB / 442.1 MB, free: 1.68 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001665/0.001688, allocations: 0.4952 MB / 442.6 MB, free: 1.188 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001886/0.003573, allocations: 1.112 MB / 443.8 MB, free: 68 kB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.987e-05/0.003593, allocations: 0 / 443.8 MB, free: 68 kB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.618e-05/0.003609, allocations: 0 / 443.8 MB, free: 68 kB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 6.883e-06/0.003616, allocations: 8 kB / 443.8 MB, free: 60 kB / 410.7 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.1902/0.1938, allocations: 0.7368 MB / 444.5 MB, free: 43.16 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 5.691e-05/0.1939, allocations: 3 kB / 444.5 MB, free: 43.16 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.815e-05/0.1939, allocations: 0.7812 kB / 444.5 MB, free: 43.16 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.934e-05/0.194, allocations: 3.062 kB / 444.5 MB, free: 43.16 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.887e-05/0.194, allocations: 0.625 kB / 444.5 MB, free: 43.16 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 7.604e-06/0.194, allocations: 3 kB / 444.5 MB, free: 43.16 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001753/0.1957, allocations: 2.465 MB / 447 MB, free: 42.94 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.071e-05/0.1957, allocations: 4.844 kB / 447 MB, free: 42.94 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.225e-05/0.1958, allocations: 2.75 kB / 447 MB, free: 42.94 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003553/0.1961, allocations: 374.8 kB / 447.3 MB, free: 42.93 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.1961, allocations: 0 / 447.3 MB, free: 42.93 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.1961, allocations: 2.906 kB / 447.4 MB, free: 42.93 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.17e-06/0.1961, allocations: 0 / 447.4 MB, free: 42.93 MB / 410.7 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.0003143/0.1965, allocations: 299.2 kB / 447.6 MB, free: 42.63 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.153e-05/0.1965, allocations: 8.531 kB / 447.7 MB, free: 42.63 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.033e-05/0.1965, allocations: 36.8 kB / 447.7 MB, free: 42.59 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.81e-05/0.1965, allocations: 4 kB / 447.7 MB, free: 42.59 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.265e-05/0.1966, allocations: 107.8 kB / 447.8 MB, free: 42.46 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.848e-06/0.1966, allocations: 0 / 447.8 MB, free: 42.46 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.865e-06/0.1966, allocations: 0 / 447.8 MB, free: 42.46 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.874e-05/0.1967, allocations: 61.47 kB / 447.9 MB, free: 42.39 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.392e-06/0.1967, allocations: 0 / 447.9 MB, free: 42.39 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.025e-06/0.1967, allocations: 4.281 kB / 447.9 MB, free: 42.39 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.979e-06/0.1967, allocations: 0 / 447.9 MB, free: 42.39 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.835e-05/0.1967, allocations: 31.89 kB / 447.9 MB, free: 42.36 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.229e-05/0.1968, allocations: 115.7 kB / 448 MB, free: 42.21 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.489e-05/0.1968, allocations: 50 kB / 448.1 MB, free: 42.15 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.301e-05/0.1968, allocations: 33.75 kB / 448.1 MB, free: 42.11 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.51e-06/0.1968, allocations: 2.656 kB / 448.1 MB, free: 42.11 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.264e-05/0.1969, allocations: 60.2 kB / 448.1 MB, free: 42.04 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 9.02e-07/0.1969, allocations: 0 / 448.1 MB, free: 42.04 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001486/0.197, allocations: 120.5 kB / 448.3 MB, free: 41.91 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.495e-05/0.197, allocations: 79.98 kB / 448.3 MB, free: 41.82 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.53e-05/0.1971, allocations: 93.12 kB / 448.4 MB, free: 41.72 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.388e-06/0.1971, allocations: 25.7 kB / 448.5 MB, free: 41.69 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.05e-06/0.1971, allocations: 80.14 kB / 448.5 MB, free: 41.61 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.577e-05/0.1971, allocations: 4.125 kB / 448.5 MB, free: 41.61 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.099e-05/0.1971, allocations: 16.09 kB / 448.6 MB, free: 41.59 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.87e-05/0.1971, allocations: 319.2 kB / 448.9 MB, free: 41.28 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.228e-05/0.1971, allocations: 25.7 kB / 448.9 MB, free: 41.25 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.144e-06/0.1972, allocations: 31.67 kB / 448.9 MB, free: 41.21 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.548e-05/0.1972, allocations: 62.7 kB / 449 MB, free: 41.14 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.1972, allocations: 0 / 449 MB, free: 41.14 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.546e-05/0.1972, allocations: 85.98 kB / 449.1 MB, free: 41.05 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.728e-05/0.1972, allocations: 35.48 kB / 449.1 MB, free: 41.02 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.098e-06/0.1972, allocations: 4.094 kB / 449.1 MB, free: 41.01 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.152e-05/0.1973, allocations: 0 / 449.1 MB, free: 41.01 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.81e-07/0.1973, allocations: 6.062 kB / 449.1 MB, free: 41.01 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.571e-06/0.1973, allocations: 0 / 449.1 MB, free: 41.01 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.457e-05/0.1973, allocations: 0 / 449.1 MB, free: 41.01 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.713e-06/0.1973, allocations: 0 / 449.1 MB, free: 41.01 MB / 410.7 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 4.007e-05/0.1973, allocations: 144.9 kB / 449.3 MB, free: 40.87 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.528e-06/0.1973, allocations: 2.375 kB / 449.3 MB, free: 40.87 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.191e-05/0.1973, allocations: 7.594 kB / 449.3 MB, free: 40.86 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.1973, allocations: 0 / 449.3 MB, free: 40.86 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.1973, allocations: 4 kB / 449.3 MB, free: 40.86 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.094e-06/0.1974, allocations: 0 / 449.3 MB, free: 40.86 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.519e-05/0.1974, allocations: 120.1 kB / 449.4 MB, free: 40.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-06/0.1974, allocations: 1.062 kB / 449.4 MB, free: 40.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.11e-07/0.1974, allocations: 0 / 449.4 MB, free: 40.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.072e-06/0.1974, allocations: 2.469 kB / 449.4 MB, free: 40.7 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.891e-06/0.1974, allocations: 3.938 kB / 449.4 MB, free: 40.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.11e-07/0.1974, allocations: 0 / 449.4 MB, free: 40.7 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.1974, allocations: 4.5 kB / 449.4 MB, free: 40.7 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.382e-05/0.1975, allocations: 118.5 kB / 449.5 MB, free: 40.57 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.338e-06/0.1975, allocations: 2.781 kB / 449.5 MB, free: 40.57 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.118e-05/0.1975, allocations: 14.39 kB / 449.5 MB, free: 40.57 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.653e-06/0.1975, allocations: 1.5 kB / 449.5 MB, free: 40.57 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.074e-05/0.1975, allocations: 2.938 kB / 449.5 MB, free: 40.57 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.654e-06/0.1975, allocations: 0 / 449.5 MB, free: 40.57 MB / 410.7 MB Notification: Performance of sorting global known variables: time 8.727e-06/0.1975, allocations: 78.09 kB / 449.6 MB, free: 40.49 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1975, allocations: 0 / 449.6 MB, free: 40.49 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002451/0.1977, allocations: 56.41 kB / 449.7 MB, free: 40.48 MB / 410.7 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.001036/0.1988, allocations: 1.114 MB / 450.8 MB, free: 39.7 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 8.85e-05/0.1989, allocations: 113.8 kB / 450.9 MB, free: 39.57 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.1989, allocations: 0 / 450.9 MB, free: 39.57 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.218e-05/0.1989, allocations: 82.86 kB / 451 MB, free: 39.48 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.072e-05/0.199, allocations: 3.188 kB / 451 MB, free: 39.48 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00026/0.1992, allocations: 169.1 kB / 451.1 MB, free: 39.3 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.562e-05/0.1993, allocations: 57.5 kB / 451.2 MB, free: 39.23 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 4.548e-06/0.1993, allocations: 0 / 451.2 MB, free: 39.23 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.382e-05/0.1993, allocations: 11.28 kB / 451.2 MB, free: 39.22 MB / 410.7 MB Notification: Performance of SimCode: time 8.11e-07/0.1993, allocations: 0 / 451.2 MB, free: 39.22 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01936/0.2186, allocations: 3.761 MB / 455 MB, free: 38.07 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.866/7.085, allocations: 5.312 kB / 455 MB, free: 38.07 MB / 410.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/TestColorMapToSvg/TestColorMapToSvg.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Failed to open simulation result ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg_res.csv: Error: Error opening file: ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg_res.csv " [Timeout remaining time 660] "" Variables in the reference:time,result Variables in the result: [Calling sys.exit(0), Time elapsed: 9.204168847762048]