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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001849/0.001849, allocations: 116.7 kB / 18.5 MB, free: 4.582 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002004/0.002004, allocations: 189.2 kB / 21.44 MB, free: 1.645 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.394/1.394, allocations: 225.6 MB / 249.8 MB, free: 3.605 MB / 190.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.2093/0.2093, allocations: 44.92 MB / 349.6 MB, free: 1.73 MB / 270.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.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001898/0.001898, allocations: 70.73 kB / 491.8 MB, free: 30.01 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.1148, allocations: 64.27 MB / 0.543 GB, free: 4.129 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001563/0.1164, allocations: 489 kB / 0.5435 GB, free: 3.645 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001945/0.1183, allocations: 1.167 MB / 0.5446 GB, free: 2.469 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.842e-05/0.1183, allocations: 0 / 0.5446 GB, free: 2.469 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.578e-05/0.1183, allocations: 0 / 0.5446 GB, free: 2.469 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.28e-06/0.1184, allocations: 0 / 0.5446 GB, free: 2.469 MB / 398.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.001865/0.1202, allocations: 0.6797 MB / 0.5453 GB, free: 1.793 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.458e-05/0.1203, allocations: 0 / 0.5453 GB, free: 1.793 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.673e-05/0.1203, allocations: 15.86 kB / 0.5453 GB, free: 1.777 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.691e-05/0.1203, allocations: 3.984 kB / 0.5453 GB, free: 1.773 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.433e-05/0.1203, allocations: 0 / 0.5453 GB, free: 1.773 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.869e-06/0.1203, allocations: 0 / 0.5453 GB, free: 1.773 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003024/0.1234, allocations: 2.456 MB / 0.5477 GB, free: 15.31 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.985e-06/0.1234, allocations: 0 / 0.5477 GB, free: 15.31 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.92e-05/0.1234, allocations: 0 / 0.5477 GB, free: 15.31 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004327/0.1238, allocations: 363.4 kB / 0.548 GB, free: 14.95 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.1238, allocations: 3.938 kB / 0.548 GB, free: 14.95 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.1238, allocations: 0 / 0.548 GB, free: 14.95 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.37e-06/0.1238, allocations: 0 / 0.548 GB, free: 14.95 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.000449/0.1243, allocations: 376.7 kB / 0.5484 GB, free: 14.53 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.65e-05/0.1243, allocations: 12.03 kB / 0.5484 GB, free: 14.52 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.384e-05/0.1244, allocations: 30.56 kB / 0.5484 GB, free: 14.48 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.141e-05/0.1244, allocations: 3.984 kB / 0.5484 GB, free: 14.47 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000168/0.1246, allocations: 159.1 kB / 0.5486 GB, free: 14.28 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.403e-05/0.1246, allocations: 3.938 kB / 0.5486 GB, free: 14.27 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.013e-06/0.1246, allocations: 0 / 0.5486 GB, free: 14.27 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.554e-05/0.1247, allocations: 29.7 kB / 0.5486 GB, free: 14.24 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.484e-06/0.1247, allocations: 0 / 0.5486 GB, free: 14.24 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.135e-06/0.1247, allocations: 0 / 0.5486 GB, free: 14.24 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.557e-06/0.1247, allocations: 4 kB / 0.5486 GB, free: 14.23 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.829e-05/0.1247, allocations: 3.938 kB / 0.5486 GB, free: 14.23 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002024/0.1249, allocations: 153.6 kB / 0.5488 GB, free: 14.03 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.686e-05/0.125, allocations: 18.58 kB / 0.5488 GB, free: 14 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.656e-05/0.125, allocations: 8.953 kB / 0.5488 GB, free: 13.99 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.235e-06/0.125, allocations: 0 / 0.5488 GB, free: 13.99 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.403e-05/0.125, allocations: 64.2 kB / 0.5489 GB, free: 13.91 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 8.41e-07/0.125, allocations: 0 / 0.5489 GB, free: 13.91 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001785/0.1252, allocations: 67.33 kB / 0.5489 GB, free: 13.84 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.332e-05/0.1253, allocations: 81.11 kB / 0.549 GB, free: 13.74 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.353e-05/0.1253, allocations: 89.86 kB / 0.5491 GB, free: 13.64 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.596e-05/0.1253, allocations: 25.7 kB / 0.5491 GB, free: 13.61 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.949e-05/0.1254, allocations: 84.14 kB / 0.5492 GB, free: 13.52 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.471e-05/0.1254, allocations: 0 / 0.5492 GB, free: 13.52 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.968e-05/0.1254, allocations: 13.84 kB / 0.5492 GB, free: 13.5 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001559/0.1256, allocations: 314.8 kB / 0.5495 GB, free: 13.19 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.017e-05/0.1256, allocations: 0 / 0.5495 GB, free: 13.19 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.011e-05/0.1256, allocations: 11.92 kB / 0.5495 GB, free: 13.18 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.834e-05/0.1257, allocations: 60.27 kB / 0.5496 GB, free: 13.1 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.01e-05/0.1257, allocations: 7.938 kB / 0.5496 GB, free: 13.09 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.95e-05/0.1257, allocations: 59.34 kB / 0.5496 GB, free: 13.02 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.823e-05/0.1258, allocations: 35.27 kB / 0.5497 GB, free: 12.98 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.251e-06/0.1258, allocations: 8.078 kB / 0.5497 GB, free: 12.98 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.266e-05/0.1258, allocations: 0 / 0.5497 GB, free: 12.98 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.62e-07/0.1258, allocations: 0 / 0.5497 GB, free: 12.98 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.001e-06/0.1258, allocations: 4 kB / 0.5497 GB, free: 12.97 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.71e-05/0.1258, allocations: 3.938 kB / 0.5497 GB, free: 12.97 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.462e-06/0.1258, allocations: 0 / 0.5497 GB, free: 12.97 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.0001023/0.1259, allocations: 139.5 kB / 0.5498 GB, free: 12.82 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.124e-05/0.1259, allocations: 7.953 kB / 0.5498 GB, free: 12.81 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.414e-06/0.126, allocations: 3.125 kB / 0.5498 GB, free: 12.81 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-06/0.126, allocations: 4 kB / 0.5498 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.126, allocations: 4 kB / 0.5498 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.505e-06/0.126, allocations: 0 / 0.5498 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001169/0.1261, allocations: 149.6 kB / 0.55 GB, free: 12.61 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-07/0.1261, allocations: 0 / 0.55 GB, free: 12.61 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.91e-07/0.1261, allocations: 0 / 0.55 GB, free: 12.61 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.71e-07/0.1261, allocations: 0 / 0.55 GB, free: 12.61 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.317e-06/0.1261, allocations: 4 kB / 0.55 GB, free: 12.6 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.32e-07/0.1261, allocations: 0 / 0.55 GB, free: 12.6 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.1261, allocations: 0 / 0.55 GB, free: 12.6 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001044/0.1262, allocations: 98.7 kB / 0.5501 GB, free: 12.48 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.824e-05/0.1262, allocations: 85.05 kB / 0.5502 GB, free: 12.38 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.143e-05/0.1263, allocations: 0 / 0.5502 GB, free: 12.38 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.366e-06/0.1263, allocations: 0 / 0.5502 GB, free: 12.38 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.282e-05/0.1263, allocations: 3.984 kB / 0.5502 GB, free: 12.38 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.228e-06/0.1263, allocations: 3.984 kB / 0.5502 GB, free: 12.37 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.153e-05/0.1263, allocations: 79.28 kB / 0.5502 GB, free: 12.29 MB / 414.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1263, allocations: 0 / 0.5502 GB, free: 12.29 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003297/0.1266, allocations: 51.84 kB / 0.5503 GB, free: 12.24 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.001874/0.1285, allocations: 1.074 MB / 0.5513 GB, free: 11.2 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000114/0.1286, allocations: 55.41 kB / 0.5514 GB, free: 11.14 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.1286, allocations: 0 / 0.5514 GB, free: 11.14 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.903e-05/0.1287, allocations: 59.39 kB / 0.5515 GB, free: 11.07 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001187/0.1288, allocations: 6.656 kB / 0.5515 GB, free: 11.06 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003465/0.1291, allocations: 130.5 kB / 0.5516 GB, free: 10.89 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003265/0.1295, allocations: 0.6766 MB / 0.5522 GB, free: 10.19 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.841e-06/0.1295, allocations: 0 / 0.5522 GB, free: 10.19 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.595e-05/0.1295, allocations: 11.44 kB / 0.5523 GB, free: 10.18 MB / 414.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1295, allocations: 0 / 0.5523 GB, free: 10.18 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02464/0.1541, allocations: 3.067 MB / 0.5553 GB, free: 7.184 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.156/8.31, allocations: 5.656 kB / 0.5553 GB, free: 7.18 MB / 414.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 & /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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestColorMapToSvg/TestColorMapToSvg.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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.094074086751789]