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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001102/0.001102, allocations: 104.1 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00114/0.00114, allocations: 192 kB / 18.56 MB, free: 4.562 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.418/1.418, allocations: 222.9 MB / 242.3 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2111/0.2111, allocations: 44.19 MB / 336.6 MB, free: 2.73 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001885/0.001885, allocations: 56.16 kB / 408.5 MB, free: 27.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.1144, allocations: 60.82 MB / 469.3 MB, free: 14.26 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001695/0.1161, allocations: 491.7 kB / 469.8 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001927/0.1181, allocations: 1.157 MB / 471 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.637e-05/0.1181, allocations: 0 / 471 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.679e-06/0.1181, allocations: 0 / 471 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.338e-06/0.1181, allocations: 0 / 471 MB, free: 12.61 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.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.001822/0.12, allocations: 0.6711 MB / 471.7 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.09e-05/0.12, allocations: 12 kB / 471.7 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.943e-05/0.1201, allocations: 3.984 kB / 471.7 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.591e-05/0.1201, allocations: 0 / 471.7 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.674e-05/0.1201, allocations: 7.938 kB / 471.7 MB, free: 11.92 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.11e-06/0.1201, allocations: 0 / 471.7 MB, free: 11.92 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003175/0.1233, allocations: 2.445 MB / 474.1 MB, free: 9.473 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.092e-05/0.1233, allocations: 4 kB / 474.1 MB, free: 9.469 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.829e-05/0.1234, allocations: 4 kB / 474.1 MB, free: 9.465 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007261/0.1241, allocations: 351.6 kB / 474.5 MB, free: 9.121 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.576e-06/0.1241, allocations: 0 / 474.5 MB, free: 9.121 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.1241, allocations: 0 / 474.5 MB, free: 9.121 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.212e-05/0.1242, allocations: 0 / 474.5 MB, free: 9.121 MB / 350.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.0005746/0.1247, allocations: 383.9 kB / 474.9 MB, free: 8.695 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.812e-05/0.1248, allocations: 12.03 kB / 474.9 MB, free: 8.684 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.727e-05/0.1248, allocations: 34.5 kB / 474.9 MB, free: 8.641 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.778e-05/0.1249, allocations: 0 / 474.9 MB, free: 8.641 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001147/0.125, allocations: 163.1 kB / 475.1 MB, free: 8.441 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.505e-05/0.125, allocations: 3.938 kB / 475.1 MB, free: 8.438 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.185e-05/0.125, allocations: 4 kB / 475.1 MB, free: 8.434 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.374e-05/0.1251, allocations: 33.69 kB / 475.1 MB, free: 8.395 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.783e-06/0.1251, allocations: 0 / 475.1 MB, free: 8.395 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.326e-06/0.1252, allocations: 0 / 475.1 MB, free: 8.395 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.642e-06/0.1252, allocations: 0 / 475.1 MB, free: 8.395 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.687e-05/0.1252, allocations: 8 kB / 475.1 MB, free: 8.387 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001435/0.1254, allocations: 145.6 kB / 475.2 MB, free: 8.195 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.635e-05/0.1254, allocations: 26.55 kB / 475.3 MB, free: 8.16 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.373e-05/0.1254, allocations: 4.859 kB / 475.3 MB, free: 8.152 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.814e-06/0.1254, allocations: 0 / 475.3 MB, free: 8.152 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.04e-05/0.1255, allocations: 60.25 kB / 475.3 MB, free: 8.078 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.12e-07/0.1255, allocations: 0 / 475.3 MB, free: 8.078 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001907/0.1257, allocations: 67.45 kB / 475.4 MB, free: 8 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.563e-05/0.1258, allocations: 89.11 kB / 475.5 MB, free: 7.895 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.428e-05/0.1259, allocations: 89.86 kB / 475.6 MB, free: 7.797 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.712e-05/0.1259, allocations: 29.7 kB / 475.6 MB, free: 7.762 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.913e-05/0.126, allocations: 84.08 kB / 475.7 MB, free: 7.676 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.937e-05/0.126, allocations: 0 / 475.7 MB, free: 7.676 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.542e-05/0.126, allocations: 17.7 kB / 475.7 MB, free: 7.652 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001394/0.1262, allocations: 314.8 kB / 476 MB, free: 7.336 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.227e-05/0.1262, allocations: 0 / 476 MB, free: 7.336 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.044e-05/0.1262, allocations: 8 kB / 476 MB, free: 7.328 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.358e-05/0.1263, allocations: 60.27 kB / 476.1 MB, free: 7.254 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.1263, allocations: 3.938 kB / 476.1 MB, free: 7.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.32e-05/0.1264, allocations: 71.33 kB / 476.2 MB, free: 7.168 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.72e-05/0.1264, allocations: 29.7 kB / 476.2 MB, free: 7.133 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.1264, allocations: 0 / 476.2 MB, free: 7.133 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.411e-05/0.1265, allocations: 0 / 476.2 MB, free: 7.133 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.262e-06/0.1265, allocations: 0 / 476.2 MB, free: 7.133 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.472e-06/0.1265, allocations: 0 / 476.2 MB, free: 7.133 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.125e-05/0.1265, allocations: 8.094 kB / 476.2 MB, free: 7.125 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.554e-06/0.1265, allocations: 0 / 476.2 MB, free: 7.125 MB / 350.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 9.914e-05/0.1266, allocations: 135.5 kB / 476.3 MB, free: 6.977 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.207e-05/0.1266, allocations: 4 kB / 476.3 MB, free: 6.973 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.355e-05/0.1267, allocations: 11.06 kB / 476.3 MB, free: 6.965 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.1267, allocations: 0 / 476.3 MB, free: 6.965 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.1267, allocations: 0 / 476.3 MB, free: 6.965 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.1267, allocations: 0 / 476.3 MB, free: 6.965 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001154/0.1268, allocations: 149.6 kB / 476.5 MB, free: 6.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.1268, allocations: 0 / 476.5 MB, free: 6.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.51e-07/0.1268, allocations: 8 kB / 476.5 MB, free: 6.762 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.1268, allocations: 0 / 476.5 MB, free: 6.762 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.749e-06/0.1268, allocations: 3.984 kB / 476.5 MB, free: 6.758 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.1268, allocations: 0 / 476.5 MB, free: 6.758 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.1268, allocations: 0 / 476.5 MB, free: 6.758 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001088/0.127, allocations: 98.62 kB / 476.6 MB, free: 6.637 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.03e-05/0.127, allocations: 85.09 kB / 476.7 MB, free: 6.535 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.538e-05/0.1271, allocations: 4.031 kB / 476.7 MB, free: 6.531 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.137e-05/0.1271, allocations: 0 / 476.7 MB, free: 6.531 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.182e-05/0.1271, allocations: 4 kB / 476.7 MB, free: 6.527 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.646e-06/0.1271, allocations: 0 / 476.7 MB, free: 6.527 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.43e-05/0.1271, allocations: 75.28 kB / 476.8 MB, free: 6.453 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1271, allocations: 3.938 kB / 476.8 MB, free: 6.449 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004303/0.1276, allocations: 55.92 kB / 476.8 MB, free: 6.395 MB / 350.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.002167/0.1298, allocations: 1.059 MB / 477.9 MB, free: 5.379 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001131/0.1299, allocations: 71.33 kB / 477.9 MB, free: 5.297 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.1299, allocations: 0 / 477.9 MB, free: 5.297 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.333e-05/0.1299, allocations: 55.41 kB / 478 MB, free: 5.23 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000131/0.1301, allocations: 7.938 kB / 478 MB, free: 5.223 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004038/0.1305, allocations: 138.5 kB / 478.1 MB, free: 5.047 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002753/0.1308, allocations: 0.6768 MB / 478.8 MB, free: 4.344 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.843e-06/0.1308, allocations: 0 / 478.8 MB, free: 4.344 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.51e-05/0.1308, allocations: 7.438 kB / 478.8 MB, free: 4.34 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1308, allocations: 4.125 kB / 478.8 MB, free: 4.336 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01974/0.1506, allocations: 2.998 MB / 481.8 MB, free: 1.375 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.571/7.722, allocations: 23.88 kB / 481.8 MB, free: 1.359 MB / 350.1 MB (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.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_0_0_ModelicaTest_Math_TestColorMapToSvg.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg_res.csv","/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) Reference file matches