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.001182/0.001182, allocations: 106.2 kB / 17.21 MB, free: 6.293 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.001306/0.001306, allocations: 194 kB / 18.12 MB, free: 5.383 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.417/1.417, allocations: 222.9 MB / 241.8 MB, free: 15.43 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.2162/0.2162, allocations: 44.18 MB / 336.1 MB, free: 2.996 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001293/0.001293, allocations: 67.59 kB / 407.8 MB, free: 27.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1353/0.1366, allocations: 60.83 MB / 468.6 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.002664/0.1393, allocations: 0.5488 MB / 469.2 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002774/0.1421, allocations: 1.197 MB / 470.4 MB, free: 13 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.371e-05/0.1422, allocations: 0 / 470.4 MB, free: 13 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.291e-05/0.1422, allocations: 0 / 470.4 MB, free: 13 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.021e-06/0.1423, allocations: 0 / 470.4 MB, free: 13 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.00273/0.145, allocations: 0.6254 MB / 471 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.789e-05/0.145, allocations: 4 kB / 471 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.178e-05/0.1451, allocations: 0 / 471 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.073e-05/0.1451, allocations: 0 / 471 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.777e-05/0.1451, allocations: 7.938 kB / 471 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.899e-06/0.1452, allocations: 0 / 471 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004585/0.1497, allocations: 2.601 MB / 473.6 MB, free: 9.762 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.314e-05/0.1498, allocations: 3.984 kB / 473.6 MB, free: 9.758 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.092e-05/0.1498, allocations: 0 / 473.6 MB, free: 9.758 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001008/0.1508, allocations: 427.3 kB / 474 MB, free: 9.34 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.1508, allocations: 0 / 474 MB, free: 9.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1509, allocations: 0 / 474 MB, free: 9.34 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.814e-06/0.1509, allocations: 0 / 474 MB, free: 9.34 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.0005578/0.1514, allocations: 385 kB / 474.4 MB, free: 8.91 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.071e-05/0.1515, allocations: 8.031 kB / 474.4 MB, free: 8.902 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.596e-05/0.1515, allocations: 34.56 kB / 474.4 MB, free: 8.859 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.302e-05/0.1516, allocations: 7.938 kB / 474.5 MB, free: 8.852 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.984e-05/0.1517, allocations: 163 kB / 474.6 MB, free: 8.652 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.102e-05/0.1517, allocations: 3.938 kB / 474.6 MB, free: 8.648 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.815e-06/0.1517, allocations: 0 / 474.6 MB, free: 8.648 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.776e-05/0.1518, allocations: 29.7 kB / 474.6 MB, free: 8.613 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.742e-06/0.1518, allocations: 0 / 474.6 MB, free: 8.613 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.606e-06/0.1518, allocations: 4 kB / 474.7 MB, free: 8.609 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.1519, allocations: 0 / 474.7 MB, free: 8.609 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.24e-05/0.1519, allocations: 7.922 kB / 474.7 MB, free: 8.602 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001473/0.152, allocations: 153.6 kB / 474.8 MB, free: 8.402 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.74e-05/0.1521, allocations: 26.5 kB / 474.8 MB, free: 8.367 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.919e-05/0.1521, allocations: 8.953 kB / 474.8 MB, free: 8.355 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.562e-06/0.1521, allocations: 0 / 474.8 MB, free: 8.355 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.809e-05/0.1522, allocations: 56.27 kB / 474.9 MB, free: 8.285 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.132e-06/0.1522, allocations: 0 / 474.9 MB, free: 8.285 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002017/0.1524, allocations: 63.39 kB / 475 MB, free: 8.211 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.262e-05/0.1525, allocations: 89.17 kB / 475 MB, free: 8.105 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.095e-05/0.1525, allocations: 93.8 kB / 475.1 MB, free: 8.004 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.774e-05/0.1526, allocations: 25.7 kB / 475.2 MB, free: 7.973 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001617/0.1527, allocations: 80.14 kB / 475.2 MB, free: 7.891 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.424e-05/0.1528, allocations: 4 kB / 475.2 MB, free: 7.887 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.548e-05/0.1528, allocations: 9.719 kB / 475.3 MB, free: 7.871 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002641/0.1531, allocations: 318.8 kB / 475.6 MB, free: 7.551 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.209e-05/0.1531, allocations: 0 / 475.6 MB, free: 7.551 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.014e-05/0.1531, allocations: 8 kB / 475.6 MB, free: 7.543 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.653e-05/0.1532, allocations: 64.27 kB / 475.6 MB, free: 7.465 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.1532, allocations: 0 / 475.6 MB, free: 7.465 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.342e-05/0.1533, allocations: 55.41 kB / 475.7 MB, free: 7.398 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.74e-05/0.1534, allocations: 37.69 kB / 475.7 MB, free: 7.355 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.1534, allocations: 0 / 475.7 MB, free: 7.355 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.499e-05/0.1534, allocations: 0 / 475.7 MB, free: 7.355 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.152e-06/0.1534, allocations: 0 / 475.7 MB, free: 7.355 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.267e-06/0.1534, allocations: 3.938 kB / 475.7 MB, free: 7.352 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.049e-05/0.1535, allocations: 4.094 kB / 475.7 MB, free: 7.348 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.085e-06/0.1535, allocations: 3.938 kB / 475.7 MB, free: 7.344 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 0.0001641/0.1537, allocations: 139.5 kB / 475.9 MB, free: 7.191 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.421e-05/0.1537, allocations: 0 / 475.9 MB, free: 7.191 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.427e-05/0.1537, allocations: 7.078 kB / 475.9 MB, free: 7.188 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.1537, allocations: 0 / 475.9 MB, free: 7.188 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.268e-06/0.1537, allocations: 11.92 kB / 475.9 MB, free: 7.176 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-06/0.1537, allocations: 0 / 475.9 MB, free: 7.176 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001638/0.1539, allocations: 141.7 kB / 476 MB, free: 6.988 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.1539, allocations: 4 kB / 476 MB, free: 6.984 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.02e-07/0.1539, allocations: 0 / 476 MB, free: 6.984 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.816e-06/0.1539, allocations: 0 / 476 MB, free: 6.984 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.1e-05/0.154, allocations: 4 kB / 476 MB, free: 6.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.154, allocations: 0 / 476 MB, free: 6.98 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.154, allocations: 3.938 kB / 476 MB, free: 6.977 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001333/0.1541, allocations: 90.73 kB / 476.1 MB, free: 6.863 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.988e-05/0.1542, allocations: 81.14 kB / 476.2 MB, free: 6.766 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.472e-05/0.1542, allocations: 4 kB / 476.2 MB, free: 6.762 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.613e-05/0.1543, allocations: 11.92 kB / 476.2 MB, free: 6.75 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.767e-05/0.1543, allocations: 7.875 kB / 476.2 MB, free: 6.742 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.679e-06/0.1543, allocations: 3.938 kB / 476.2 MB, free: 6.738 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.37e-05/0.1543, allocations: 79.28 kB / 476.3 MB, free: 6.66 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1544, allocations: 0 / 476.3 MB, free: 6.66 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005281/0.1549, allocations: 47.98 kB / 476.4 MB, free: 6.613 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.003049/0.1579, allocations: 1.066 MB / 477.4 MB, free: 5.586 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000125/0.1581, allocations: 59.39 kB / 477.5 MB, free: 5.516 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.1581, allocations: 0 / 477.5 MB, free: 5.516 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.203e-05/0.1581, allocations: 59.34 kB / 477.5 MB, free: 5.445 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001919/0.1583, allocations: 11.88 kB / 477.6 MB, free: 5.434 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005564/0.1589, allocations: 132.3 kB / 477.7 MB, free: 5.262 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004987/0.1594, allocations: 0.6692 MB / 478.4 MB, free: 4.566 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.054e-05/0.1594, allocations: 0 / 478.4 MB, free: 4.566 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.138e-05/0.1595, allocations: 15.56 kB / 478.4 MB, free: 4.555 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1595, allocations: 0 / 478.4 MB, free: 4.555 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0202/0.1797, allocations: 2.913 MB / 481.3 MB, free: 1.707 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000225/0.18, allocations: 231.8 kB / 481.5 MB, free: 1.457 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.893/2.073, allocations: 0 / 481.5 MB, free: 1.457 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 & /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) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg_res.mat","/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