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.001286/0.001286, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.001367/0.001367, allocations: 203.3 kB / 20.74 MB, free: 2.316 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.427/1.427, allocations: 230.6 MB / 254.1 MB, free: 15.1 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.2126/0.2126, allocations: 44.91 MB / 355.1 MB, free: 12.34 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.002059/0.002059, allocations: 67.89 kB / 499.6 MB, free: 11.74 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1198/0.1218, allocations: 65.41 MB / 0.5517 GB, free: 10.19 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.00164/0.1235, allocations: 0.4946 MB / 0.5522 GB, free: 9.699 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.00198/0.1255, allocations: 1.161 MB / 0.5533 GB, free: 8.531 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.843e-05/0.1255, allocations: 0 / 0.5533 GB, free: 8.531 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.136e-05/0.1255, allocations: 3.938 kB / 0.5533 GB, free: 8.527 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.891e-06/0.1255, allocations: 7.938 kB / 0.5534 GB, free: 8.52 MB / 414.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.001859/0.1274, allocations: 0.6777 MB / 0.554 GB, free: 7.848 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 4.721e-05/0.1274, allocations: 0 / 0.554 GB, free: 7.848 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.485e-05/0.1274, allocations: 0 / 0.554 GB, free: 7.848 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.399e-05/0.1275, allocations: 0 / 0.554 GB, free: 7.848 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.608e-05/0.1275, allocations: 4 kB / 0.554 GB, free: 7.844 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 4.999e-06/0.1275, allocations: 0 / 0.554 GB, free: 7.844 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003023/0.1305, allocations: 2.453 MB / 0.5564 GB, free: 5.387 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.859e-06/0.1305, allocations: 4 kB / 0.5564 GB, free: 5.383 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.26e-05/0.1305, allocations: 0 / 0.5564 GB, free: 5.383 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004418/0.131, allocations: 359.3 kB / 0.5568 GB, free: 5.031 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.131, allocations: 0 / 0.5568 GB, free: 5.031 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.131, allocations: 0 / 0.5568 GB, free: 5.031 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.771e-06/0.131, allocations: 4 kB / 0.5568 GB, free: 5.027 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.0005448/0.1315, allocations: 380.7 kB / 0.5571 GB, free: 4.602 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.964e-05/0.1316, allocations: 8.031 kB / 0.5571 GB, free: 4.594 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.612e-05/0.1316, allocations: 30.56 kB / 0.5572 GB, free: 4.555 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.905e-05/0.1317, allocations: 0 / 0.5572 GB, free: 4.555 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001146/0.1318, allocations: 159.1 kB / 0.5573 GB, free: 4.359 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.611e-05/0.1318, allocations: 7.938 kB / 0.5573 GB, free: 4.352 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.462e-06/0.1318, allocations: 0 / 0.5573 GB, free: 4.352 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.299e-05/0.1319, allocations: 41.62 kB / 0.5574 GB, free: 4.305 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.562e-05/0.1319, allocations: 4 kB / 0.5574 GB, free: 4.301 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.133e-06/0.1319, allocations: 4 kB / 0.5574 GB, free: 4.297 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.897e-06/0.1319, allocations: 0 / 0.5574 GB, free: 4.297 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.565e-05/0.1319, allocations: 0 / 0.5574 GB, free: 4.297 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001483/0.1321, allocations: 149.6 kB / 0.5575 GB, free: 4.102 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.738e-05/0.1321, allocations: 22.59 kB / 0.5575 GB, free: 4.07 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.525e-05/0.1321, allocations: 4.859 kB / 0.5575 GB, free: 4.062 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.278e-06/0.1321, allocations: 7.938 kB / 0.5575 GB, free: 4.055 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001021/0.1322, allocations: 64.25 kB / 0.5576 GB, free: 3.977 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 8.81e-07/0.1323, allocations: 4.062 kB / 0.5576 GB, free: 3.973 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001745/0.1324, allocations: 55.41 kB / 0.5577 GB, free: 3.906 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.53e-05/0.1325, allocations: 81.11 kB / 0.5577 GB, free: 3.809 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.54e-05/0.1325, allocations: 93.81 kB / 0.5578 GB, free: 3.707 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.69e-05/0.1326, allocations: 25.7 kB / 0.5579 GB, free: 3.676 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.463e-05/0.1326, allocations: 88.2 kB / 0.5579 GB, free: 3.586 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.226e-05/0.1326, allocations: 11.98 kB / 0.558 GB, free: 3.574 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.223e-05/0.1326, allocations: 17.7 kB / 0.558 GB, free: 3.551 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001378/0.1328, allocations: 310.8 kB / 0.5583 GB, free: 3.238 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.278e-06/0.1328, allocations: 0 / 0.5583 GB, free: 3.238 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.434e-06/0.1328, allocations: 3.938 kB / 0.5583 GB, free: 3.234 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.102e-05/0.1328, allocations: 60.27 kB / 0.5583 GB, free: 3.16 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.748e-06/0.1329, allocations: 3.938 kB / 0.5583 GB, free: 3.156 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.023e-05/0.1329, allocations: 71.45 kB / 0.5584 GB, free: 3.074 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.248e-05/0.133, allocations: 29.7 kB / 0.5584 GB, free: 3.039 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.988e-06/0.133, allocations: 0 / 0.5584 GB, free: 3.039 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.655e-05/0.133, allocations: 0 / 0.5584 GB, free: 3.039 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.775e-06/0.133, allocations: 4 kB / 0.5584 GB, free: 3.035 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.938e-06/0.133, allocations: 0 / 0.5584 GB, free: 3.035 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.08e-05/0.133, allocations: 3.938 kB / 0.5584 GB, free: 3.031 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.29e-06/0.133, allocations: 0 / 0.5584 GB, free: 3.031 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 9.555e-05/0.1331, allocations: 141.7 kB / 0.5586 GB, free: 2.879 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.067e-05/0.1331, allocations: 8.016 kB / 0.5586 GB, free: 2.871 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.077e-05/0.1331, allocations: 7.062 kB / 0.5586 GB, free: 2.863 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.352e-06/0.1331, allocations: 0 / 0.5586 GB, free: 2.863 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.1331, allocations: 0 / 0.5586 GB, free: 2.863 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.804e-06/0.1331, allocations: 0 / 0.5586 GB, free: 2.863 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001043/0.1332, allocations: 153.6 kB / 0.5587 GB, free: 2.664 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.32e-07/0.1332, allocations: 0 / 0.5587 GB, free: 2.664 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.81e-07/0.1332, allocations: 0 / 0.5587 GB, free: 2.664 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.1332, allocations: 3.984 kB / 0.5587 GB, free: 2.66 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.711e-06/0.1332, allocations: 3.938 kB / 0.5587 GB, free: 2.656 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.52e-07/0.1332, allocations: 0 / 0.5587 GB, free: 2.656 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.1332, allocations: 4 kB / 0.5587 GB, free: 2.652 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.731e-05/0.1333, allocations: 90.78 kB / 0.5588 GB, free: 2.539 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.967e-05/0.1334, allocations: 81.09 kB / 0.5589 GB, free: 2.441 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.017e-05/0.1334, allocations: 0 / 0.5589 GB, free: 2.441 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.231e-05/0.1334, allocations: 8 kB / 0.5589 GB, free: 2.434 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.807e-06/0.1334, allocations: 0 / 0.5589 GB, free: 2.434 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.405e-06/0.1334, allocations: 0 / 0.5589 GB, free: 2.434 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.068e-05/0.1334, allocations: 79.31 kB / 0.559 GB, free: 2.355 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1334, allocations: 0 / 0.559 GB, free: 2.355 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003466/0.1338, allocations: 55.73 kB / 0.559 GB, free: 2.301 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.001826/0.1356, allocations: 1.065 MB / 0.5601 GB, free: 1.27 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 9.764e-05/0.1357, allocations: 59.39 kB / 0.5601 GB, free: 1.199 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.1357, allocations: 0 / 0.5601 GB, free: 1.199 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.424e-05/0.1358, allocations: 59.34 kB / 0.5602 GB, free: 1.129 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001265/0.1359, allocations: 4.125 kB / 0.5602 GB, free: 1.125 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003848/0.1363, allocations: 134.5 kB / 0.5603 GB, free: 0.9531 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002991/0.1366, allocations: 0.6768 MB / 0.561 GB, free: 256 kB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.272e-06/0.1366, allocations: 0 / 0.561 GB, free: 256 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.532e-05/0.1366, allocations: 7.438 kB / 0.561 GB, free: 248 kB / 414.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1366, allocations: 0 / 0.561 GB, free: 248 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02469/0.1613, allocations: 3.058 MB / 0.564 GB, free: 13.25 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.082/8.244, allocations: 18.25 kB / 0.564 GB, free: 13.23 MB / 430.1 MB " [Timeout remaining time 652] (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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.138969479128718]