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.001045/0.001045, allocations: 79.69 kB / 20.67 MB, free: 3.891 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.0008474/0.0008474, allocations: 170 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.9207/0.9207, allocations: 177.1 MB / 204.3 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] 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.2378/0.2378, allocations: 32.8 MB / 293.5 MB, free: 1.219 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.864e-06/1.864e-06, allocations: 3.938 kB / 439.6 MB, free: 4.289 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.32e-05/1.506e-05, allocations: 5.094 kB / 439.6 MB, free: 4.285 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.0009719/0.0009869, allocations: 0.4893 MB / 440.1 MB, free: 3.797 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001275/0.002262, allocations: 1.112 MB / 441.2 MB, free: 2.676 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.704e-05/0.002279, allocations: 0 / 441.2 MB, free: 2.676 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.447e-05/0.002294, allocations: 4 kB / 441.2 MB, free: 2.672 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 6.241e-06/0.0023, allocations: 0 / 441.2 MB, free: 2.672 MB / 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.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.001463/0.003763, allocations: 0.7424 MB / 441.9 MB, free: 1.938 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 4.885e-05/0.003812, allocations: 7.984 kB / 441.9 MB, free: 1.93 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.242e-05/0.003845, allocations: 0 / 441.9 MB, free: 1.93 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.561e-05/0.00387, allocations: 4 kB / 441.9 MB, free: 1.926 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.699e-05/0.003887, allocations: 0 / 441.9 MB, free: 1.926 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 6.472e-06/0.003894, allocations: 0 / 441.9 MB, free: 1.926 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.16/0.1639, allocations: 2.454 MB / 444.4 MB, free: 44.66 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.012e-05/0.1639, allocations: 0 / 444.4 MB, free: 44.66 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.402e-05/0.1639, allocations: 8.469 kB / 444.4 MB, free: 44.66 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003303/0.1643, allocations: 376.9 kB / 444.8 MB, free: 44.66 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.1643, allocations: 2.062 kB / 444.8 MB, free: 44.66 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.372e-06/0.1643, allocations: 0 / 444.8 MB, free: 44.66 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.698e-06/0.1643, allocations: 0 / 444.8 MB, free: 44.66 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.0002616/0.1645, allocations: 299.8 kB / 445.1 MB, free: 44.38 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.889e-05/0.1646, allocations: 12.62 kB / 445.1 MB, free: 44.38 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.814e-05/0.1646, allocations: 31.56 kB / 445.1 MB, free: 44.34 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.658e-05/0.1646, allocations: 0 / 445.1 MB, free: 44.34 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 3.729e-05/0.1647, allocations: 108 kB / 445.2 MB, free: 44.21 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.061e-05/0.1647, allocations: 2.969 kB / 445.2 MB, free: 44.21 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.813e-06/0.1647, allocations: 3.219 kB / 445.2 MB, free: 44.21 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.129e-05/0.1647, allocations: 56.25 kB / 445.3 MB, free: 44.15 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.352e-06/0.1647, allocations: 0 / 445.3 MB, free: 44.15 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.913e-06/0.1648, allocations: 0 / 445.3 MB, free: 44.15 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.1648, allocations: 5.781 kB / 445.3 MB, free: 44.15 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.633e-05/0.1648, allocations: 27.77 kB / 445.3 MB, free: 44.12 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.462e-05/0.1648, allocations: 121.6 kB / 445.4 MB, free: 43.97 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.044e-05/0.1649, allocations: 45.91 kB / 445.5 MB, free: 43.91 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.188e-05/0.1649, allocations: 38.12 kB / 445.5 MB, free: 43.88 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.33e-06/0.1649, allocations: 0 / 445.5 MB, free: 43.88 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.011e-05/0.1649, allocations: 64.42 kB / 445.6 MB, free: 43.8 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 5.21e-07/0.1649, allocations: 5.156 kB / 445.6 MB, free: 43.8 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001284/0.165, allocations: 114.5 kB / 445.7 MB, free: 43.68 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.203e-05/0.1651, allocations: 84.25 kB / 445.8 MB, free: 43.58 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.062e-05/0.1651, allocations: 93.12 kB / 445.8 MB, free: 43.48 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.466e-06/0.1651, allocations: 25.7 kB / 445.9 MB, free: 43.45 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.711e-06/0.1651, allocations: 81.55 kB / 446 MB, free: 43.37 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.49e-05/0.1651, allocations: 1.312 kB / 446 MB, free: 43.37 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.01e-05/0.1651, allocations: 13.44 kB / 446 MB, free: 43.36 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.638e-05/0.1651, allocations: 311.5 kB / 446.3 MB, free: 43.04 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.25e-05/0.1652, allocations: 33.05 kB / 446.3 MB, free: 43.01 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.973e-06/0.1652, allocations: 32.14 kB / 446.3 MB, free: 42.98 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.41e-05/0.1652, allocations: 71.08 kB / 446.4 MB, free: 42.91 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.442e-06/0.1652, allocations: 0 / 446.4 MB, free: 42.91 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 2.782e-05/0.1652, allocations: 84.45 kB / 446.5 MB, free: 42.82 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.9e-05/0.1652, allocations: 35.45 kB / 446.5 MB, free: 42.79 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.1652, allocations: 3.938 kB / 446.5 MB, free: 42.78 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.959e-06/0.1652, allocations: 0 / 446.5 MB, free: 42.78 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.11e-07/0.1652, allocations: 0 / 446.5 MB, free: 42.78 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.737e-06/0.1653, allocations: 2.906 kB / 446.5 MB, free: 42.78 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.129e-05/0.1653, allocations: 3.406 kB / 446.5 MB, free: 42.78 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.98e-06/0.1653, allocations: 0 / 446.5 MB, free: 42.78 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.25e-05/0.1653, allocations: 140.8 kB / 446.7 MB, free: 42.64 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.317e-06/0.1653, allocations: 0 / 446.7 MB, free: 42.64 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.035e-06/0.1653, allocations: 12.67 kB / 446.7 MB, free: 42.63 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.92e-07/0.1653, allocations: 0 / 446.7 MB, free: 42.63 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.1653, allocations: 0 / 446.7 MB, free: 42.63 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.963e-06/0.1653, allocations: 0 / 446.7 MB, free: 42.63 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 2.974e-05/0.1654, allocations: 117 kB / 446.8 MB, free: 42.48 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.81e-07/0.1654, allocations: 4.219 kB / 446.8 MB, free: 42.47 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.71e-07/0.1654, allocations: 0 / 446.8 MB, free: 42.47 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.62e-07/0.1654, allocations: 3.328 kB / 446.8 MB, free: 42.47 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.66e-06/0.1654, allocations: 10.17 kB / 446.8 MB, free: 42.47 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.51e-07/0.1654, allocations: 3.203 kB / 446.8 MB, free: 42.47 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.1654, allocations: 0 / 446.8 MB, free: 42.47 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.159e-05/0.1654, allocations: 118.2 kB / 446.9 MB, free: 42.34 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.196e-06/0.1654, allocations: 2.719 kB / 446.9 MB, free: 42.34 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.876e-06/0.1654, allocations: 6.5 kB / 446.9 MB, free: 42.34 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.499e-06/0.1654, allocations: 0 / 446.9 MB, free: 42.34 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.126e-05/0.1654, allocations: 3.5 kB / 446.9 MB, free: 42.34 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.773e-06/0.1654, allocations: 9.547 kB / 447 MB, free: 42.34 MB / 410.7 MB Notification: Performance of sorting global known variables: time 7.434e-06/0.1654, allocations: 78.09 kB / 447 MB, free: 42.26 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1654, allocations: 0 / 447 MB, free: 42.26 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001914/0.1656, allocations: 55.28 kB / 447.1 MB, free: 42.25 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.0009294/0.1666, allocations: 1.112 MB / 448.2 MB, free: 41.48 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 6.683e-05/0.1666, allocations: 116.9 kB / 448.3 MB, free: 41.35 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.363e-06/0.1666, allocations: 0 / 448.3 MB, free: 41.35 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.262e-05/0.1666, allocations: 85.22 kB / 448.4 MB, free: 41.25 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.358e-05/0.1667, allocations: 5.219 kB / 448.4 MB, free: 41.25 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002183/0.1669, allocations: 159.3 kB / 448.6 MB, free: 41.08 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 1.879e-05/0.167, allocations: 57.06 kB / 448.6 MB, free: 41.01 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 4.749e-06/0.167, allocations: 128 / 448.6 MB, free: 41.01 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.105e-05/0.167, allocations: 12.5 kB / 448.6 MB, free: 41 MB / 410.7 MB Notification: Performance of SimCode: time 4.91e-07/0.167, allocations: 3.938 kB / 448.6 MB, free: 41 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01377/0.1808, allocations: 3.749 MB / 452.4 MB, free: 39.86 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.784/6.965, allocations: 6.375 kB / 452.4 MB, free: 39.86 MB / 410.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestColorMapToSvg/TestColorMapToSvg.csv","/var/lib/jenkins/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: 8.874042172916234]