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.0008263/0.0008263, allocations: 79.7 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.0008749/0.0008749, allocations: 174 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.8829/0.8829, allocations: 177.1 MB / 204.3 MB, free: 5.73 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.2432/0.2432, allocations: 34.25 MB / 294.9 MB, free: 0.7266 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 1.553e-06/1.553e-06, allocations: 0 / 442.1 MB, free: 1.707 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.813e-05/1.969e-05, allocations: 2.281 kB / 442.1 MB, free: 1.703 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001038/0.001058, allocations: 0.4887 MB / 442.6 MB, free: 1.219 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001295/0.002353, allocations: 1.123 MB / 443.8 MB, free: 88 kB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.788e-05/0.002371, allocations: 0 / 443.8 MB, free: 88 kB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.448e-05/0.002385, allocations: 0 / 443.8 MB, free: 88 kB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 5.961e-06/0.002391, allocations: 0 / 443.8 MB, free: 88 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.1535/0.1559, allocations: 0.7333 MB / 444.5 MB, free: 43.13 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 4.982e-05/0.1559, allocations: 7.531 kB / 444.5 MB, free: 43.13 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.211e-05/0.156, allocations: 1.5 kB / 444.5 MB, free: 43.13 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.886e-05/0.156, allocations: 6.453 kB / 444.5 MB, free: 43.13 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.822e-05/0.156, allocations: 0 / 444.5 MB, free: 43.13 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 7.113e-06/0.156, allocations: 0 / 444.5 MB, free: 43.13 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001558/0.1576, allocations: 2.465 MB / 447 MB, free: 42.9 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 6.702e-06/0.1576, allocations: 0 / 447 MB, free: 42.9 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.828e-05/0.1576, allocations: 2.844 kB / 447 MB, free: 42.9 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000283/0.1579, allocations: 384.7 kB / 447.4 MB, free: 42.89 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.815e-06/0.1579, allocations: 0 / 447.4 MB, free: 42.89 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1579, allocations: 0 / 447.4 MB, free: 42.89 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.278e-06/0.1579, allocations: 0 / 447.4 MB, free: 42.89 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.0002286/0.1581, allocations: 301.1 kB / 447.6 MB, free: 42.59 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.289e-05/0.1582, allocations: 11.88 kB / 447.7 MB, free: 42.59 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.617e-05/0.1582, allocations: 34.12 kB / 447.7 MB, free: 42.55 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.255e-05/0.1582, allocations: 0 / 447.7 MB, free: 42.55 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 3.36e-05/0.1582, allocations: 104.1 kB / 447.8 MB, free: 42.43 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.849e-06/0.1582, allocations: 0 / 447.8 MB, free: 42.43 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.703e-06/0.1582, allocations: 0 / 447.8 MB, free: 42.43 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.659e-05/0.1583, allocations: 65.28 kB / 447.9 MB, free: 42.36 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.492e-06/0.1583, allocations: 0 / 447.9 MB, free: 42.36 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.053e-06/0.1583, allocations: 5.094 kB / 447.9 MB, free: 42.36 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.1583, allocations: 0 / 447.9 MB, free: 42.36 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.733e-05/0.1583, allocations: 28.98 kB / 447.9 MB, free: 42.32 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.802e-05/0.1584, allocations: 119.3 kB / 448 MB, free: 42.17 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.171e-05/0.1584, allocations: 46.16 kB / 448.1 MB, free: 42.12 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.196e-05/0.1585, allocations: 36.5 kB / 448.1 MB, free: 42.08 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.531e-06/0.1585, allocations: 0 / 448.1 MB, free: 42.08 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.452e-05/0.1585, allocations: 60.2 kB / 448.1 MB, free: 42 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 9.62e-07/0.1585, allocations: 6.719 kB / 448.2 MB, free: 42 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001314/0.1586, allocations: 117.5 kB / 448.3 MB, free: 41.88 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.125e-05/0.1586, allocations: 79.45 kB / 448.3 MB, free: 41.78 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.209e-05/0.1587, allocations: 93.12 kB / 448.4 MB, free: 41.68 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.807e-06/0.1587, allocations: 26.69 kB / 448.5 MB, free: 41.65 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.119e-06/0.1587, allocations: 81.52 kB / 448.5 MB, free: 41.57 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.47e-05/0.1587, allocations: 6.469 kB / 448.5 MB, free: 41.57 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.788e-05/0.1587, allocations: 16.5 kB / 448.6 MB, free: 41.55 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.483e-05/0.1587, allocations: 310.8 kB / 448.9 MB, free: 41.24 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.004e-05/0.1587, allocations: 29.08 kB / 448.9 MB, free: 41.21 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.921e-06/0.1587, allocations: 32.73 kB / 448.9 MB, free: 41.17 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.277e-05/0.1588, allocations: 59.36 kB / 449 MB, free: 41.1 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.352e-06/0.1588, allocations: 0 / 449 MB, free: 41.1 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 2.87e-05/0.1588, allocations: 100.4 kB / 449.1 MB, free: 41 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.005e-05/0.1588, allocations: 32.52 kB / 449.1 MB, free: 40.97 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.077e-06/0.1588, allocations: 3 kB / 449.1 MB, free: 40.97 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.125e-05/0.1588, allocations: 0 / 449.1 MB, free: 40.97 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.082e-06/0.1588, allocations: 1.594 kB / 449.1 MB, free: 40.97 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.599e-06/0.1588, allocations: 0 / 449.1 MB, free: 40.97 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.214e-05/0.1588, allocations: 4.094 kB / 449.1 MB, free: 40.96 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.362e-06/0.1588, allocations: 2.938 kB / 449.1 MB, free: 40.96 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 3.598e-05/0.1589, allocations: 135.9 kB / 449.3 MB, free: 40.82 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.166e-06/0.1589, allocations: 2.969 kB / 449.3 MB, free: 40.82 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.075e-06/0.1589, allocations: 6.938 kB / 449.3 MB, free: 40.81 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-06/0.1589, allocations: 0 / 449.3 MB, free: 40.81 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.1589, allocations: 0 / 449.3 MB, free: 40.81 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.1589, allocations: 0 / 449.3 MB, free: 40.81 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.101e-05/0.1589, allocations: 122.8 kB / 449.4 MB, free: 40.66 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.41e-07/0.1589, allocations: 0 / 449.4 MB, free: 40.66 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.21e-07/0.1589, allocations: 0 / 449.4 MB, free: 40.66 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.032e-06/0.1589, allocations: 7.922 kB / 449.4 MB, free: 40.66 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.372e-06/0.1589, allocations: 3.938 kB / 449.4 MB, free: 40.65 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.51e-07/0.1589, allocations: 0 / 449.4 MB, free: 40.65 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.1589, allocations: 3.281 kB / 449.4 MB, free: 40.65 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.036e-05/0.159, allocations: 120.6 kB / 449.5 MB, free: 40.53 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.248e-06/0.159, allocations: 2.969 kB / 449.5 MB, free: 40.53 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.426e-06/0.159, allocations: 3.938 kB / 449.5 MB, free: 40.52 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.41e-06/0.159, allocations: 0 / 449.5 MB, free: 40.52 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.174e-05/0.159, allocations: 6.031 kB / 449.5 MB, free: 40.52 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.303e-06/0.159, allocations: 2.906 kB / 449.5 MB, free: 40.52 MB / 410.7 MB Notification: Performance of sorting global known variables: time 8.496e-06/0.159, allocations: 82.12 kB / 449.6 MB, free: 40.45 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.1e-08/0.159, allocations: 0 / 449.6 MB, free: 40.45 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001919/0.1592, allocations: 49.7 kB / 449.7 MB, free: 40.43 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.0009251/0.1601, allocations: 1.127 MB / 450.8 MB, free: 39.65 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 6.418e-05/0.1602, allocations: 115.3 kB / 450.9 MB, free: 39.52 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.1602, allocations: 3.094 kB / 450.9 MB, free: 39.52 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.135e-05/0.1602, allocations: 82.58 kB / 451 MB, free: 39.43 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.434e-05/0.1603, allocations: 0 / 451 MB, free: 39.43 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002278/0.1605, allocations: 160 kB / 451.1 MB, free: 39.26 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 1.907e-05/0.1605, allocations: 54.17 kB / 451.2 MB, free: 39.19 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 4.839e-06/0.1606, allocations: 2.875 kB / 451.2 MB, free: 39.19 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.077e-05/0.1606, allocations: 8.625 kB / 451.2 MB, free: 39.18 MB / 410.7 MB Notification: Performance of SimCode: time 3.1e-07/0.1606, allocations: 4 kB / 451.2 MB, free: 39.18 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01328/0.1738, allocations: 3.755 MB / 455 MB, free: 38.03 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.135/7.309, allocations: 11.52 kB / 455 MB, free: 38.02 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Math_TestColorMapToSvg_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.158874523825943]